|author||Sam Ravnborg <firstname.lastname@example.org>||2009-09-20 12:28:22 +0200|
|committer||Sam Ravnborg <email@example.com>||2009-09-20 12:28:22 +0200|
arm, cris, mips, sparc, powerpc, um, xtensa: fix build with bash 4.0
Albin Tonnerre <firstname.lastname@example.org> reported: Bash 4 filters out variables which contain a dot in them. This happends to be the case of CPPFLAGS_vmlinux.lds. This is rather unfortunate, as it now causes build failures when using SHELL=/bin/bash to compile, or when bash happens to be used by make (eg when it's /bin/sh) Remove the common definition of CPPFLAGS_vmlinux.lds by pushing relevant stuff to either Makefile.build or the arch specific kernel/Makefile where we build the linker script. This is also nice cleanup as we move the information out where it is used. Notes for the different architectures touched: arm - we use an already exported symbol cris - we use a config symbol aleady available [Not build tested] mips - the jiffies complexity has moved to vmlinux.lds.S where we need it. Added a few variables to CPPFLAGS - they are only used by the linker script. [Not build tested] powerpc - removed assignment that is not needed [not build tested] sparc - simplified it using $(BITS) um - introduced a few new exported variables to deal with this xtensa - added options to CPP invocation [not build tested] Cc: Albin Tonnerre <email@example.com> Cc: Russell King <firstname.lastname@example.org> Cc: Mikael Starvik <email@example.com> Cc: Jesper Nilsson <firstname.lastname@example.org> Cc: Benjamin Herrenschmidt <email@example.com> Cc: Paul Mackerras <firstname.lastname@example.org> Cc: "David S. Miller" <email@example.com> Cc: Jeff Dike <firstname.lastname@example.org> Cc: Chris Zankel <email@example.com> Signed-off-by: Sam Ravnborg <firstname.lastname@example.org>
Diffstat (limited to 'Makefile')
1 files changed, 0 insertions, 5 deletions
@@ -1027,11 +1027,6 @@ prepare0: archprepare FORCE
# All the preparing..
-# Leave this as default for preprocessing vmlinux.lds.S, which is now
-# done in arch/$(ARCH)/kernel/Makefile
-export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
# The asm symlink changes when $(ARCH) changes.
# Detect this and ask user to run make mrproper
# If asm is a stale symlink (point to dir that does not exist) remove it