]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: add setvar subcommand
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 19 Nov 2015 04:17:25 +0000 (17:17 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:30:55 +0000 (21:30 +0000)
commit7c33ef77fa165182d24f0a9ae769e9e630e6bd47
treeadd7aa6283a08714ec43a7a0ee5bacef74a521ba
parent0f81b83fc5fd908efa7f6b837137830ca65f6ed6
recipetool: add setvar subcommand

Add a recipetool subcommand "setvar" to set a variable in a file. This
uses our existing logic such that it doesn't matter if the variable is
already set in the recipe, if it's set in the recipe or some inc file,
and if the variable is not currently set that the line setting the
variable gets inserted in the right place in the file.

Implements [YOCTO #7676].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/recipetool/setvar.py [new file with mode: 0644]
scripts/recipetool