mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 00:49:32 +02:00
wic: Move some common items to oe.misc
Move a couple items into a more common location since they're going to need to be accessible from source plugins. (From OE-Core rev: 95ca523949e838850b5afa090ba16f91b8557c12) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1ddc105659
commit
534d9ba70a
@@ -60,17 +60,6 @@ def verify_build_env():
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def get_line_val(line, key):
|
|
||||||
"""
|
|
||||||
Extract the value from the VAR="val" string
|
|
||||||
"""
|
|
||||||
if line.startswith(key + "="):
|
|
||||||
stripped_line = line.split('=')[1]
|
|
||||||
stripped_line = stripped_line.replace('\"', '')
|
|
||||||
return stripped_line
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def find_artifacts(image_name):
|
def find_artifacts(image_name):
|
||||||
"""
|
"""
|
||||||
Gather the build artifacts for the current image (the image_name
|
Gather the build artifacts for the current image (the image_name
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ from mic.utils.oe.misc import *
|
|||||||
|
|
||||||
from mic.kickstart.custom_commands import *
|
from mic.kickstart.custom_commands import *
|
||||||
|
|
||||||
BOOTDD_EXTRA_SPACE = 16384
|
|
||||||
|
|
||||||
class Wic_PartData(Mic_PartData):
|
class Wic_PartData(Mic_PartData):
|
||||||
removedKeywords = Mic_PartData.removedKeywords
|
removedKeywords = Mic_PartData.removedKeywords
|
||||||
removedAttrs = Mic_PartData.removedAttrs
|
removedAttrs = Mic_PartData.removedAttrs
|
||||||
|
|||||||
@@ -106,3 +106,15 @@ def get_wks_var(key):
|
|||||||
|
|
||||||
def add_wks_var(key, val):
|
def add_wks_var(key, val):
|
||||||
wks_vars[key] = val
|
wks_vars[key] = val
|
||||||
|
|
||||||
|
BOOTDD_EXTRA_SPACE = 16384
|
||||||
|
|
||||||
|
def get_line_val(line, key):
|
||||||
|
"""
|
||||||
|
Extract the value from the VAR="val" string
|
||||||
|
"""
|
||||||
|
if line.startswith(key + "="):
|
||||||
|
stripped_line = line.split('=')[1]
|
||||||
|
stripped_line = stripped_line.replace('\"', '')
|
||||||
|
return stripped_line
|
||||||
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user