[oe-commits] Paul Eggleton : recipetool: add appendfile subcommand

git at git.openembedded.org git at git.openembedded.org
Tue May 19 11:01:15 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: dd2aa93b3c13d2c6464ef0fda59620c7dba450bb
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=dd2aa93b3c13d2c6464ef0fda59620c7dba450bb

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Mon May 18 16:15:07 2015 +0100

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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../recipes-test/recipetool/files/add-file.patch   |   8 +
 meta-selftest/recipes-test/recipetool/files/file1  |   2 +
 .../recipes-test/recipetool/files/installscript.sh |   3 +
 .../recipetool/files/selftest-replaceme-inst-func  |   1 +
 .../files/selftest-replaceme-inst-globfile         |   1 +
 .../files/selftest-replaceme-inst-todir-globfile   |   1 +
 .../recipetool/files/selftest-replaceme-orig       |   1 +
 .../files/selftest-replaceme-src-globfile          |   1 +
 .../recipetool/files/selftest-replaceme-todir      |   1 +
 .../recipetool/files/subdir/fileinsubdir           |   1 +
 .../recipetool/selftest-recipetool-appendfile.bb   |  42 +++
 meta/lib/oe/patch.py                               |  63 ++++
 meta/lib/oe/recipeutils.py                         | 328 ++++++++++++++++++-
 meta/lib/oeqa/selftest/devtool.py                  |  31 +-
 meta/lib/oeqa/selftest/recipetool.py               | 313 +++++++++++++++++-
 meta/lib/oeqa/utils/commands.py                    |  11 +
 scripts/lib/recipetool/append.py                   | 360 +++++++++++++++++++++
 scripts/recipetool                                 |   6 +-
 18 files changed, 1167 insertions(+), 7 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=dd2aa93b3c13d2c6464ef0fda59620c7dba450bb


More information about the Openembedded-commits mailing list