summaryrefslogtreecommitdiff
path: root/scripts/lib/wic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 2f9f515cf8..49787456b2 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -146,6 +146,11 @@ def get_bitbake_var(var, image=None):
if key.replace('_', '').isalnum():
_BITBAKE_VARS[image][key] = val.strip('"')
+ # Make first image a default set of variables
+ images = [key for key in _BITBAKE_VARS if key]
+ if len(images) == 1:
+ _BITBAKE_VARS[None] = _BITBAKE_VARS[image]
+
return _BITBAKE_VARS[image].get(var)
def parse_sourceparams(sourceparams):