summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/mic/utils/oe/misc.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/lib/mic/utils/oe/misc.py b/scripts/lib/mic/utils/oe/misc.py
index 5436a0a1fe..16c250aa9f 100644
--- a/scripts/lib/mic/utils/oe/misc.py
+++ b/scripts/lib/mic/utils/oe/misc.py
@@ -142,6 +142,20 @@ def find_bitbake_env_lines(image_name):
142 142
143 return bitbake_env_lines 143 return bitbake_env_lines
144 144
145def find_artifact(bitbake_env_lines, variable):
146 """
147 Gather the build artifact for the current image (the image_name
148 e.g. core-image-minimal) for the current MACHINE set in local.conf
149 """
150 retval = ""
151
152 for line in bitbake_env_lines.split('\n'):
153 if (get_line_val(line, variable)):
154 retval = get_line_val(line, variable)
155 break
156
157 return retval
158
145def get_line_val(line, key): 159def get_line_val(line, key):
146 """ 160 """
147 Extract the value from the VAR="val" string 161 Extract the value from the VAR="val" string