]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
sparc,sparc64: add BITS to arch Makefile
authorSam Ravnborg <sam@ravnborg.org>
Mon, 17 Nov 2008 04:04:20 +0000 (20:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 17:16:54 +0000 (09:16 -0800)
BITS will be used to simplify unified Makefiles

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/Makefile
arch/sparc64/Makefile

index 9592889a6fd0e11ef797e138b4be58f94b27bd30..c5f3d6fe8a67f0662b19e38ed6b333792a000471 100644 (file)
 # Uncomment the first KBUILD_CFLAGS if you are doing kgdb source level
 # debugging of the kernel to get the proper debugging information.
 
-AS              := $(AS) -32
-LDFLAGS                := -m elf32_sparc
-CHECKFLAGS     += -D__sparc__
+AS             := $(AS) -32
+LDFLAGS        := -m elf32_sparc
+CHECKFLAGS     += -D__sparc__
+export BITS    := 32
 
 #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7
 KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
index c7214abc0d84f9b8e2c4c591fc0256e77da1638e..51bc33a6ef3332db67393b8c12d0eab3e6354a5a 100644 (file)
@@ -12,8 +12,8 @@ CHECKFLAGS    += -D__sparc__ -D__sparc_v9__ -D__arch64__ -m64
 # Undefine sparc when processing vmlinux.lds - it is used
 # And teach CPP we are doing 64 bit builds (for this case)
 CPPFLAGS_vmlinux.lds += -m64 -Usparc
-
-LDFLAGS                := -m elf64_sparc
+LDFLAGS              := -m elf64_sparc
+export BITS          := 64
 
 KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
        -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \