Skip to content

Commit 35e76b9

Browse files
anadavIngo Molnar
authored andcommitted
kbuild/arch/xtensa: Define LINKER_SCRIPT for the linker script
Define the LINKER_SCRIPT when building the linker script as being done in other architectures. This is required, because upcoming Makefile changes would otherwise break things. Signed-off-by: Nadav Amit <[email protected]> Acked-by: Max Filippov <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Michal Marek <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent ac0d656 commit 35e76b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/xtensa/kernel/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ sed-y = -e ':a; s/\*(\([^)]*\)\.text\.unlikely/*(\1.literal.unlikely .{text}.unl
3535
-e 's/\.{text}/.text/g'
3636

3737
quiet_cmd__cpp_lds_S = LDS $@
38-
cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Uxtensa -D__ASSEMBLY__ $< \
39-
| sed $(sed-y) >$@
38+
cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Uxtensa -D__ASSEMBLY__ \
39+
-DLINKER_SCRIPT $< | sed $(sed-y) >$@
4040

4141
$(obj)/vmlinux.lds: $(src)/vmlinux.lds.S FORCE
4242
$(call if_changed_dep,_cpp_lds_S)

0 commit comments

Comments
 (0)