summaryrefslogtreecommitdiff
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>2014-11-05 13:21:58 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-09 10:17:04 +0000
commitc9cc652e88ddedddf8a2f23fb9b8c024616526d7 (patch)
tree33b6e0f1415ee47208a9d8aab48ae8ab05f0f160 /meta/lib/oe
parentfb2e1fd7d2df68d02f5da7dbf4390ea03e7eafdb (diff)
downloadopenembedded-core-c9cc652e88ddedddf8a2f23fb9b8c024616526d7.tar.gz
openembedded-core-c9cc652e88ddedddf8a2f23fb9b8c024616526d7.tar.bz2
openembedded-core-c9cc652e88ddedddf8a2f23fb9b8c024616526d7.zip
image-buildinfo.bbclass: new class, writes build information to image
Writes build information to target filesystem on /etc/build such as enabled layers, their current status and commit. squashspaces was moved to oe/utils.py to make it available to different classes and avoid code duplication. [YOCTO #6770] Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index 35442568e2..1f84ba4b25 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -180,3 +180,7 @@ def multiprocess_exec(commands, function):
pool.terminate()
pool.join()
raise
+
+def squashspaces(string):
+ import re
+ return re.sub("\s+", " ", string).strip()