Bug 6648 - Add a means of assembling a sysroot outside of the context of a build
Summary: Add a means of assembling a sysroot outside of the context of a build
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: Future
Assignee: Randy Witt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-08-22 14:19 UTC by Paul Eggleton
Modified: 2015-11-16 16:20 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2014-08-22 14:19:50 UTC
In order to construct an SDK containing the build system we will need a way to construct the sysroot and other parts that are already managed by sstate, but outside of the context of a build. We will have the signature and the corresponding sstate archive; we need to extract that and then write a stamp file so that the build system knows the task need not be executed. This is basically doing exactly what the sstate code does, except without going through an actual separate bitbake build in order to do it.

The relocation that normally needs to be done upon extracting the sstate archive will also need to be deferred until SDK installation (i.e. stored away somewhere so it can be run when the SDK is installed).
Comment 1 Paul Eggleton 2014-09-09 09:05:43 UTC
Perhaps it isn't already clear, but the objective of this is to have the sstate packages already extracted in the SDK rather than having to do all of that as a step within the installation. If we must actually engage bitbake to do this then we can, but the important thing is that the relocation / postinstall scripts must still be run at SDK installation time or the binaries won't be properly prepared to work in the location the SDK has been installed.
Comment 2 Richard Purdie 2015-11-16 16:20:36 UTC
I believe the extensible SDK already covers this usecase now and we have more specific bugs related to that for future development.