Select this option if your ATF board configuration requires
an ARM32 bare metal toolchain to be available.
+config BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP
+ bool "Build with SSP"
+ depends on BR2_TOOLCHAIN_HAS_SSP
+ depends on !BR2_SSP_NONE
+ default y
+ help
+ Say 'y' here if you want to build ATF with SSP.
+
+ Your board must have SSP support in ATF: it must have an
+ implementation for plat_get_stack_protector_canary().
+
+ If you say 'y', the SSP level will be the level selected
+ by the global SSP setting.
+
+config BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP_LEVEL
+ string
+ default "none" if !BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP
+ default "default" if BR2_SSP_REGULAR
+ default "strong" if BR2_SSP_STRONG
+ default "all" if BR2_SSP_ALL
+
endif
ARM_TRUSTED_FIRMWARE_MAKE_OPTS += \
CROSS_COMPILE="$(TARGET_CROSS)" \
$(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES)) \
- PLAT=$(ARM_TRUSTED_FIRMWARE_PLATFORM)
+ PLAT=$(ARM_TRUSTED_FIRMWARE_PLATFORM) \
+ ENABLE_STACK_PROTECTOR=$(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP_LEVEL))
ifeq ($(BR2_ARM_CPU_ARMV7A),y)
ARM_TRUSTED_FIRMWARE_MAKE_OPTS += ARM_ARCH_MAJOR=7
ARM_TRUSTED_FIRMWARE_DEPENDENCIES += mv-ddr-marvell
endif
-ifeq ($(BR2_SSP_REGULAR),y)
-ARM_TRUSTED_FIRMWARE_MAKE_OPTS += ENABLE_STACK_PROTECTOR=default
-else ifeq ($(BR2_SSP_STRONG),y)
-ARM_TRUSTED_FIRMWARE_MAKE_OPTS += ENABLE_STACK_PROTECTOR=strong
-else ifeq ($(BR2_SSP_ALL),y)
-ARM_TRUSTED_FIRMWARE_MAKE_OPTS += ENABLE_STACK_PROTECTOR=all
-endif
-
ARM_TRUSTED_FIRMWARE_MAKE_TARGETS = all
ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP),y)