Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] recipetool: add appendsrcfile(s) sub-commands
@ 2015-06-24 22:17 Christopher Larson
  2015-06-24 22:17 ` [PATCH 1/3] oe.recipeutils: fix line.split error in bbappend_recipe Christopher Larson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christopher Larson @ 2015-06-24 22:17 UTC (permalink / raw)
  To: openembedded-core; +Cc: Paul Eggleton

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:

  git@github.com: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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-24 22:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-24 22:17 [PATCH 0/3] recipetool: add appendsrcfile(s) sub-commands Christopher Larson
2015-06-24 22:17 ` [PATCH 1/3] oe.recipeutils: fix line.split error in bbappend_recipe Christopher Larson
2015-06-24 22:17 ` [PATCH 2/3] recipetool.append: use argparse types for validation Christopher Larson
2015-06-24 22:17 ` [PATCH 3/3] recipetool: add appendsrcfile(s) sub-commands Christopher Larson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox