mirror of https://github.com/armbian/build.git
IMX8: fix build error
- fixes: unrecognized option '-Wl,--no-warn-rwx-segment' - add a patch to atf that removes the unrecognized linker options Signed-off-by: Martin Schmiedel <Martin.Schmiedel@tq-group.com>
This commit is contained in:
parent
18ddabe25f
commit
ddfe4f4106
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
From 230e25fbcd0a36dfaaa8f3b9f0ad7d9cd0500736 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Schmiedel <Martin.Schmiedel@tq-group.com>
|
||||
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 <Martin.Schmiedel@tq-group.com>
|
||||
---
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue