poky/scripts/lib/devtool
Paul Eggleton 125e0b72b7 devtool: implement conditional patch handling
If you have a recipe that uses overrides to conditionally extend
SRC_URI to add additional patches, then you will often need to update
those patches if you're making other changes to the source tree (for
example if you're upgrading the underlying source). Make this possible
with devtool by creating devtool-override-* branches for each override
that conditionally appends/prepends SRC_URI, and have devtool
update-recipe / finish check each branch out in turn and update the
corresponding patches.

A current example of a recipe that does this is the quota recipe - it
applies an additional patch if musl is the selected C library (i.e.
libc-musl is in OVERRIDES).

Note that use of this functionality does require some care - in
particular, updates to patches that appear on the main branch (named
"devtool" by default) should be made there and not only on one of the
specific devtool-override-* branches that are created for each override.
The recommended procedure is to make the changes you want to make to the
main branch first, then check out and rebase each devtool-override-*
branch, testing each one by activating the corresponding configuration,
and then finally run devtool finish.

Fixes [YOCTO #11516].

(From OE-Core rev: aa87603d1ffd695027847f4df75c0406cf4e14d8)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-11-11 12:14:27 +00:00
..
__init__.py devtool: finish: ensure repository is clean before proceeding 2017-11-11 12:14:27 +00:00
build_image.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
build_sdk.py devtool: add build-sdk subcommand 2016-03-07 00:11:38 +00:00
build.py devtool: add "rename" subcommand 2016-11-07 11:04:22 +00:00
deploy.py scripts: drop True option to getVar calls 2017-09-26 11:05:01 +01:00
export.py devtool: export: new plugin to export the devtool workspace 2017-08-23 08:47:02 +01:00
import.py devtool: import: new plugin to import the devtool workspace 2017-08-23 08:47:02 +01:00
package.py meta/scripts: Various getVar/getVarFlag expansion parameter fixes 2017-01-09 13:39:11 +00:00
runqemu.py devtool: point runqemu to correct native bindir 2017-04-05 23:22:12 +01:00
sdk.py devtool: sdk-update: fix pulling updates from git 2017-08-09 09:24:16 +01:00
search.py scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
standard.py devtool: implement conditional patch handling 2017-11-11 12:14:27 +00:00
upgrade.py devtool: implement conditional patch handling 2017-11-11 12:14:27 +00:00
utilcmds.py devtool: make find-recipe and edit-recipe always work with any recipe 2017-11-11 12:14:27 +00:00