From 534d9ba70a44ad601a242ed09093d21cd3f032f1 Mon Sep 17 00:00:00 2001 From: Tom Zanussi Date: Mon, 3 Feb 2014 19:16:54 -0600 Subject: 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 Signed-off-by: Richard Purdie --- scripts/lib/mic/utils/oe/misc.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts/lib/mic/utils/oe') diff --git a/scripts/lib/mic/utils/oe/misc.py b/scripts/lib/mic/utils/oe/misc.py index 9edaa23..097d44c 100644 --- a/scripts/lib/mic/utils/oe/misc.py +++ b/scripts/lib/mic/utils/oe/misc.py @@ -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 -- cgit v1.1