diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-08 11:38:38 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-08 11:38:41 +0100 |
commit | 99878ae30e4fe5cba5d80f67082e5c3c5478e9ed (patch) | |
tree | f44579ed8de9f2dddefe8d52c54183e17de59ea1 | |
parent | 288f3e294bd47a6ef3c5872dc50585c39da3c1f5 (diff) | |
download | barebox-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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |