wic: set default image
Set BitbakeVars.default_image when wic is called with -e option. This makes get_bitbake_var API to use provided image as a default source of variables. (From OE-Core rev: d465233579d5efa2e0578baac67f42a35ad8b993) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
95c6749af8
commit
d80ad239e3
|
@ -52,7 +52,7 @@ if bitbake_exe:
|
||||||
else:
|
else:
|
||||||
bitbake_main = None
|
bitbake_main = None
|
||||||
|
|
||||||
from wic.utils.oe.misc import get_bitbake_var
|
from wic.utils.oe.misc import get_bitbake_var, BB_VARS
|
||||||
from wic.utils.errors import WicError
|
from wic.utils.errors import WicError
|
||||||
from image import engine
|
from image import engine
|
||||||
from image import help as hlp
|
from image import help as hlp
|
||||||
|
@ -141,7 +141,9 @@ def wic_create_subcommand(args, usage_str):
|
||||||
print " " + ", ".join(missed)
|
print " " + ", ".join(missed)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not options.image_name:
|
if options.image_name:
|
||||||
|
BB_VARS.default_image = options.image_name
|
||||||
|
else:
|
||||||
options.build_check = False
|
options.build_check = False
|
||||||
|
|
||||||
if options.build_check:
|
if options.build_check:
|
||||||
|
|
Loading…
Reference in New Issue