diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-03-28 16:49:02 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-30 10:10:34 +0100 |
commit | 7cb65151f83e45a698f5e28e77fc6d7f382d8aee (patch) | |
tree | 8e7893c9f9efe22b81e4deb9864caf3c330ebdf5 /scripts/lib/image/engine.py | |
parent | b8fd50e9df5aa5bd3cbe368ebf0adc583e1f2ff2 (diff) | |
download | ast2050-yocto-poky-7cb65151f83e45a698f5e28e77fc6d7f382d8aee.zip ast2050-yocto-poky-7cb65151f83e45a698f5e28e77fc6d7f382d8aee.tar.gz |
wic: Fix bitbake_env_command for 'None' case
bitbake_env_command will choke if it isn't given an image, make sure
it does the right thing in that case.
(From OE-Core rev: a17f879cd5bc7401597ccee908801f8e3efa34c0)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/image/engine.py')
-rw-r--r-- | scripts/lib/image/engine.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 6cf6169..0643780 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py @@ -65,7 +65,10 @@ def find_bitbake_env_lines(image_name): If image_name is empty, plugins might still be able to use the environment, so set it regardless. """ - bitbake_env_cmd = "bitbake -e %s" % image_name + if image_name: + bitbake_env_cmd = "bitbake -e %s" % image_name + else: + bitbake_env_cmd = "bitbake -e" rc, bitbake_env_lines = exec_cmd(bitbake_env_cmd) if rc != 0: print "Couldn't get '%s' output." % bitbake_env_cmd |