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 | |
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>
-rw-r--r-- | meta/classes-recipe/image-combined-dbg.bbclass | 2 | ||||
-rw-r--r-- | meta/classes-recipe/image.bbclass | 11 | ||||
-rw-r--r-- | meta/classes-recipe/license_image.bbclass | 2 | ||||
-rw-r--r-- | meta/classes-recipe/overlayfs-etc.bbclass | 2 | ||||
-rw-r--r-- | meta/classes-recipe/populate_sdk_base.bbclass | 13 | ||||
-rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 4 | ||||
-rw-r--r-- | meta/classes-recipe/rootfs-postcommands.bbclass | 30 | ||||
-rw-r--r-- | meta/classes-recipe/rootfsdebugfiles.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/buildhistory.bbclass | 26 | ||||
-rw-r--r-- | meta/classes/create-spdx-2.2.bbclass | 6 | ||||
-rw-r--r-- | meta/classes/cve-check.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/extrausers.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/image-buildinfo.bbclass | 4 | ||||
-rw-r--r-- | meta/lib/oe/utils.py | 10 | ||||
-rw-r--r-- | meta/recipes-core/images/build-appliance-image_15.0.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 |
16 files changed, 59 insertions, 61 deletions
diff --git a/meta/classes-recipe/image-combined-dbg.bbclass b/meta/classes-recipe/image-combined-dbg.bbclass index dcf1968538..729313739c 100644 --- a/meta/classes-recipe/image-combined-dbg.bbclass +++ b/meta/classes-recipe/image-combined-dbg.bbclass | |||
@@ -4,7 +4,7 @@ | |||
4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
5 | # | 5 | # |
6 | 6 | ||
7 | IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; " | 7 | IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image" |
8 | 8 | ||
9 | combine_dbg_image () { | 9 | combine_dbg_image () { |
10 | if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then | 10 | if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then |
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 = "" |
diff --git a/meta/classes-recipe/license_image.bbclass b/meta/classes-recipe/license_image.bbclass index 8560c27e93..fc859c7c65 100644 --- a/meta/classes-recipe/license_image.bbclass +++ b/meta/classes-recipe/license_image.bbclass | |||
@@ -272,7 +272,7 @@ def get_deployed_files(man_file): | |||
272 | dep_files.append(os.path.basename(f)) | 272 | dep_files.append(os.path.basename(f)) |
273 | return dep_files | 273 | return dep_files |
274 | 274 | ||
275 | ROOTFS_POSTPROCESS_COMMAND:prepend = "write_package_manifest; license_create_manifest; " | 275 | ROOTFS_POSTPROCESS_COMMAND:prepend = "write_package_manifest license_create_manifest " |
276 | do_rootfs[recrdeptask] += "do_populate_lic" | 276 | do_rootfs[recrdeptask] += "do_populate_lic" |
277 | 277 | ||
278 | python do_populate_lic_deploy() { | 278 | python do_populate_lic_deploy() { |
diff --git a/meta/classes-recipe/overlayfs-etc.bbclass b/meta/classes-recipe/overlayfs-etc.bbclass index f8343106f3..0c7834d01f 100644 --- a/meta/classes-recipe/overlayfs-etc.bbclass +++ b/meta/classes-recipe/overlayfs-etc.bbclass | |||
@@ -31,7 +31,7 @@ | |||
31 | # Regardless which mode you choose, update and migration strategy of configuration files under /etc | 31 | # Regardless which mode you choose, update and migration strategy of configuration files under /etc |
32 | # overlay is out of scope of this class | 32 | # overlay is out of scope of this class |
33 | 33 | ||
34 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "overlayfs-etc", "create_overlayfs_etc_preinit;", "", d)}' | 34 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "overlayfs-etc", "create_overlayfs_etc_preinit", "", d)}' |
35 | IMAGE_FEATURES_CONFLICTS_overlayfs-etc = "${@ 'package-management' if bb.utils.to_boolean(d.getVar('OVERLAYFS_ETC_USE_ORIG_INIT_NAME'), True) else ''}" | 35 | IMAGE_FEATURES_CONFLICTS_overlayfs-etc = "${@ 'package-management' if bb.utils.to_boolean(d.getVar('OVERLAYFS_ETC_USE_ORIG_INIT_NAME'), True) else ''}" |
36 | 36 | ||
37 | OVERLAYFS_ETC_MOUNT_POINT ??= "" | 37 | OVERLAYFS_ETC_MOUNT_POINT ??= "" |
diff --git a/meta/classes-recipe/populate_sdk_base.bbclass b/meta/classes-recipe/populate_sdk_base.bbclass index b23ea26d40..dfd4bb1d4d 100644 --- a/meta/classes-recipe/populate_sdk_base.bbclass +++ b/meta/classes-recipe/populate_sdk_base.bbclass | |||
@@ -152,12 +152,12 @@ python write_host_sdk_manifest () { | |||
152 | output.write(format_pkg_list(pkgs, 'ver')) | 152 | output.write(format_pkg_list(pkgs, 'ver')) |
153 | } | 153 | } |
154 | 154 | ||
155 | POPULATE_SDK_POST_TARGET_COMMAND:append = " write_sdk_test_data ; " | 155 | POPULATE_SDK_POST_TARGET_COMMAND:append = " write_sdk_test_data" |
156 | POPULATE_SDK_POST_TARGET_COMMAND:append:task-populate-sdk = " write_target_sdk_manifest; sdk_prune_dirs; " | 156 | POPULATE_SDK_POST_TARGET_COMMAND:append:task-populate-sdk = " write_target_sdk_manifest sdk_prune_dirs" |
157 | POPULATE_SDK_POST_HOST_COMMAND:append:task-populate-sdk = " write_host_sdk_manifest; " | 157 | POPULATE_SDK_POST_HOST_COMMAND:append:task-populate-sdk = " write_host_sdk_manifest" |
158 | 158 | ||
159 | SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC};' if '${SDK_PACKAGING_FUNC}' else ''}" | 159 | SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC}' if '${SDK_PACKAGING_FUNC}' else ''}" |
160 | SDK_POSTPROCESS_COMMAND = " create_sdk_files; check_sdk_sysroots; archive_sdk; ${SDK_PACKAGING_COMMAND} " | 160 | SDK_POSTPROCESS_COMMAND = "create_sdk_files check_sdk_sysroots archive_sdk ${SDK_PACKAGING_COMMAND}" |
161 | 161 | ||
162 | def populate_sdk_common(d): | 162 | def populate_sdk_common(d): |
163 | from oe.sdk import populate_sdk | 163 | from oe.sdk import populate_sdk |
@@ -372,8 +372,7 @@ do_populate_sdk[vardeps] += "${@sdk_variables(d)}" | |||
372 | python () { | 372 | python () { |
373 | variables = sdk_command_variables(d) | 373 | variables = sdk_command_variables(d) |
374 | for var in variables: | 374 | for var in variables: |
375 | if d.getVar(var, False): | 375 | d.setVarFlag(var, 'vardeps', d.getVar(var)) |
376 | d.setVarFlag(var, 'func', '1') | ||
377 | } | 376 | } |
378 | 377 | ||
379 | do_populate_sdk[file-checksums] += "${TOOLCHAIN_SHAR_REL_TMPL}:True \ | 378 | do_populate_sdk[file-checksums] += "${TOOLCHAIN_SHAR_REL_TMPL}:True \ |
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index fe656ed824..028d0c1ff5 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
@@ -120,7 +120,7 @@ python write_host_sdk_ext_manifest () { | |||
120 | f.write("%s %s %s\n" % (info[1], info[2], info[3])) | 120 | f.write("%s %s %s\n" % (info[1], info[2], info[3])) |
121 | } | 121 | } |
122 | 122 | ||
123 | SDK_POSTPROCESS_COMMAND:append:task-populate-sdk-ext = " write_target_sdk_ext_manifest; write_host_sdk_ext_manifest; " | 123 | SDK_POSTPROCESS_COMMAND:append:task-populate-sdk-ext = " write_target_sdk_ext_manifest write_host_sdk_ext_manifest" |
124 | 124 | ||
125 | SDK_TITLE:task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} Extensible SDK" | 125 | SDK_TITLE:task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME') or d.getVar('DISTRO')} Extensible SDK" |
126 | 126 | ||
@@ -743,7 +743,7 @@ sdk_ext_postinst() { | |||
743 | 743 | ||
744 | SDK_POST_INSTALL_COMMAND:task-populate-sdk-ext = "${sdk_ext_postinst}" | 744 | SDK_POST_INSTALL_COMMAND:task-populate-sdk-ext = "${sdk_ext_postinst}" |
745 | 745 | ||
746 | SDK_POSTPROCESS_COMMAND:prepend:task-populate-sdk-ext = "copy_buildsystem; install_tools; " | 746 | SDK_POSTPROCESS_COMMAND:prepend:task-populate-sdk-ext = "copy_buildsystem install_tools " |
747 | 747 | ||
748 | SDK_INSTALL_TARGETS = "" | 748 | SDK_INSTALL_TARGETS = "" |
749 | fakeroot python do_populate_sdk_ext() { | 749 | fakeroot python do_populate_sdk_ext() { |
diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe/rootfs-postcommands.bbclass index 4492c9c0aa..06388b72fb 100644 --- a/meta/classes-recipe/rootfs-postcommands.bbclass +++ b/meta/classes-recipe/rootfs-postcommands.bbclass | |||
@@ -5,25 +5,25 @@ | |||
5 | # | 5 | # |
6 | 6 | ||
7 | # Zap the root password if debug-tweaks and empty-root-password features are not enabled | 7 | # Zap the root password if debug-tweaks and empty-root-password features are not enabled |
8 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password; ",d)}' | 8 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'empty-root-password' ], "", "zap_empty_root_password ",d)}' |
9 | 9 | ||
10 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks or allow-empty-password is enabled | 10 | # Allow dropbear/openssh to accept logins from accounts with an empty password string if debug-tweaks or allow-empty-password is enabled |
11 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-empty-password' ], "ssh_allow_empty_password; ", "",d)}' | 11 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-empty-password' ], "ssh_allow_empty_password ", "",d)}' |
12 | 12 | ||
13 | # Allow dropbear/openssh to accept root logins if debug-tweaks or allow-root-login is enabled | 13 | # Allow dropbear/openssh to accept root logins if debug-tweaks or allow-root-login is enabled |
14 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-root-login' ], "ssh_allow_root_login; ", "",d)}' | 14 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'allow-root-login' ], "ssh_allow_root_login ", "",d)}' |
15 | 15 | ||
16 | # Autologin the root user on the serial console, if empty-root-password and serial-autologin-root are active | 16 | # Autologin the root user on the serial console, if empty-root-password and serial-autologin-root are active |
17 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", [ 'empty-root-password', 'serial-autologin-root' ], "serial_autologin_root; ", "",d)}' | 17 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", [ 'empty-root-password', 'serial-autologin-root' ], "serial_autologin_root ", "",d)}' |
18 | 18 | ||
19 | # Enable postinst logging if debug-tweaks or post-install-logging is enabled | 19 | # Enable postinst logging if debug-tweaks or post-install-logging is enabled |
20 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging; ", "",d)}' | 20 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains_any("IMAGE_FEATURES", [ 'debug-tweaks', 'post-install-logging' ], "postinst_enable_logging ", "",d)}' |
21 | 21 | ||
22 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting | 22 | # Create /etc/timestamp during image construction to give a reasonably sane default time setting |
23 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp; " | 23 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp " |
24 | 24 | ||
25 | # Tweak files in /etc if read-only-rootfs is enabled | 25 | # Tweak files in /etc if read-only-rootfs is enabled |
26 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}' | 26 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook ", "",d)}' |
27 | 27 | ||
28 | # We also need to do the same for the kernel boot parameters, | 28 | # We also need to do the same for the kernel boot parameters, |
29 | # otherwise kernel or initramfs end up mounting the rootfs read/write | 29 | # otherwise kernel or initramfs end up mounting the rootfs read/write |
@@ -34,20 +34,20 @@ ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("IMAGE_FEATURES", "read-only | |||
34 | APPEND:append = '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", " ro", "", d)}' | 34 | APPEND:append = '${@bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", " ro", "", d)}' |
35 | 35 | ||
36 | # Generates test data file with data store variables expanded in json format | 36 | # Generates test data file with data store variables expanded in json format |
37 | ROOTFS_POSTPROCESS_COMMAND += "write_image_test_data; " | 37 | ROOTFS_POSTPROCESS_COMMAND += "write_image_test_data " |
38 | 38 | ||
39 | # Write manifest | 39 | # Write manifest |
40 | IMAGE_MANIFEST = "${IMGDEPLOYDIR}/${IMAGE_NAME}.manifest" | 40 | IMAGE_MANIFEST = "${IMGDEPLOYDIR}/${IMAGE_NAME}.manifest" |
41 | ROOTFS_POSTUNINSTALL_COMMAND =+ "write_image_manifest ; " | 41 | ROOTFS_POSTUNINSTALL_COMMAND =+ "write_image_manifest" |
42 | # Set default postinst log file | 42 | # Set default postinst log file |
43 | POSTINST_LOGFILE ?= "${localstatedir}/log/postinstall.log" | 43 | POSTINST_LOGFILE ?= "${localstatedir}/log/postinstall.log" |
44 | # Set default target for systemd images | 44 | # Set default target for systemd images |
45 | SYSTEMD_DEFAULT_TARGET ?= '${@bb.utils.contains_any("IMAGE_FEATURES", [ "x11-base", "weston" ], "graphical.target", "multi-user.target", d)}' | 45 | SYSTEMD_DEFAULT_TARGET ?= '${@bb.utils.contains_any("IMAGE_FEATURES", [ "x11-base", "weston" ], "graphical.target", "multi-user.target", d)}' |
46 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "systemd", "set_systemd_default_target; systemd_sysusers_check;", "", d)}' | 46 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "systemd", "set_systemd_default_target systemd_sysusers_check", "", d)}' |
47 | 47 | ||
48 | ROOTFS_POSTPROCESS_COMMAND += 'empty_var_volatile;' | 48 | ROOTFS_POSTPROCESS_COMMAND += 'empty_var_volatile' |
49 | 49 | ||
50 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs_qa_check; overlayfs_postprocess;", "", d)}' | 50 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs_qa_check overlayfs_postprocess", "", d)}' |
51 | 51 | ||
52 | inherit image-artifact-names | 52 | inherit image-artifact-names |
53 | 53 | ||
@@ -63,10 +63,10 @@ inherit image-artifact-names | |||
63 | # systemd_sysusers_create and set_user_group. Using :append is not | 63 | # systemd_sysusers_create and set_user_group. Using :append is not |
64 | # enough for that, set_user_group is added that way and would end | 64 | # enough for that, set_user_group is added that way and would end |
65 | # up running after us. | 65 | # up running after us. |
66 | SORT_PASSWD_POSTPROCESS_COMMAND ??= " tidy_shadowutils_files; " | 66 | SORT_PASSWD_POSTPROCESS_COMMAND ??= "tidy_shadowutils_files" |
67 | python () { | 67 | python () { |
68 | d.appendVar('ROOTFS_POSTPROCESS_COMMAND', '${SORT_PASSWD_POSTPROCESS_COMMAND}') | 68 | d.appendVar('ROOTFS_POSTPROCESS_COMMAND', ' ${SORT_PASSWD_POSTPROCESS_COMMAND}') |
69 | d.appendVar('ROOTFS_POSTPROCESS_COMMAND', 'rootfs_reproducible;') | 69 | d.appendVar('ROOTFS_POSTPROCESS_COMMAND', ' rootfs_reproducible') |
70 | } | 70 | } |
71 | 71 | ||
72 | # Resolve the ID as described in the sysusers.d(5) manual: ID can be a numeric | 72 | # Resolve the ID as described in the sysusers.d(5) manual: ID can be a numeric |
diff --git a/meta/classes-recipe/rootfsdebugfiles.bbclass b/meta/classes-recipe/rootfsdebugfiles.bbclass index cbcf876479..4c2fc1de25 100644 --- a/meta/classes-recipe/rootfsdebugfiles.bbclass +++ b/meta/classes-recipe/rootfsdebugfiles.bbclass | |||
@@ -34,7 +34,7 @@ | |||
34 | ROOTFS_DEBUG_FILES ?= "" | 34 | ROOTFS_DEBUG_FILES ?= "" |
35 | ROOTFS_DEBUG_FILES[doc] = "Lists additional files or directories to be installed with 'cp -a' in the format 'source1 target1;source2 target2;...'" | 35 | ROOTFS_DEBUG_FILES[doc] = "Lists additional files or directories to be installed with 'cp -a' in the format 'source1 target1;source2 target2;...'" |
36 | 36 | ||
37 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_debug_files;" | 37 | ROOTFS_POSTPROCESS_COMMAND += "rootfs_debug_files" |
38 | rootfs_debug_files () { | 38 | rootfs_debug_files () { |
39 | #!/bin/sh -e | 39 | #!/bin/sh -e |
40 | echo "${ROOTFS_DEBUG_FILES}" | sed -e 's/;/\n/g' | while read source target mode; do | 40 | echo "${ROOTFS_DEBUG_FILES}" | sed -e 's/;/\n/g' | while read source target mode; do |
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 395f594278..fd53e92402 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -691,28 +691,28 @@ python buildhistory_get_extra_sdkinfo() { | |||
691 | 691 | ||
692 | # By using ROOTFS_POSTUNINSTALL_COMMAND we get in after uninstallation of | 692 | # By using ROOTFS_POSTUNINSTALL_COMMAND we get in after uninstallation of |
693 | # unneeded packages but before the removal of packaging files | 693 | # unneeded packages but before the removal of packaging files |
694 | ROOTFS_POSTUNINSTALL_COMMAND += "buildhistory_list_installed_image ;" | 694 | ROOTFS_POSTUNINSTALL_COMMAND += "buildhistory_list_installed_image" |
695 | ROOTFS_POSTUNINSTALL_COMMAND += "buildhistory_get_image_installed ;" | 695 | ROOTFS_POSTUNINSTALL_COMMAND += "buildhistory_get_image_installed" |
696 | ROOTFS_POSTUNINSTALL_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_image ;| buildhistory_get_image_installed ;" | 696 | ROOTFS_POSTUNINSTALL_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_image| buildhistory_get_image_installed" |
697 | ROOTFS_POSTUNINSTALL_COMMAND[vardepsexclude] += "buildhistory_list_installed_image buildhistory_get_image_installed" | 697 | ROOTFS_POSTUNINSTALL_COMMAND[vardepsexclude] += "buildhistory_list_installed_image buildhistory_get_image_installed" |
698 | 698 | ||
699 | IMAGE_POSTPROCESS_COMMAND += "buildhistory_get_imageinfo ;" | 699 | IMAGE_POSTPROCESS_COMMAND += "buildhistory_get_imageinfo" |
700 | IMAGE_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_imageinfo ;" | 700 | IMAGE_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_imageinfo" |
701 | IMAGE_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_imageinfo" | 701 | IMAGE_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_imageinfo" |
702 | 702 | ||
703 | # We want these to be the last run so that we get called after complementary package installation | 703 | # We want these to be the last run so that we get called after complementary package installation |
704 | POPULATE_SDK_POST_TARGET_COMMAND:append = " buildhistory_list_installed_sdk_target;" | 704 | POPULATE_SDK_POST_TARGET_COMMAND:append = " buildhistory_list_installed_sdk_target" |
705 | POPULATE_SDK_POST_TARGET_COMMAND:append = " buildhistory_get_sdk_installed_target;" | 705 | POPULATE_SDK_POST_TARGET_COMMAND:append = " buildhistory_get_sdk_installed_target" |
706 | POPULATE_SDK_POST_TARGET_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_target;| buildhistory_get_sdk_installed_target;" | 706 | POPULATE_SDK_POST_TARGET_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_target| buildhistory_get_sdk_installed_target" |
707 | POPULATE_SDK_POST_TARGET_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_target buildhistory_get_sdk_installed_target" | 707 | POPULATE_SDK_POST_TARGET_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_target buildhistory_get_sdk_installed_target" |
708 | 708 | ||
709 | POPULATE_SDK_POST_HOST_COMMAND:append = " buildhistory_list_installed_sdk_host;" | 709 | POPULATE_SDK_POST_HOST_COMMAND:append = " buildhistory_list_installed_sdk_host" |
710 | POPULATE_SDK_POST_HOST_COMMAND:append = " buildhistory_get_sdk_installed_host;" | 710 | POPULATE_SDK_POST_HOST_COMMAND:append = " buildhistory_get_sdk_installed_host" |
711 | POPULATE_SDK_POST_HOST_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_host;| buildhistory_get_sdk_installed_host;" | 711 | POPULATE_SDK_POST_HOST_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_host| buildhistory_get_sdk_installed_host" |
712 | POPULATE_SDK_POST_HOST_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_host buildhistory_get_sdk_installed_host" | 712 | POPULATE_SDK_POST_HOST_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_host buildhistory_get_sdk_installed_host" |
713 | 713 | ||
714 | SDK_POSTPROCESS_COMMAND:append = " buildhistory_get_sdkinfo ; buildhistory_get_extra_sdkinfo; " | 714 | SDK_POSTPROCESS_COMMAND:append = " buildhistory_get_sdkinfo buildhistory_get_extra_sdkinfo" |
715 | SDK_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_sdkinfo ; buildhistory_get_extra_sdkinfo; " | 715 | SDK_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_sdkinfo buildhistory_get_extra_sdkinfo" |
716 | SDK_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_sdkinfo buildhistory_get_extra_sdkinfo" | 716 | SDK_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_sdkinfo buildhistory_get_extra_sdkinfo" |
717 | 717 | ||
718 | python buildhistory_write_sigs() { | 718 | python buildhistory_write_sigs() { |
diff --git a/meta/classes/create-spdx-2.2.bbclass b/meta/classes/create-spdx-2.2.bbclass index 844b674f6f..aed1a94132 100644 --- a/meta/classes/create-spdx-2.2.bbclass +++ b/meta/classes/create-spdx-2.2.bbclass | |||
@@ -930,12 +930,12 @@ spdx_get_src[vardepsexclude] += "STAGING_KERNEL_DIR" | |||
930 | do_rootfs[recrdeptask] += "do_create_spdx do_create_runtime_spdx" | 930 | do_rootfs[recrdeptask] += "do_create_spdx do_create_runtime_spdx" |
931 | do_rootfs[cleandirs] += "${SPDXIMAGEWORK}" | 931 | do_rootfs[cleandirs] += "${SPDXIMAGEWORK}" |
932 | 932 | ||
933 | ROOTFS_POSTUNINSTALL_COMMAND =+ "image_combine_spdx ; " | 933 | ROOTFS_POSTUNINSTALL_COMMAND =+ "image_combine_spdx" |
934 | 934 | ||
935 | do_populate_sdk[recrdeptask] += "do_create_spdx do_create_runtime_spdx" | 935 | do_populate_sdk[recrdeptask] += "do_create_spdx do_create_runtime_spdx" |
936 | do_populate_sdk[cleandirs] += "${SPDXSDKWORK}" | 936 | do_populate_sdk[cleandirs] += "${SPDXSDKWORK}" |
937 | POPULATE_SDK_POST_HOST_COMMAND:append:task-populate-sdk = " sdk_host_combine_spdx; " | 937 | POPULATE_SDK_POST_HOST_COMMAND:append:task-populate-sdk = " sdk_host_combine_spdx" |
938 | POPULATE_SDK_POST_TARGET_COMMAND:append:task-populate-sdk = " sdk_target_combine_spdx; " | 938 | POPULATE_SDK_POST_TARGET_COMMAND:append:task-populate-sdk = " sdk_target_combine_spdx" |
939 | 939 | ||
940 | python image_combine_spdx() { | 940 | python image_combine_spdx() { |
941 | import os | 941 | import os |
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index c1f1ea0fd6..55ae298024 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass | |||
@@ -286,7 +286,7 @@ python cve_check_write_rootfs_manifest () { | |||
286 | bb.plain("Image CVE JSON report stored in: %s" % manifest_name) | 286 | bb.plain("Image CVE JSON report stored in: %s" % manifest_name) |
287 | } | 287 | } |
288 | 288 | ||
289 | ROOTFS_POSTPROCESS_COMMAND:prepend = "${@'cve_check_write_rootfs_manifest; ' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}" | 289 | ROOTFS_POSTPROCESS_COMMAND:prepend = "${@'cve_check_write_rootfs_manifest ' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}" |
290 | do_rootfs[recrdeptask] += "${@'do_cve_check' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}" | 290 | do_rootfs[recrdeptask] += "${@'do_cve_check' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}" |
291 | do_populate_sdk[recrdeptask] += "${@'do_cve_check' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}" | 291 | do_populate_sdk[recrdeptask] += "${@'do_cve_check' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}" |
292 | 292 | ||
diff --git a/meta/classes/extrausers.bbclass b/meta/classes/extrausers.bbclass index 94576b8872..c825c06df9 100644 --- a/meta/classes/extrausers.bbclass +++ b/meta/classes/extrausers.bbclass | |||
@@ -23,7 +23,7 @@ inherit useradd_base | |||
23 | PACKAGE_INSTALL:append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}" | 23 | PACKAGE_INSTALL:append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}" |
24 | 24 | ||
25 | # Image level user / group settings | 25 | # Image level user / group settings |
26 | ROOTFS_POSTPROCESS_COMMAND:append = " set_user_group;" | 26 | ROOTFS_POSTPROCESS_COMMAND:append = " set_user_group" |
27 | 27 | ||
28 | # Image level user / group settings | 28 | # Image level user / group settings |
29 | set_user_group () { | 29 | set_user_group () { |
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass index 206cc9d57d..b83ce650ad 100644 --- a/meta/classes/image-buildinfo.bbclass +++ b/meta/classes/image-buildinfo.bbclass | |||
@@ -76,6 +76,6 @@ python buildinfo_sdk () { | |||
76 | bb.build.exec_func("buildinfo", d) | 76 | bb.build.exec_func("buildinfo", d) |
77 | } | 77 | } |
78 | 78 | ||
79 | IMAGE_PREPROCESS_COMMAND += "buildinfo_image;" | 79 | IMAGE_PREPROCESS_COMMAND += "buildinfo_image" |
80 | POPULATE_SDK_PRE_TARGET_COMMAND += "buildinfo_sdk;" | 80 | POPULATE_SDK_PRE_TARGET_COMMAND += "buildinfo_sdk" |
81 | 81 | ||
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 |
diff --git a/meta/recipes-core/images/build-appliance-image_15.0.0.bb b/meta/recipes-core/images/build-appliance-image_15.0.0.bb index b078b19a9d..de041a7b7b 100644 --- a/meta/recipes-core/images/build-appliance-image_15.0.0.bb +++ b/meta/recipes-core/images/build-appliance-image_15.0.0.bb | |||
@@ -117,7 +117,7 @@ fakeroot do_tweak_image () { | |||
117 | ln -rs ${IMAGE_ROOTFS}/lib ${IMAGE_ROOTFS}/lib64 | 117 | ln -rs ${IMAGE_ROOTFS}/lib ${IMAGE_ROOTFS}/lib64 |
118 | } | 118 | } |
119 | 119 | ||
120 | IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src; do_tweak_image; " | 120 | IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src do_tweak_image" |
121 | # For pip usage above | 121 | # For pip usage above |
122 | do_image[network] = "1" | 122 | do_image[network] = "1" |
123 | 123 | ||
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb index 96b56a2f59..8af25f1b1f 100644 --- a/meta/recipes-core/images/core-image-tiny-initramfs.bb +++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb | |||
@@ -40,6 +40,6 @@ python tinyinitrd () { | |||
40 | init.write(newinit) | 40 | init.write(newinit) |
41 | } | 41 | } |
42 | 42 | ||
43 | IMAGE_PREPROCESS_COMMAND += "tinyinitrd;" | 43 | IMAGE_PREPROCESS_COMMAND += "tinyinitrd" |
44 | 44 | ||
45 | QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init" | 45 | QB_KERNEL_CMDLINE_APPEND += "debugshell=3 init=/bin/busybox sh init" |