]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: add appendsrcfile(s) sub-commands
authorChristopher Larson <kergoth@gmail.com>
Wed, 24 Jun 2015 22:17:47 +0000 (15:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 27 Jun 2015 21:42:00 +0000 (22:42 +0100)
commit8227172d05fb394d79ff83d3c36f5208ebebf92c
tree6035a90fc37ce1ee42fcaf42eecf1351367ca3f3
parentbec92899f5324a4423b4ee70365eaa5dfb6891a6
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.

Cc: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/append.py