diff --git a/config/sources/families/include/imx8_common.inc b/config/sources/families/include/imx8_common.inc index dbff3d421..b5c53aeb2 100644 --- a/config/sources/families/include/imx8_common.inc +++ b/config/sources/families/include/imx8_common.inc @@ -16,6 +16,7 @@ IMX_FIRMWARE="${IMX_FIRMWARE:-"firmware-imx-8.12"}" # ATF_UART_BASE musst set in board # MAP = target_make,target_patchdir,target_files # use xxx:xxx to rename files after build +ATFPATCHDIR='atf-imx8' ATF_TARGET_MAP="PLAT=${ATF_PLAT} IMX_BOOT_UART_BASE=${ATF_UART_BASE} bl31;;build/imx8mp/release/bl31.bin" UBOOT_TARGET_MAP="flash.bin;;flash.bin" diff --git a/patch/atf/atf-imx8/0001-fix-needed-by-armbian-build-system.patch b/patch/atf/atf-imx8/0001-fix-needed-by-armbian-build-system.patch new file mode 100644 index 000000000..9d1f16f1c --- /dev/null +++ b/patch/atf/atf-imx8/0001-fix-needed-by-armbian-build-system.patch @@ -0,0 +1,30 @@ +From 230e25fbcd0a36dfaaa8f3b9f0ad7d9cd0500736 Mon Sep 17 00:00:00 2001 +From: Martin Schmiedel +Date: Wed, 28 May 2025 14:02:39 +0200 +Subject: [PATCH] fix needed by armbian build system + +remove possibly contained gcc linker flags + +Signed-off-by: Martin Schmiedel +--- + Makefile | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Makefile b/Makefile +index ea5701347..7a4ff1244 100644 +--- a/Makefile ++++ b/Makefile +@@ -343,6 +343,10 @@ GCC_V_OUTPUT := $(shell $(CC) -v 2>&1) + + TF_LDFLAGS += -z noexecstack + ++# remove possibly contained gcc linker flags we use the linker directly ++gcc_linker_flags = -Wl,--no-warn-rwx-segment ++TF_LDFLAGS := $(filter-out $(gcc_linker_flags), $(TF_LDFLAGS)) ++ + # LD = armlink + ifneq ($(findstring armlink,$(notdir $(LD))),) + TF_LDFLAGS += --diag_error=warning --lto_level=O1 +-- +2.43.0 +