diff options
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 6cf6169482..0643780f1a 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py | |||
@@ -65,7 +65,10 @@ def find_bitbake_env_lines(image_name): | |||
65 | If image_name is empty, plugins might still be able to use the | 65 | If image_name is empty, plugins might still be able to use the |
66 | environment, so set it regardless. | 66 | environment, so set it regardless. |
67 | """ | 67 | """ |
68 | bitbake_env_cmd = "bitbake -e %s" % image_name | 68 | if image_name: |
69 | bitbake_env_cmd = "bitbake -e %s" % image_name | ||
70 | else: | ||
71 | bitbake_env_cmd = "bitbake -e" | ||
69 | rc, bitbake_env_lines = exec_cmd(bitbake_env_cmd) | 72 | rc, bitbake_env_lines = exec_cmd(bitbake_env_cmd) |
70 | if rc != 0: | 73 | if rc != 0: |
71 | print "Couldn't get '%s' output." % bitbake_env_cmd | 74 | print "Couldn't get '%s' output." % bitbake_env_cmd |