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/classes-recipe/image.bbclass | |
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/classes-recipe/image.bbclass')
-rw-r--r-- | meta/classes-recipe/image.bbclass | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/classes-recipe/image.bbclass b/meta/classes-recipe/image.bbclass index 21b220a28d..4f00162e78 100644 --- a/meta/classes-recipe/image.bbclass +++ b/meta/classes-recipe/image.bbclass | |||
@@ -25,7 +25,7 @@ inherit ${IMGCLASSES} | |||
25 | 25 | ||
26 | TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}" | 26 | TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}" |
27 | TOOLCHAIN_TARGET_TASK_ATTEMPTONLY += "${PACKAGE_INSTALL_ATTEMPTONLY}" | 27 | TOOLCHAIN_TARGET_TASK_ATTEMPTONLY += "${PACKAGE_INSTALL_ATTEMPTONLY}" |
28 | POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_sysroot_relativelinks; " | 28 | POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_sysroot_relativelinks" |
29 | 29 | ||
30 | LICENSE ?= "MIT" | 30 | LICENSE ?= "MIT" |
31 | PACKAGES = "" | 31 | PACKAGES = "" |
@@ -120,8 +120,7 @@ def rootfs_command_variables(d): | |||
120 | python () { | 120 | python () { |
121 | variables = rootfs_command_variables(d) | 121 | variables = rootfs_command_variables(d) |
122 | for var in variables: | 122 | for var in variables: |
123 | if d.getVar(var, False): | 123 | d.setVarFlag(var, 'vardeps', d.getVar(var)) |
124 | d.setVarFlag(var, 'func', '1') | ||
125 | } | 124 | } |
126 | 125 | ||
127 | def rootfs_variables(d): | 126 | def rootfs_variables(d): |
@@ -657,8 +656,8 @@ create_merged_usr_symlinks_sdk() { | |||
657 | create_merged_usr_symlinks ${SDK_OUTPUT}${SDKTARGETSYSROOT} | 656 | create_merged_usr_symlinks ${SDK_OUTPUT}${SDKTARGETSYSROOT} |
658 | } | 657 | } |
659 | 658 | ||
660 | ROOTFS_PREPROCESS_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_rootfs; ', '',d)}" | 659 | ROOTFS_PREPROCESS_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_rootfs', '',d)}" |
661 | POPULATE_SDK_PRE_TARGET_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_sdk; ', '',d)}" | 660 | POPULATE_SDK_PRE_TARGET_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_sdk', '',d)}" |
662 | 661 | ||
663 | reproducible_final_image_task () { | 662 | reproducible_final_image_task () { |
664 | if [ "$REPRODUCIBLE_TIMESTAMP_ROOTFS" = "" ]; then | 663 | if [ "$REPRODUCIBLE_TIMESTAMP_ROOTFS" = "" ]; then |
@@ -678,6 +677,6 @@ systemd_preset_all () { | |||
678 | fi | 677 | fi |
679 | } | 678 | } |
680 | 679 | ||
681 | IMAGE_PREPROCESS_COMMAND:append = " ${@ 'systemd_preset_all;' if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and not bb.utils.contains('IMAGE_FEATURES', 'stateless-rootfs', True, False, d) else ''} reproducible_final_image_task; " | 680 | IMAGE_PREPROCESS_COMMAND:append = " ${@ 'systemd_preset_all' if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and not bb.utils.contains('IMAGE_FEATURES', 'stateless-rootfs', True, False, d) else ''} reproducible_final_image_task " |
682 | 681 | ||
683 | CVE_PRODUCT = "" | 682 | CVE_PRODUCT = "" |