@@ -18,6 +18,7 @@ do_populate_sdk_ext[postfuncs] += "sdk_ext_create_sbom"
do_populate_sdk_ext[file-checksums] += "${SPDX3_DEP_FILES}"
POPULATE_SDK_POST_HOST_COMMAND:append:task-populate-sdk-ext = " sdk_ext_host_create_spdx"
POPULATE_SDK_POST_TARGET_COMMAND:append:task-populate-sdk-ext = " sdk_ext_target_create_spdx"
+addtask do_create_image_sbom_spdx before do_sdk_depends
python sdk_host_create_spdx() {
from pathlib import Path
@@ -460,6 +460,15 @@ def prepare_locked_cache(d, baseoutpath, derivative, conf_initpath):
# Filter the locked signatures file to just the sstate tasks we are interested in
excluded_targets = get_sdk_install_targets(d, images_only=True)
+ sdk_targets = d.getVar('SDK_TARGETS')
+ ext_sdk_target_set = set(multilib_pkg_extend(d, sdk_targets).split())
+ excluded_set = set(excluded_targets.split())
+
+ # Ensure SDK_TARGETS and their image SPDX/SBOM tasks are included in the locked signatures,
+ # as they are required during eSDK installation.
+ filtered_excluded_set = excluded_set - ext_sdk_target_set
+ excluded_targets = ' '.join(filtered_excluded_set)
+
sigfile = d.getVar('WORKDIR') + '/locked-sigs.inc'
lockedsigs_pruned = baseoutpath + '/conf/locked-sigs.inc'
#nativesdk-only sigfile to merge into locked-sigs.inc