]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Move some common items to oe.misc
authorTom Zanussi <tom.zanussi@linux.intel.com>
Tue, 4 Feb 2014 01:16:54 +0000 (19:16 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Feb 2014 12:56:55 +0000 (12:56 +0000)
Move a couple items into a more common location since they're going to
need to be accessible from source plugins.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/image/engine.py
scripts/lib/mic/kickstart/custom_commands/partition.py
scripts/lib/mic/utils/oe/misc.py

index b3a9c7486ec6d08730bf793b48165b0dcbf30793..0e8b89e5f1ac63781f26aeef4df3cf47de78fa3b 100644 (file)
@@ -60,17 +60,6 @@ def verify_build_env():
     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):
     """
     Gather the build artifacts for the current image (the image_name
index 4b11195160a5e84d729a7df01d1d6e37619f3a70..fe8e55a3764b1c2ac23ddfaf72496be9aac38e92 100644 (file)
@@ -31,8 +31,6 @@ from mic.utils.oe.misc import *
 
 from mic.kickstart.custom_commands import *
 
-BOOTDD_EXTRA_SPACE = 16384
-
 class Wic_PartData(Mic_PartData):
     removedKeywords = Mic_PartData.removedKeywords
     removedAttrs = Mic_PartData.removedAttrs
index 9edaa230e40eb178215ed6174c4b3b623f4ee351..097d44c057397114a5d28bec1f965612d0b32522 100644 (file)
@@ -106,3 +106,15 @@ def get_wks_var(key):
 
 def add_wks_var(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