diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2014-11-05 13:21:58 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-09 10:21:22 +0000 |
commit | ed3e25379c22da57a829f323b9404dd240de2272 (patch) | |
tree | 396ede688a54146e2302232640213984730f8d05 /meta/lib/oe | |
parent | c58237560dcb20283b27a816ffbafa0818ffc98e (diff) | |
download | poky-ed3e25379c22da57a829f323b9404dd240de2272.tar.gz |
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]
(From OE-Core rev: c9cc652e88ddedddf8a2f23fb9b8c024616526d7)
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/utils.py | 4 |
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): | |||
180 | pool.terminate() | 180 | pool.terminate() |
181 | pool.join() | 181 | pool.join() |
182 | raise | 182 | raise |
183 | |||
184 | def squashspaces(string): | ||
185 | import re | ||
186 | return re.sub("\s+", " ", string).strip() | ||