From: Sam Ravnborg Date: Mon, 17 Nov 2008 04:04:20 +0000 (-0800) Subject: sparc,sparc64: add BITS to arch Makefile X-Git-Tag: v2.6.29-rc1~568^2~86 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0cdd599dbbea51bfb36801f5cc5634916bc2a36;p=karo-tx-linux.git sparc,sparc64: add BITS to arch Makefile BITS will be used to simplify unified Makefiles Signed-off-by: Sam Ravnborg Signed-off-by: David S. Miller --- diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index 9592889a6fd0..c5f3d6fe8a67 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile @@ -11,9 +11,10 @@ # 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 diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile index c7214abc0d84..51bc33a6ef33 100644 --- a/arch/sparc64/Makefile +++ b/arch/sparc64/Makefile @@ -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 \