summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-11-08 11:38:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-11-08 11:38:41 +0100
commit99878ae30e4fe5cba5d80f67082e5c3c5478e9ed (patch)
treef44579ed8de9f2dddefe8d52c54183e17de59ea1
parent288f3e294bd47a6ef3c5872dc50585c39da3c1f5 (diff)
downloadbarebox-99878ae30e4fe5cba5d80f67082e5c3c5478e9ed.tar.gz
barebox-99878ae30e4fe5cba5d80f67082e5c3c5478e9ed.tar.xz
Kbuild: create LDFLAGS_common
The same linker flags are passed to both LDFLAGS_barebox and LDFLAGS_pbl. Instead of duplicating it create a LDFLAGS_common variable for these common flags. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d7f1e3779a..12882ef4cf 100644
--- a/Makefile
+++ b/Makefile
@@ -453,8 +453,10 @@ KBUILD_CFLAGS_MODULE := -DMODULE
LDFLAGS_barebox := -Map barebox.map
# Avoid 'Not enough room for program headers' error on binutils 2.28 onwards.
-LDFLAGS_barebox += $(call ld-option, --no-dynamic-linker)
-LDFLAGS_pbl += $(call ld-option, --no-dynamic-linker)
+LDFLAGS_common += $(call ld-option, --no-dynamic-linker)
+
+LDFLAGS_barebox += $(LDFLAGS_common)
+LDFLAGS_pbl += $(LDFLAGS_common)
export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL PYTHON3 UTS_MACHINE