summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils/oe
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/utils/oe')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 41e435fc27..040176d486 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -131,6 +131,9 @@ class BitbakeVars(defaultdict):
131 def __init__(self): 131 def __init__(self):
132 defaultdict.__init__(self, dict) 132 defaultdict.__init__(self, dict)
133 133
134 # default_image attribute should be set from outside
135 self.default_image = None
136
134 def _parse_line(self, line, image): 137 def _parse_line(self, line, image):
135 """ 138 """
136 Parse one line from bitbake -e output. 139 Parse one line from bitbake -e output.
@@ -152,6 +155,9 @@ class BitbakeVars(defaultdict):
152 Get bitbake variable value lazy way, i.e. run 155 Get bitbake variable value lazy way, i.e. run
153 'bitbake -e' only when variable is requested. 156 'bitbake -e' only when variable is requested.
154 """ 157 """
158 if not image:
159 image = self.default_image
160
155 if image not in self: 161 if image not in self:
156 # Get bitbake -e output 162 # Get bitbake -e output
157 cmd = "bitbake -e" 163 cmd = "bitbake -e"