Bug 6561 - Enable easier external source tree builds
Summary: Enable easier external source tree builds
Status: VERIFIED 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: 1.8 M2
Assignee: Paul Eggleton
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks: 6662
  Show dependency tree
 
Reported: 2014-07-21 11:02 UTC by Paul Eggleton
Modified: 2015-06-08 18:25 UTC (History)
5 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 Paul Eggleton 2014-07-21 11:02:42 UTC
externalsrc.bbclass already provides the means to build from an external source tree, but setting it up requires a bit of manual work. It would make things easier if there was a script that walks you through this. There are two main scenarios we'd want to handle:

1) User already has a source tree which we should build without touching

2) No external source tree already exists, in which case we fetch the source, apply patches to it and manage the result with git, optionally on top of the upstream git history if the source was fetched from a git repo. This is different to the normal situation where we have source in the workdir because after the initial fetch (which is done by the script and not the build system) and we never wipe out changes to the source.

(For brand-new components where there isn't already a recipe, this also ties in with bug 6406.)
Comment 1 Paul Eggleton 2014-12-26 11:53:34 UTC
A new "devtool" utility with a "modify" command was added to master in the following commit (a number of earlier supporting commits are also required):

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=cd5ca4a11daff2089ba3031103b9b9dab5b3c94e

Some basic QA tests have been added in meta/lib/oeqa/selftest/devtool.py. Documentation is still pending.
Comment 2 Mihail Stanciu 2015-03-31 13:24:53 UTC
Verified on master: cd po
Comment 3 Mihail Stanciu 2015-03-31 13:25:50 UTC
Verified on master: 8b3d3e7c957ad06c390886487f69aeb8e145da6a