diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 14:23:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 14:23:06 -0400 |
commit | 821f3eff7cdb9d6c7076effabd46c96c322daed1 (patch) | |
tree | 60f13155196fd6c84424c8aebc133ca4a5f56749 /arch/frv | |
parent | ebc283118ee448dcb6e6cae74a8a43f17a1ccc3f (diff) | |
parent | f77bf01425b11947eeb3b5b54685212c302741b8 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits)
kbuild: introduce ccflags-y, asflags-y and ldflags-y
kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
kbuild: enable use of AFLAGS and CFLAGS on commandline
kbuild: enable 'make AFLAGS=...' to add additional options to AS
kbuild: fix AFLAGS use in h8300 and m68knommu
kbuild: check for wrong use of CFLAGS
kbuild: enable 'make CFLAGS=...' to add additional options to CC
kbuild: fix up CFLAGS usage
kbuild: make modpost detect unterminated device id lists
kbuild: call export_report from the Makefile
kbuild: move Kai Germaschewski to CREDITS
kconfig/menuconfig: distinguish between selected-by-another options and comments
kconfig: tristate choices with mixed tristate and boolean values
include/linux/Kbuild: remove duplicate entries
kbuild: kill backward compatibility checks
kbuild: kill EXTRA_ARFLAGS
kbuild: fix documentation in makefiles.txt
kbuild: call make once for all targets when O=.. is used
kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
kbuild: update _shipped files for kconfig syntax cleanup
...
Fix up conflicts in arch/um/sys-{x86_64,i386}/Makefile manually.
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/Makefile | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/frv/Makefile b/arch/frv/Makefile index 9bf7345c5cc9..310c47a663f8 100644 --- a/arch/frv/Makefile +++ b/arch/frv/Makefile | |||
@@ -39,13 +39,13 @@ endif | |||
39 | ARCHMODFLAGS += -G0 -mlong-calls | 39 | ARCHMODFLAGS += -G0 -mlong-calls |
40 | 40 | ||
41 | ifdef CONFIG_GPREL_DATA_8 | 41 | ifdef CONFIG_GPREL_DATA_8 |
42 | CFLAGS += -G8 | 42 | KBUILD_CFLAGS += -G8 |
43 | else | 43 | else |
44 | ifdef CONFIG_GPREL_DATA_4 | 44 | ifdef CONFIG_GPREL_DATA_4 |
45 | CFLAGS += -G4 | 45 | KBUILD_CFLAGS += -G4 |
46 | else | 46 | else |
47 | ifdef CONFIG_GPREL_DATA_NONE | 47 | ifdef CONFIG_GPREL_DATA_NONE |
48 | CFLAGS += -G0 | 48 | KBUILD_CFLAGS += -G0 |
49 | endif | 49 | endif |
50 | endif | 50 | endif |
51 | endif | 51 | endif |
@@ -53,26 +53,26 @@ endif | |||
53 | #LDFLAGS_vmlinux := -Map linkmap.txt | 53 | #LDFLAGS_vmlinux := -Map linkmap.txt |
54 | 54 | ||
55 | ifdef CONFIG_GC_SECTIONS | 55 | ifdef CONFIG_GC_SECTIONS |
56 | CFLAGS += -ffunction-sections -fdata-sections | 56 | KBUILD_CFLAGS += -ffunction-sections -fdata-sections |
57 | LINKFLAGS += --gc-sections | 57 | LINKFLAGS += --gc-sections |
58 | endif | 58 | endif |
59 | 59 | ||
60 | ifndef CONFIG_FRAME_POINTER | 60 | ifndef CONFIG_FRAME_POINTER |
61 | CFLAGS += -mno-linked-fp | 61 | KBUILD_CFLAGS += -mno-linked-fp |
62 | endif | 62 | endif |
63 | 63 | ||
64 | ifdef CONFIG_CPU_FR451_COMPILE | 64 | ifdef CONFIG_CPU_FR451_COMPILE |
65 | 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 | 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 | 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 |
@@ -80,16 +80,16 @@ endif | |||
80 | # pretend the kernel is going to run on an FR400 with no media-fp unit | 80 | # pretend the kernel is going to run on an FR400 with no media-fp unit |
81 | # - reserve CC3 for use with atomic ops | 81 | # - reserve CC3 for use with atomic ops |
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 | CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media | 83 | KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media |
84 | 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 | #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 | ||