diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-07 12:57:36 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-09 22:14:41 +0100 |
| commit | 6fd8af0d30e555da55e5ca954009f32a84ced4a6 (patch) | |
| tree | a8f0f66819459f548a9631161adc366bdc0da908 /meta/lib/oe | |
| parent | 32c98e6a8cd60aa5d2e60ab7b573ec6abae85ed4 (diff) | |
| download | poky-6fd8af0d30e555da55e5ca954009f32a84ced4a6.tar.gz | |
classes: Drop ';' delimiter from ROOTFS/IMAGE*COMMAND variables
Originally these were shell functions but they have long since been processed by
bb.build.exec_func(). Since we no longer need shell syntax, we can drop the ';'
delimiters and just use a space separated string.
This cleans up the variable and quietly removes any stray ';' that do happen to
still make it in.
(From OE-Core rev: c3365dfd9ddd7fbe70b62e0f11166e57a8ca6f73)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
| -rw-r--r-- | meta/lib/oe/utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 69ca8987f3..1658f3555d 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py | |||
| @@ -258,11 +258,11 @@ def execute_pre_post_process(d, cmds): | |||
| 258 | if cmds is None: | 258 | if cmds is None: |
| 259 | return | 259 | return |
| 260 | 260 | ||
| 261 | for cmd in cmds.strip().split(';'): | 261 | cmds = cmds.replace(";", " ") |
| 262 | cmd = cmd.strip() | 262 | |
| 263 | if cmd != '': | 263 | for cmd in cmds.split(): |
| 264 | bb.note("Executing %s ..." % cmd) | 264 | bb.note("Executing %s ..." % cmd) |
| 265 | bb.build.exec_func(cmd, d) | 265 | bb.build.exec_func(cmd, d) |
| 266 | 266 | ||
| 267 | # For each item in items, call the function 'target' with item as the first | 267 | # For each item in items, call the function 'target' with item as the first |
| 268 | # argument, extraargs as the other arguments and handle any exceptions in the | 268 | # argument, extraargs as the other arguments and handle any exceptions in the |
