1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-11 15:00:39 +00:00

arm-bsp/corstone1000: Ensures external-system only built when enabled.

The external-system component was marked as a dependency for the
corstone1000-recovery image regardless of whether external-system was
requested or not. This ensures that is no longer the case.

Signed-off-by: Frazer Carsley <frazer.carsley@arm.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Frazer Carsley
2025-07-21 14:16:41 +01:00
committed by Ross Burton
parent a9b75c7e20
commit aedcca76fc
5 changed files with 11 additions and 6 deletions

View File

@@ -4,3 +4,6 @@ header:
local_conf_header: local_conf_header:
extsys: | extsys: |
MACHINE_FEATURES += "corstone1000-extsys" MACHINE_FEATURES += "corstone1000-extsys"
# external system firmware
CORE_IMAGE_EXTRA_INSTALL:firmware += "external-system-elf"

View File

@@ -40,9 +40,6 @@ local_conf_header:
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-ts-tests-psa" CORE_IMAGE_EXTRA_INSTALL += "packagegroup-ts-tests-psa"
CORE_IMAGE_EXTRA_INSTALL:firmware += "packagegroup-ts-tests-psa" CORE_IMAGE_EXTRA_INSTALL:firmware += "packagegroup-ts-tests-psa"
# external system firmware
CORE_IMAGE_EXTRA_INSTALL:firmware += "external-system-elf"
capsule: | capsule: |
CAPSULE_EXTENSION = "uefi.capsule" CAPSULE_EXTENSION = "uefi.capsule"
CAPSULE_FW_VERSION = "6" CAPSULE_FW_VERSION = "6"

View File

@@ -42,7 +42,8 @@ FVP_CONFIG[se.cryptocell.USER_OTP_FILTERING_DISABLE] ?= "1"
FVP_DATA ?= "board.flash0=corstone1000-flash-firmware-image-${MACHINE}.wic@0x68000000" FVP_DATA ?= "board.flash0=corstone1000-flash-firmware-image-${MACHINE}.wic@0x68000000"
# External system (cortex-M3) # External system (cortex-M3)
FVP_CONFIG[extsys_harness0.extsys_flashloader.fname] ?= "es_flashfw.bin" FVP_CONFIG[extsys_harness0.extsys_flashloader.fname] ?= "${@bb.utils.contains(\
'MACHINE_FEATURES', 'corstone1000-extsys', 'es_flashfw.bin', '', d)}"
# FVP Terminals # FVP Terminals
FVP_TERMINALS[host.host_terminal_0] ?= "Normal World Console" FVP_TERMINALS[host.host_terminal_0] ?= "Normal World Console"

View File

@@ -2,7 +2,10 @@ COMPATIBLE_MACHINE = "corstone1000"
FIRMWARE_BINARIES = "corstone1000-flash-firmware-image-${MACHINE}.wic \ FIRMWARE_BINARIES = "corstone1000-flash-firmware-image-${MACHINE}.wic \
bl1.bin \ bl1.bin \
es_flashfw.bin \ ${@bb.utils.contains('MACHINE_FEATURES', \
'corstone1000-extsys', \
'es_flashfw.bin', \
'', d)} \
${CAPSULE_NAME}.${CAPSULE_EXTENSION} \ ${CAPSULE_NAME}.${CAPSULE_EXTENSION} \
corstone1000_capsule_cert.crt \ corstone1000_capsule_cert.crt \
corstone1000_capsule_key.key \ corstone1000_capsule_key.key \

View File

@@ -14,7 +14,8 @@ inherit tfm_sign_image
inherit uefi_capsule inherit uefi_capsule
inherit deploy inherit deploy
DEPENDS += "external-system \ DEPENDS += "${@bb.utils.contains('MACHINE_FEATURES', 'corstone1000-extsys', \
'external-system', '', d)} \
trusted-firmware-a \ trusted-firmware-a \
trusted-firmware-m \ trusted-firmware-m \
u-boot \ u-boot \