diff options
author | Sam Ravnborg <sam@neptun.(none)> | 2007-10-15 15:59:31 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.(none)> | 2007-10-15 15:59:31 -0400 |
commit | 222d394d30e74bb7a2a65029fcea68107b0d0eb6 (patch) | |
tree | 1112c98d7edc51d1c6d5e9f3d826e29a42afd4da /arch/frv/Makefile | |
parent | 714055ede4ffd60933397d4b61d285d0dfc9ecaf (diff) |
kbuild: enable 'make AFLAGS=...' to add additional options to AS
The variable AFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
On top of that several people over time has asked for a way to
pass in additional flags to gcc.
This patch replace use of AFLAGS with KBUILD_AFLAGS all over
the tree.
Patch was tested on following architectures:
alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/frv/Makefile')
-rw-r--r-- | arch/frv/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/frv/Makefile b/arch/frv/Makefile index ec89886ed455..310c47a663f8 100644 --- a/arch/frv/Makefile +++ b/arch/frv/Makefile | |||
@@ -63,16 +63,16 @@ endif | |||
63 | 63 | ||
64 | ifdef CONFIG_CPU_FR451_COMPILE | 64 | ifdef CONFIG_CPU_FR451_COMPILE |
65 | KBUILD_CFLAGS += -mcpu=fr450 | 65 | KBUILD_CFLAGS += -mcpu=fr450 |
66 | AFLAGS += -mcpu=fr450 | 66 | KBUILD_AFLAGS += -mcpu=fr450 |
67 | ASFLAGS += -mcpu=fr450 | 67 | ASFLAGS += -mcpu=fr450 |
68 | else | 68 | else |
69 | ifdef CONFIG_CPU_FR551_COMPILE | 69 | ifdef CONFIG_CPU_FR551_COMPILE |
70 | KBUILD_CFLAGS += -mcpu=fr550 | 70 | KBUILD_CFLAGS += -mcpu=fr550 |
71 | AFLAGS += -mcpu=fr550 | 71 | KBUILD_AFLAGS += -mcpu=fr550 |
72 | ASFLAGS += -mcpu=fr550 | 72 | ASFLAGS += -mcpu=fr550 |
73 | else | 73 | else |
74 | KBUILD_CFLAGS += -mcpu=fr400 | 74 | KBUILD_CFLAGS += -mcpu=fr400 |
75 | AFLAGS += -mcpu=fr400 | 75 | KBUILD_AFLAGS += -mcpu=fr400 |
76 | ASFLAGS += -mcpu=fr400 | 76 | ASFLAGS += -mcpu=fr400 |
77 | endif | 77 | endif |
78 | endif | 78 | endif |
@@ -82,14 +82,14 @@ endif | |||
82 | # - all the extra registers are dealt with only at context switch time | 82 | # - all the extra registers are dealt with only at context switch time |
83 | KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media | 83 | KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media |
84 | KBUILD_CFLAGS += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2 | 84 | KBUILD_CFLAGS += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2 |
85 | AFLAGS += -mno-fdpic | 85 | KBUILD_AFLAGS += -mno-fdpic |
86 | ASFLAGS += -mno-fdpic | 86 | ASFLAGS += -mno-fdpic |
87 | 87 | ||
88 | # make sure the .S files get compiled with debug info | 88 | # make sure the .S files get compiled with debug info |
89 | # and disable optimisations that are unhelpful whilst debugging | 89 | # and disable optimisations that are unhelpful whilst debugging |
90 | ifdef CONFIG_DEBUG_INFO | 90 | ifdef CONFIG_DEBUG_INFO |
91 | #KBUILD_CFLAGS += -O1 | 91 | #KBUILD_CFLAGS += -O1 |
92 | AFLAGS += -Wa,--gdwarf2 | 92 | KBUILD_AFLAGS += -Wa,--gdwarf2 |
93 | ASFLAGS += -Wa,--gdwarf2 | 93 | ASFLAGS += -Wa,--gdwarf2 |
94 | endif | 94 | endif |
95 | 95 | ||