Bug 8135 - Extensible SDK: ability to generate images out of binary package feeds
Summary: Extensible SDK: ability to generate images out of binary package feeds
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: High enhancement
Target Milestone: 2.0
Assignee: Ed Bartosh
QA Contact: Costin
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-08-10 14:26 UTC by Alexander Kanevskiy
Modified: 2015-10-27 10:24 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kanevskiy 2015-08-10 14:26:02 UTC
As part of Developer story, Developer should be able to regenerate image out of published binary package feeds inside SDK environment.
Developer also should be able to specify locally generated packages or repositories that can be added to the image.
Comment 1 Richard Purdie 2015-08-12 21:14:23 UTC
There is some proof of concept for done for this with the imagebuilder code that is in my t222 poky-contrib branch. It sounds like we'd want to dust that off and use it.

One question is whether we have to use the package feeds or whether sstate is available?

I ask that since the sstate builds provide much better configuration validation than just building from package feeds. Our rootfs construction code also uses pkgdata during rootfs construction so as well as the package feeds, we also ideally need the pkgdata else the funcitonality would be more limited than from a main build.
Comment 2 Alexander Kanevskiy 2015-08-13 09:04:41 UTC
sstate might be available, but not necesseraly.
Developers should be able to use our package feeds, same as smart on the device.
Plus they should be able to point to additional package repositories with 3rd party binary RPMs. Based on that, I don't think sstate would be really useful.

In theory, information that is available to smart from RPM package repository meta-data should be more than enough to construct image based on package lists/groups definitions.
Comment 3 Markus Lehtonen 2015-08-19 14:44:15 UTC
Is the "BUILD_IMAGES_FROM_FEEDS" feature working? Would it be usable for this case (or easily made usable)? Sstate would be provided for the "core" but not for 3rd party feeds.
Comment 4 Paul Eggleton 2015-10-02 13:07:37 UTC
So we've implemented the basic functionality using devtool and sstate; without using package feeds directly. I'm therefore marking this as resolved for 2.0 and we can open new bugs for additional functionality as needed.
Comment 5 Costin 2015-10-27 10:24:49 UTC
Hello,

This can be verified with devtool build-image some-image. (as per comment#4)

I gave it a try on latest master: 505a82673ac2487df5ea343a6422c2fc47018831 on an Ubuntu machine.
I tried devtool build-image core-image-minimal and worked fine.

Marking as verified.