Skip to content

recipetool: add appendsrcfile(s) sub-commands

Christopher Larson openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3oe.recipeutils: fix line.split error in bbappend_recipemeta/lib/oe/recipeutils.py+1 -10 replies
2/3recipetool.append: use argparse types for validationscripts/lib/recipetool/append.py+25 -200 replies
3/3recipetool: add appendsrcfile(s) sub-commandsscripts/lib/recipetool/append.py+104 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] recipetool: add appendsrcfile(s) sub-commands

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(-)
Signature · 1 line
2.2.1