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/i386/Makefile | |
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/i386/Makefile')
-rw-r--r-- | arch/i386/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index 5e50dbf00f3e..f036d2dee3de 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -34,10 +34,10 @@ LDFLAGS_vmlinux := --emit-relocs | |||
34 | endif | 34 | endif |
35 | CHECKFLAGS += -D__i386__ | 35 | CHECKFLAGS += -D__i386__ |
36 | 36 | ||
37 | CFLAGS += -pipe -msoft-float -mregparm=3 -freg-struct-return | 37 | KBUILD_CFLAGS += -pipe -msoft-float -mregparm=3 -freg-struct-return |
38 | 38 | ||
39 | # prevent gcc from keeping the stack 16 byte aligned | 39 | # prevent gcc from keeping the stack 16 byte aligned |
40 | CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) | 40 | KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) |
41 | 41 | ||
42 | # CPU-specific tuning. Anything which can be shared with UML should go here. | 42 | # CPU-specific tuning. Anything which can be shared with UML should go here. |
43 | include $(srctree)/arch/i386/Makefile.cpu | 43 | include $(srctree)/arch/i386/Makefile.cpu |
@@ -51,17 +51,17 @@ cflags-y += -maccumulate-outgoing-args | |||
51 | 51 | ||
52 | # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use | 52 | # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use |
53 | # a lot more stack due to the lack of sharing of stacklots: | 53 | # a lot more stack due to the lack of sharing of stacklots: |
54 | CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call cc-option,-fno-unit-at-a-time); fi ;) | 54 | KBUILD_CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call cc-option,-fno-unit-at-a-time); fi ;) |
55 | 55 | ||
56 | # do binutils support CFI? | 56 | # do binutils support CFI? |
57 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_rel_offset esp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) | 57 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_rel_offset esp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) |
58 | AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_rel_offset esp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) | 58 | KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_rel_offset esp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) |
59 | 59 | ||
60 | # is .cfi_signal_frame supported too? | 60 | # is .cfi_signal_frame supported too? |
61 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) | 61 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) |
62 | AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) | 62 | KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) |
63 | 63 | ||
64 | CFLAGS += $(cflags-y) | 64 | KBUILD_CFLAGS += $(cflags-y) |
65 | 65 | ||
66 | # Default subarch .c files | 66 | # Default subarch .c files |
67 | mcore-y := arch/x86/mach-default | 67 | mcore-y := arch/x86/mach-default |
@@ -116,8 +116,8 @@ drivers-$(CONFIG_OPROFILE) += arch/x86/oprofile/ | |||
116 | drivers-$(CONFIG_PM) += arch/x86/power/ | 116 | drivers-$(CONFIG_PM) += arch/x86/power/ |
117 | drivers-$(CONFIG_FB) += arch/x86/video/ | 117 | drivers-$(CONFIG_FB) += arch/x86/video/ |
118 | 118 | ||
119 | CFLAGS += $(mflags-y) | 119 | KBUILD_CFLAGS += $(mflags-y) |
120 | AFLAGS += $(mflags-y) | 120 | KBUILD_AFLAGS += $(mflags-y) |
121 | 121 | ||
122 | boot := arch/x86/boot | 122 | boot := arch/x86/boot |
123 | 123 | ||