diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-05-15 15:21:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-15 15:44:12 -0400 |
commit | 38753586a30956431593d36d24af1c5f09248f4a (patch) | |
tree | 108be1abd3bf4bb150e948a427cd4c96dc3a2e78 /arch/sparc/Makefile | |
parent | 04d0ca44ebbe807df83112b826783216765910f2 (diff) |
sparc: clean up Makefile
- delete unused variables
- align assignments
- drop stale comments
- kill use of "\" for line continuation
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/Makefile')
-rw-r--r-- | arch/sparc/Makefile | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index 23f17d1c8cb4..a4928150c631 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile | |||
@@ -19,34 +19,27 @@ ifeq ($(CONFIG_SPARC32),y) | |||
19 | # sparc32 | 19 | # sparc32 |
20 | # | 20 | # |
21 | 21 | ||
22 | # | ||
23 | # Uncomment the first KBUILD_CFLAGS if you are doing kgdb source level | ||
24 | # debugging of the kernel to get the proper debugging information. | ||
25 | |||
26 | AS := $(AS) -32 | ||
27 | LDFLAGS := -m elf32_sparc | ||
28 | CHECKFLAGS += -D__sparc__ | 22 | CHECKFLAGS += -D__sparc__ |
23 | LDFLAGS := -m elf32_sparc | ||
29 | export BITS := 32 | 24 | export BITS := 32 |
30 | UTS_MACHINE := sparc | 25 | UTS_MACHINE := sparc |
31 | 26 | ||
32 | #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7 | 27 | KBUILD_CFLAGS += -m32 -mcpu=v8 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 |
33 | KBUILD_CFLAGS += -m32 -mcpu=v8 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 | 28 | KBUILD_AFLAGS += -m32 -Wa,-Av8 |
34 | KBUILD_AFLAGS += -m32 -Wa,-Av8 | ||
35 | 29 | ||
36 | else | 30 | else |
37 | ##### | 31 | ##### |
38 | # sparc64 | 32 | # sparc64 |
39 | # | 33 | # |
40 | 34 | ||
41 | CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -D__arch64__ -m64 | 35 | CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -D__arch64__ -m64 |
36 | LDFLAGS := -m elf64_sparc | ||
37 | export BITS := 64 | ||
38 | UTS_MACHINE := sparc64 | ||
42 | 39 | ||
43 | LDFLAGS := -m elf64_sparc | 40 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow |
44 | export BITS := 64 | 41 | KBUILD_CFLAGS += -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare |
45 | UTS_MACHINE := sparc64 | 42 | KBUILD_CFLAGS += -Wa,--undeclared-regs |
46 | |||
47 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ | ||
48 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ | ||
49 | -Wa,--undeclared-regs | ||
50 | KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3) | 43 | KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3) |
51 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs | 44 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs |
52 | 45 | ||
@@ -67,10 +60,6 @@ libs-y += arch/sparc/lib/ | |||
67 | 60 | ||
68 | drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/ | 61 | drivers-$(CONFIG_OPROFILE) += arch/sparc/oprofile/ |
69 | 62 | ||
70 | ifdef CONFIG_KALLSYMS | ||
71 | export kallsyms.o := .tmp_kallsyms2.o | ||
72 | endif | ||
73 | |||
74 | boot := arch/sparc/boot | 63 | boot := arch/sparc/boot |
75 | 64 | ||
76 | # Default target | 65 | # Default target |