feat: enabling stack protector for diphda

This commit activates the stack protector feature for the diphda
platform.

Change-Id: Ib16b74871c62b67e593a76ecc12cd3634d212614
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
This commit is contained in:
Abdellatif El Khlifi 2021-08-11 12:04:41 +01:00
parent 5360449b61
commit c7e4f1cfb8

View File

@ -59,6 +59,13 @@ BL31_SOURCES += drivers/cfi/v2m/v2m_flash.c \
${DIPHDA_CPU_LIBS} \
${DIPHDA_GIC_SOURCES}
ifneq (${ENABLE_STACK_PROTECTOR},0)
ifneq (${ENABLE_STACK_PROTECTOR},none)
DIPHDA_SECURITY_SOURCES := plat/arm/board/diphda/common/diphda_stack_protector.c
BL2_SOURCES += ${DIPHDA_SECURITY_SOURCES}
BL31_SOURCES += ${DIPHDA_SECURITY_SOURCES}
endif
endif
FDT_SOURCES += plat/arm/board/diphda/common/fdts/diphda_spmc_manifest.dts
DIPHDA_TOS_FW_CONFIG := ${BUILD_PLAT}/fdts/diphda_spmc_manifest.dtb