diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/utils.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 36f82dbbec..defa53679b 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
@@ -61,7 +61,7 @@ def both_contain(variable1, variable2, checkvalue, d): | |||
61 | return "" | 61 | return "" |
62 | 62 | ||
63 | def prune_suffix(var, suffixes, d): | 63 | def prune_suffix(var, suffixes, d): |
64 | # See if var ends with any of the suffixes listed and | 64 | # See if var ends with any of the suffixes listed and |
65 | # remove it if found | 65 | # remove it if found |
66 | for suffix in suffixes: | 66 | for suffix in suffixes: |
67 | if var.endswith(suffix): | 67 | if var.endswith(suffix): |
@@ -154,3 +154,13 @@ def trim_version(version, num_parts=2): | |||
154 | def cpu_count(): | 154 | def cpu_count(): |
155 | import multiprocessing | 155 | import multiprocessing |
156 | return multiprocessing.cpu_count() | 156 | return multiprocessing.cpu_count() |
157 | |||
158 | def execute_pre_post_process(d, cmds): | ||
159 | if cmds is None: | ||
160 | return | ||
161 | |||
162 | for cmd in cmds.strip().split(';'): | ||
163 | cmd = cmd.strip() | ||
164 | if cmd != '': | ||
165 | bb.note("Executing %s ..." % cmd) | ||
166 | bb.build.exec_func(cmd, d) | ||