diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-11-16 23:04:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-04 12:16:54 -0500 |
commit | b0cdd599dbbea51bfb36801f5cc5634916bc2a36 (patch) | |
tree | 004f0bf27cd06026774081fdc305a3a572d28f53 /arch | |
parent | 26b4c912185a8902b0990166892d53be78ef8cfc (diff) |
sparc,sparc64: add BITS to arch Makefile
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/Makefile | 7 | ||||
-rw-r--r-- | arch/sparc64/Makefile | 4 |
2 files changed, 6 insertions, 5 deletions
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 @@ | |||
11 | # Uncomment the first KBUILD_CFLAGS if you are doing kgdb source level | 11 | # Uncomment the first KBUILD_CFLAGS if you are doing kgdb source level |
12 | # debugging of the kernel to get the proper debugging information. | 12 | # debugging of the kernel to get the proper debugging information. |
13 | 13 | ||
14 | AS := $(AS) -32 | 14 | AS := $(AS) -32 |
15 | LDFLAGS := -m elf32_sparc | 15 | LDFLAGS := -m elf32_sparc |
16 | CHECKFLAGS += -D__sparc__ | 16 | CHECKFLAGS += -D__sparc__ |
17 | export BITS := 32 | ||
17 | 18 | ||
18 | #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7 | 19 | #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7 |
19 | KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 | 20 | 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 | |||
12 | # Undefine sparc when processing vmlinux.lds - it is used | 12 | # Undefine sparc when processing vmlinux.lds - it is used |
13 | # And teach CPP we are doing 64 bit builds (for this case) | 13 | # And teach CPP we are doing 64 bit builds (for this case) |
14 | CPPFLAGS_vmlinux.lds += -m64 -Usparc | 14 | CPPFLAGS_vmlinux.lds += -m64 -Usparc |
15 | 15 | LDFLAGS := -m elf64_sparc | |
16 | LDFLAGS := -m elf64_sparc | 16 | export BITS := 64 |
17 | 17 | ||
18 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ | 18 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ |
19 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ | 19 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ |