summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-07 12:57:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-09 22:14:41 +0100
commit6fd8af0d30e555da55e5ca954009f32a84ced4a6 (patch)
treea8f0f66819459f548a9631161adc366bdc0da908 /meta/classes-recipe/image.bbclass
parent32c98e6a8cd60aa5d2e60ab7b573ec6abae85ed4 (diff)
downloadpoky-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.bbclass11
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
26TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}" 26TOOLCHAIN_TARGET_TASK += "${PACKAGE_INSTALL}"
27TOOLCHAIN_TARGET_TASK_ATTEMPTONLY += "${PACKAGE_INSTALL_ATTEMPTONLY}" 27TOOLCHAIN_TARGET_TASK_ATTEMPTONLY += "${PACKAGE_INSTALL_ATTEMPTONLY}"
28POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_sysroot_relativelinks; " 28POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_sysroot_relativelinks"
29 29
30LICENSE ?= "MIT" 30LICENSE ?= "MIT"
31PACKAGES = "" 31PACKAGES = ""
@@ -120,8 +120,7 @@ def rootfs_command_variables(d):
120python () { 120python () {
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
127def rootfs_variables(d): 126def 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
660ROOTFS_PREPROCESS_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_rootfs; ', '',d)}" 659ROOTFS_PREPROCESS_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_rootfs', '',d)}"
661POPULATE_SDK_PRE_TARGET_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_sdk; ', '',d)}" 660POPULATE_SDK_PRE_TARGET_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'create_merged_usr_symlinks_sdk', '',d)}"
662 661
663reproducible_final_image_task () { 662reproducible_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
681IMAGE_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; " 680IMAGE_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
683CVE_PRODUCT = "" 682CVE_PRODUCT = ""