This adds the `appendsrcfile` and `appendsrcfiles` sub-commands, which let the
user add or replace one or more files in the recipe sources, either in a path
relative to `S` or `WORKDIR`. Each file gets added to `SRC_URI` as a file://
URI, using the subdir= parameter to specify the destination directory.

Examples:

    # Adds our defconfig as file://defconfig. If it's already in SRC_URI, it
    # won't be duplicated.
    recipetool appendsrcfile --workdir meta-mylayer linux-mel defconfig
    recipetool appendsrcfiles --workdir meta-mylayer linux-mel defconfig

    # Does the same, handling the different local filename
    recipetool appendsrcfile --workdir meta-mylayer linux-mel defconfig.mine 
defconfig

    # Adds our device tree files to the source tree
    recipetool appendsrcfiles --destdir arch/arm/boot/dts meta-mylayer 
linux-mel *.dts

Of course, for the latter example to be of use, the new dts files would need
to be added to `KERNEL_DEVICETREE` as well, and depending on the kernel,
`DEFCONFIG` or `KERNEL_DEFCONFIG` may need to be set.

The following changes since commit 2587b83faabdc8858e8746201805369ed8d53ba8:

  wpa-supplicant: Revert "Make SystemD D-Bus config conditional" (2015-06-24 
14:03:25 +0100)

are available in the git repository at:

  [email protected]:kergoth/openembedded-core recipetool-appendsrc

for you to fetch changes up to 375bea6b623a20b529a2d26c226c55785a21f9e8:

  recipetool: add appendsrcfile(s) sub-commands (2015-06-24 15:10:55 -0700)

----------------------------------------------------------------
Christopher Larson (3):
  oe.recipeutils: fix line.split error in bbappend_recipe
  recipetool.append: use argparse types for validation
  recipetool: add appendsrcfile(s) sub-commands

 meta/lib/oe/recipeutils.py       |   2 +-
 scripts/lib/recipetool/append.py | 147 +++++++++++++++++++++++++++++++++------
 2 files changed, 126 insertions(+), 23 deletions(-)

-- 
2.2.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to