]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: add appendfile subcommand
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 18 May 2015 15:15:07 +0000 (16:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 May 2015 07:16:47 +0000 (08:16 +0100)
commitdd2aa93b3c13d2c6464ef0fda59620c7dba450bb
treef9a03dfcd6737638400c88c0ae2d8e9ae3694f32
parent2f88f6e7b2e54b13376338354aae1d61c0c0db60
recipetool: add appendfile subcommand

Locating which recipe provides a file in an image that you want to
modify and then figuring out how to bbappend the recipe in order to
replace it can be a tedious process. Thus, add a new appendfile
subcommand to recipetool, providing the ability to create a bbappend
file to add/replace any file in the target system. Without the -r
option, it will search for the recipe packaging the specified file
(using pkgdata from previously built recipes). The bbappend will be
created at the appropriate path within the specified layer directory
(which may or may not be in your bblayers.conf) or if one already exists
it will be updated appropriately.

Fairly extensive oe-selftest tests are also provided.

Implements [YOCTO #6447].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 files changed:
meta-selftest/recipes-test/recipetool/files/add-file.patch [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/file1 [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/installscript.sh [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-func [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-globfile [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/selftest-replaceme-inst-todir-globfile [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/selftest-replaceme-orig [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/selftest-replaceme-src-globfile [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/selftest-replaceme-todir [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/files/subdir/fileinsubdir [new file with mode: 0644]
meta-selftest/recipes-test/recipetool/selftest-recipetool-appendfile.bb [new file with mode: 0644]
meta/lib/oe/patch.py
meta/lib/oe/recipeutils.py
meta/lib/oeqa/selftest/devtool.py
meta/lib/oeqa/selftest/recipetool.py
meta/lib/oeqa/utils/commands.py
scripts/lib/recipetool/append.py [new file with mode: 0644]
scripts/recipetool