summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-mkimage
diff options
context:
space:
mode:
authorLeonardo Costa <leonardo.costa@toradex.com>2026-06-02 09:47:32 -0300
committerLeonardo Costa <leonardo.costa@toradex.com>2026-06-03 08:35:36 -0300
commitbd93178ff7e7001ccd0467c7048dc68a68165c5c (patch)
treebf7907e5486c8d6ba5d78ee2dfc11ebfa392c75e /recipes-bsp/imx-mkimage
parent817563ee495641ae391da2bd70e1f367c7afefb1 (diff)
downloadmeta-freescale-bd93178ff7e7001ccd0467c7048dc68a68165c5c.tar.gz
imx-mkimage: imx-boot: Specify build dependencies in DEPENDS
Dependencies listed via do_compile[depends] are invisible to the SBOM script from OpenEmbedded. List the build-time dependencies for imx-boot in the DEPENDS variable instead, while preserving the required task order, allowing these components to be automatically included in the imx-boot SBOM. Signed-off-by: Leonardo Costa <leonardo.costa@toradex.com>
Diffstat (limited to 'recipes-bsp/imx-mkimage')
-rw-r--r--recipes-bsp/imx-mkimage/imx-boot_1.0.bb19
1 files changed, 12 insertions, 7 deletions
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
index ebbf0d7a3..fcc8f84b3 100644
--- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
+++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb
@@ -14,15 +14,20 @@ DEPENDS:append:mx95-generic-bsp = " u-boot-mkeficapsule-native"
14 14
15# This package aggregates output deployed by other packages, 15# This package aggregates output deployed by other packages,
16# so set the appropriate dependencies 16# so set the appropriate dependencies
17do_compile[depends] += " \ 17DEPENDS += " \
18 virtual/bootloader:do_deploy \ 18 virtual/bootloader \
19 ${@' '.join('%s:do_deploy' % r for r in '${IMX_EXTRA_FIRMWARE}'.split() )} \ 19 ${IMX_EXTRA_FIRMWARE} \
20 imx-atf:do_deploy \ 20 imx-atf \
21 ${@bb.utils.contains('UBOOT_CONFIG', 'crrm', '${CRRM_DEPLOY_DEPENDS}', '', d)} \ 21 ${@bb.utils.contains('UBOOT_CONFIG', 'crrm', '${CRRM_DEPLOY_DEPENDS}', '', d)} \
22 ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'optee-os:do_deploy', '', d)}" 22 ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'optee-os', '', d)} \
23"
24
25do_compile[deptask] = "do_deploy"
26do_compile[depends] += "${@bb.utils.contains('UBOOT_CONFIG', 'crrm', '${CRRM_INITRAMFS}:do_build', '', d)}"
27
23CRRM_DEPLOY_DEPENDS ?= " \ 28CRRM_DEPLOY_DEPENDS ?= " \
24 virtual/kernel:do_deploy \ 29 virtual/kernel \
25 ${CRRM_INITRAMFS}:do_build" 30 ${CRRM_INITRAMFS}"
26CRRM_INITRAMFS ??= "imx-image-crrm-initramfs" 31CRRM_INITRAMFS ??= "imx-image-crrm-initramfs"
27 32
28inherit use-imx-security-controller-firmware uboot-config 33inherit use-imx-security-controller-firmware uboot-config