summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
146 if key.replace('_', '').isalnum(): 146 if key.replace('_', '').isalnum():
147 _BITBAKE_VARS[image][key] = val.strip('"') 147 _BITBAKE_VARS[image][key] = val.strip('"')
148 148
149 # Make first image a default set of variables
150 images = [key for key in _BITBAKE_VARS if key]
151 if len(images) == 1:
152 _BITBAKE_VARS[None] = _BITBAKE_VARS[image]
153
149 return _BITBAKE_VARS[image].get(var) 154 return _BITBAKE_VARS[image].get(var)
150 155
151def parse_sourceparams(sourceparams): 156def parse_sourceparams(sourceparams):