This version bump is needed to pass the ATF test with hardening option enabled (-fstack-protector-strong) With the version v2.2, ATF fail due to undefined references: ./build/juno/release/bl2u/arm_tzc400.o: In function `arm_tzc400_setup': arm_tzc400.c:(.text.arm_tzc400_setup+0x10): undefined reference to `__stack_chk_guard' arm_tzc400.c:(.text.arm_tzc400_setup+0x18): undefined reference to `__stack_chk_guard' arm_tzc400.c:(.text.arm_tzc400_setup+0xb8): undefined reference to `__stack_chk_guard' arm_tzc400.c:(.text.arm_tzc400_setup+0xcc): undefined reference to `__stack_chk_fail' Since commit ccac9a5bbbd7374187a0f0017101ece0c202851d, Buildroot no longer forces ENABLE_STACK_PROTECTOR. However, we rely on the ATF build system to handle it correctly, and this wasn't the case in v2.2. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/1524842591 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (cherry picked from commit e5494f1fac12744217784c331b1ba3c28f319567) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
58 lines
2.1 KiB
Python
58 lines
2.1 KiB
Python
import infra.basetest
|
|
|
|
|
|
class TestATFVexpress(infra.basetest.BRTest):
|
|
config = \
|
|
"""
|
|
BR2_aarch64=y
|
|
BR2_TOOLCHAIN_EXTERNAL=y
|
|
BR2_TOOLCHAIN_EXTERNAL_LINARO_AARCH64=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/ARM-software/arm-trusted-firmware.git"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="v2.5"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="juno"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y
|
|
BR2_TARGET_UBOOT=y
|
|
BR2_TARGET_UBOOT_BOARDNAME="vexpress_aemv8a_juno"
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.07"
|
|
BR2_TARGET_VEXPRESS_FIRMWARE=y
|
|
"""
|
|
|
|
def test_run(self):
|
|
pass
|
|
|
|
|
|
class TestATFAllwinner(infra.basetest.BRTest):
|
|
config = \
|
|
"""
|
|
BR2_aarch64=y
|
|
BR2_TOOLCHAIN_EXTERNAL=y
|
|
BR2_TOOLCHAIN_EXTERNAL_LINARO_AARCH64=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/apritzel/arm-trusted-firmware.git"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50iw1p1"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="aa75c8da415158a94b82a430b2b40000778e851f"
|
|
BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31=y
|
|
BR2_TARGET_UBOOT=y
|
|
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
|
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.10"
|
|
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="bananapi_m64"
|
|
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
|
BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
|
|
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
|
BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
|
|
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
|
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
|
|
BR2_TARGET_UBOOT_SPL=y
|
|
BR2_TARGET_UBOOT_SPL_NAME="spl/sunxi-spl.bin"
|
|
"""
|
|
|
|
def test_run(self):
|
|
pass
|