diff options
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 5 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | arch/arm/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/vfp/Makefile | 2 | ||||
-rw-r--r-- | arch/avr32/Makefile | 4 | ||||
-rw-r--r-- | arch/blackfin/Makefile | 2 | ||||
-rw-r--r-- | arch/cris/Makefile | 2 | ||||
-rw-r--r-- | arch/frv/Makefile | 10 | ||||
-rw-r--r-- | arch/h8300/Makefile | 2 | ||||
-rw-r--r-- | arch/i386/Makefile | 6 | ||||
-rw-r--r-- | arch/m32r/Makefile | 2 | ||||
-rw-r--r-- | arch/m68knommu/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/Makefile | 4 | ||||
-rw-r--r-- | arch/ppc/Makefile | 4 | ||||
-rw-r--r-- | arch/s390/Makefile | 6 | ||||
-rw-r--r-- | arch/sh/Makefile | 2 | ||||
-rw-r--r-- | arch/sparc/Makefile | 2 | ||||
-rw-r--r-- | arch/sparc64/Makefile | 2 | ||||
-rw-r--r-- | arch/um/Makefile | 2 | ||||
-rw-r--r-- | arch/um/Makefile-i386 | 2 | ||||
-rw-r--r-- | arch/um/Makefile-x86_64 | 2 | ||||
-rw-r--r-- | arch/um/sys-ppc/Makefile | 6 | ||||
-rw-r--r-- | arch/x86/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/boot/compressed/Makefile_64 | 2 | ||||
-rw-r--r-- | arch/x86_64/Makefile | 6 | ||||
-rw-r--r-- | scripts/Kbuild.include | 2 | ||||
-rw-r--r-- | scripts/Makefile.lib | 2 |
28 files changed, 48 insertions, 47 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 1ca535bcc8c7..f4779cd1542f 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -424,6 +424,7 @@ more details, with real examples. | |||
424 | as-instr checks if the assembler reports a specific instruction | 424 | as-instr checks if the assembler reports a specific instruction |
425 | and then outputs either option1 or option2 | 425 | and then outputs either option1 or option2 |
426 | C escapes are supported in the test instruction | 426 | C escapes are supported in the test instruction |
427 | Note: as-instr-option uses KBUILD_AFLAGS for $(AS) options | ||
427 | 428 | ||
428 | cc-option | 429 | cc-option |
429 | cc-option is used to check if $(CC) supports a given option, and not | 430 | cc-option is used to check if $(CC) supports a given option, and not |
@@ -819,14 +820,14 @@ When kbuild executes, the following steps are followed (roughly): | |||
819 | In this example, the binary $(obj)/image is a binary version of | 820 | In this example, the binary $(obj)/image is a binary version of |
820 | vmlinux. The usage of $(call if_changed,xxx) will be described later. | 821 | vmlinux. The usage of $(call if_changed,xxx) will be described later. |
821 | 822 | ||
822 | AFLAGS $(AS) assembler flags | 823 | KBUILD_AFLAGS $(AS) assembler flags |
823 | 824 | ||
824 | Default value - see top level Makefile | 825 | Default value - see top level Makefile |
825 | Append or modify as required per architecture. | 826 | Append or modify as required per architecture. |
826 | 827 | ||
827 | Example: | 828 | Example: |
828 | #arch/sparc64/Makefile | 829 | #arch/sparc64/Makefile |
829 | AFLAGS += -m64 -mcpu=ultrasparc | 830 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc |
830 | 831 | ||
831 | KBUILD_CFLAGS $(CC) compiler flags | 832 | KBUILD_CFLAGS $(CC) compiler flags |
832 | 833 | ||
@@ -323,7 +323,7 @@ CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) | |||
323 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ | 323 | KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ |
324 | -fno-strict-aliasing -fno-common \ | 324 | -fno-strict-aliasing -fno-common \ |
325 | -Werror-implicit-function-declaration | 325 | -Werror-implicit-function-declaration |
326 | AFLAGS := -D__ASSEMBLY__ | 326 | KBUILD_AFLAGS := -D__ASSEMBLY__ |
327 | 327 | ||
328 | # Read KERNELRELEASE from include/config/kernel.release (if it exists) | 328 | # Read KERNELRELEASE from include/config/kernel.release (if it exists) |
329 | KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) | 329 | KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) |
@@ -336,7 +336,7 @@ export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS | |||
336 | 336 | ||
337 | export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS | 337 | export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS |
338 | export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE | 338 | export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE |
339 | export AFLAGS AFLAGS_KERNEL AFLAGS_MODULE | 339 | export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE |
340 | 340 | ||
341 | # When compiling out-of-tree modules, put MODVERDIR in the module | 341 | # When compiling out-of-tree modules, put MODVERDIR in the module |
342 | # tree rather than in the kernel tree. The kernel tree might | 342 | # tree rather than in the kernel tree. The kernel tree might |
@@ -507,7 +507,7 @@ endif | |||
507 | 507 | ||
508 | ifdef CONFIG_DEBUG_INFO | 508 | ifdef CONFIG_DEBUG_INFO |
509 | KBUILD_CFLAGS += -g | 509 | KBUILD_CFLAGS += -g |
510 | AFLAGS += -gdwarf-2 | 510 | KBUILD_AFLAGS += -gdwarf-2 |
511 | endif | 511 | endif |
512 | 512 | ||
513 | # Force gcc to behave correct even for buggy distributions | 513 | # Force gcc to behave correct even for buggy distributions |
@@ -1502,7 +1502,7 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files)) | |||
1502 | cmd_rmfiles = rm -f $(rm-files) | 1502 | cmd_rmfiles = rm -f $(rm-files) |
1503 | 1503 | ||
1504 | 1504 | ||
1505 | a_flags = -Wp,-MD,$(depfile) $(AFLAGS) $(AFLAGS_KERNEL) \ | 1505 | a_flags = -Wp,-MD,$(depfile) $(KBUILD_AFLAGS) $(AFLAGS_KERNEL) \ |
1506 | $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | 1506 | $(NOSTDINC_FLAGS) $(CPPFLAGS) \ |
1507 | $(modkern_aflags) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) | 1507 | $(modkern_aflags) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) |
1508 | 1508 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 0b82865ab506..b762d235b81a 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -86,7 +86,7 @@ endif | |||
86 | 86 | ||
87 | # Need -Uarm for gcc < 3.x | 87 | # Need -Uarm for gcc < 3.x |
88 | KBUILD_CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm | 88 | KBUILD_CFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm |
89 | AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float | 89 | KBUILD_AFLAGS +=$(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float |
90 | 90 | ||
91 | CHECKFLAGS += -D__arm__ | 91 | CHECKFLAGS += -D__arm__ |
92 | 92 | ||
diff --git a/arch/arm/vfp/Makefile b/arch/arm/vfp/Makefile index 7e136e77971a..39f6d8e1af73 100644 --- a/arch/arm/vfp/Makefile +++ b/arch/arm/vfp/Makefile | |||
@@ -7,7 +7,7 @@ | |||
7 | # EXTRA_CFLAGS := -DDEBUG | 7 | # EXTRA_CFLAGS := -DDEBUG |
8 | # EXTRA_AFLAGS := -DDEBUG | 8 | # EXTRA_AFLAGS := -DDEBUG |
9 | 9 | ||
10 | AFLAGS :=$(AFLAGS:-msoft-float=-Wa,-mfpu=softvfp+vfp) | 10 | KBUILD_AFLAGS :=$(KBUILD_AFLAGS:-msoft-float=-Wa,-mfpu=softvfp+vfp) |
11 | LDFLAGS +=--no-warn-mismatch | 11 | LDFLAGS +=--no-warn-mismatch |
12 | 12 | ||
13 | obj-y += vfp.o | 13 | obj-y += vfp.o |
diff --git a/arch/avr32/Makefile b/arch/avr32/Makefile index 9883c8b55e1b..87918647be6d 100644 --- a/arch/avr32/Makefile +++ b/arch/avr32/Makefile | |||
@@ -12,14 +12,14 @@ all: uImage vmlinux.elf | |||
12 | KBUILD_DEFCONFIG := atstk1002_defconfig | 12 | KBUILD_DEFCONFIG := atstk1002_defconfig |
13 | 13 | ||
14 | KBUILD_CFLAGS += -pipe -fno-builtin -mno-pic | 14 | KBUILD_CFLAGS += -pipe -fno-builtin -mno-pic |
15 | AFLAGS += -mrelax -mno-pic | 15 | KBUILD_AFLAGS += -mrelax -mno-pic |
16 | CFLAGS_MODULE += -mno-relax | 16 | CFLAGS_MODULE += -mno-relax |
17 | LDFLAGS_vmlinux += --relax | 17 | LDFLAGS_vmlinux += --relax |
18 | 18 | ||
19 | cpuflags-$(CONFIG_CPU_AT32AP7000) += -mcpu=ap7000 | 19 | cpuflags-$(CONFIG_CPU_AT32AP7000) += -mcpu=ap7000 |
20 | 20 | ||
21 | KBUILD_CFLAGS += $(cpuflags-y) | 21 | KBUILD_CFLAGS += $(cpuflags-y) |
22 | AFLAGS += $(cpuflags-y) | 22 | KBUILD_AFLAGS += $(cpuflags-y) |
23 | 23 | ||
24 | CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN | 24 | CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN |
25 | 25 | ||
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile index 52a6ac072851..368933760d28 100644 --- a/arch/blackfin/Makefile +++ b/arch/blackfin/Makefile | |||
@@ -54,7 +54,7 @@ rev-$(CONFIG_BF_REV_NONE) := none | |||
54 | rev-$(CONFIG_BF_REV_ANY) := any | 54 | rev-$(CONFIG_BF_REV_ANY) := any |
55 | 55 | ||
56 | KBUILD_CFLAGS += -mcpu=$(cpu-y)-$(rev-y) | 56 | KBUILD_CFLAGS += -mcpu=$(cpu-y)-$(rev-y) |
57 | AFLAGS += -mcpu=$(cpu-y)-$(rev-y) | 57 | KBUILD_AFLAGS += -mcpu=$(cpu-y)-$(rev-y) |
58 | 58 | ||
59 | head-y := arch/$(ARCH)/mach-$(MACHINE)/head.o arch/$(ARCH)/kernel/init_task.o | 59 | head-y := arch/$(ARCH)/mach-$(MACHINE)/head.o arch/$(ARCH)/kernel/init_task.o |
60 | 60 | ||
diff --git a/arch/cris/Makefile b/arch/cris/Makefile index 32ef6f3cce06..e6bf00c262e0 100644 --- a/arch/cris/Makefile +++ b/arch/cris/Makefile | |||
@@ -29,7 +29,7 @@ LD = $(CROSS_COMPILE)ld -mcrislinux | |||
29 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S | 29 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S |
30 | 30 | ||
31 | CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE) | 31 | CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE) |
32 | AFLAGS += -mlinux | 32 | KBUILD_AFLAGS += -mlinux |
33 | 33 | ||
34 | KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe | 34 | KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe |
35 | 35 | ||
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 | ||
diff --git a/arch/h8300/Makefile b/arch/h8300/Makefile index 330e05f28f90..a556447877b4 100644 --- a/arch/h8300/Makefile +++ b/arch/h8300/Makefile | |||
@@ -35,7 +35,7 @@ KBUILD_CFLAGS += -mint32 -fno-builtin | |||
35 | KBUILD_CFLAGS += -g | 35 | KBUILD_CFLAGS += -g |
36 | KBUILD_CFLAGS += -D__linux__ | 36 | KBUILD_CFLAGS += -D__linux__ |
37 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | 37 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" |
38 | AFLAGS += -DPLATFORM=$(PLATFORM) -DMODEL=$(MODEL) $(cflags-y) | 38 | KBUILD_AFLAGS += -DPLATFORM=$(PLATFORM) -DMODEL=$(MODEL) $(cflags-y) |
39 | LDFLAGS += $(ldflags-y) | 39 | LDFLAGS += $(ldflags-y) |
40 | 40 | ||
41 | CROSS_COMPILE = h8300-elf- | 41 | CROSS_COMPILE = h8300-elf- |
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index fc3c8e88b744..f036d2dee3de 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -55,11 +55,11 @@ KBUILD_CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call c | |||
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 | KBUILD_CFLAGS += $(cflags-y) | 64 | KBUILD_CFLAGS += $(cflags-y) |
65 | 65 | ||
@@ -117,7 +117,7 @@ drivers-$(CONFIG_PM) += arch/x86/power/ | |||
117 | drivers-$(CONFIG_FB) += arch/x86/video/ | 117 | drivers-$(CONFIG_FB) += arch/x86/video/ |
118 | 118 | ||
119 | KBUILD_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 | ||
diff --git a/arch/m32r/Makefile b/arch/m32r/Makefile index c80618ab60ea..4072a07ebf8e 100644 --- a/arch/m32r/Makefile +++ b/arch/m32r/Makefile | |||
@@ -25,7 +25,7 @@ cflags-$(CONFIG_ISA_M32R) += -DNO_FPU | |||
25 | aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -O2 -Wa,-no-bitinst | 25 | aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -O2 -Wa,-no-bitinst |
26 | 26 | ||
27 | KBUILD_CFLAGS += $(cflags-y) | 27 | KBUILD_CFLAGS += $(cflags-y) |
28 | AFLAGS += $(aflags-y) | 28 | KBUILD_AFLAGS += $(aflags-y) |
29 | 29 | ||
30 | CHECKFLAGS += -D__m32r__ -D__BIG_ENDIAN__=1 | 30 | CHECKFLAGS += -D__m32r__ -D__BIG_ENDIAN__=1 |
31 | 31 | ||
diff --git a/arch/m68knommu/Makefile b/arch/m68knommu/Makefile index 1c1fbb69ff26..92227aaaa26e 100644 --- a/arch/m68knommu/Makefile +++ b/arch/m68knommu/Makefile | |||
@@ -102,7 +102,7 @@ cflags-$(CONFIG_M68EZ328) := -m68000 | |||
102 | cflags-$(CONFIG_M68VZ328) := -m68000 | 102 | cflags-$(CONFIG_M68VZ328) := -m68000 |
103 | cflags-$(CONFIG_M68360) := -m68332 | 103 | cflags-$(CONFIG_M68360) := -m68332 |
104 | 104 | ||
105 | AFLAGS += $(cflags-y) | 105 | KBUILD_AFLAGS += $(cflags-y) |
106 | 106 | ||
107 | KBUILD_CFLAGS += $(cflags-y) | 107 | KBUILD_CFLAGS += $(cflags-y) |
108 | KBUILD_CFLAGS += -D__linux__ | 108 | KBUILD_CFLAGS += -D__linux__ |
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 64512abef61d..6b663bec4752 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -608,7 +608,7 @@ ifdef CONFIG_64BIT | |||
608 | endif | 608 | endif |
609 | endif | 609 | endif |
610 | 610 | ||
611 | AFLAGS += $(cflags-y) | 611 | KBUILD_AFLAGS += $(cflags-y) |
612 | KBUILD_CFLAGS += $(cflags-y) \ | 612 | KBUILD_CFLAGS += $(cflags-y) \ |
613 | -D"VMLINUX_LOAD_ADDRESS=$(load-y)" | 613 | -D"VMLINUX_LOAD_ADDRESS=$(load-y)" |
614 | 614 | ||
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 51309848c11d..462bb89b67e8 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -76,7 +76,7 @@ AFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) | |||
76 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc | 76 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc |
77 | CFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -ffixed-r2 -mmultiple | 77 | CFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -ffixed-r2 -mmultiple |
78 | CPPFLAGS += $(CPPFLAGS-y) | 78 | CPPFLAGS += $(CPPFLAGS-y) |
79 | AFLAGS += $(AFLAGS-y) | 79 | KBUILD_AFLAGS += $(AFLAGS-y) |
80 | KBUILD_CFLAGS += -msoft-float -pipe $(CFLAGS-y) | 80 | KBUILD_CFLAGS += -msoft-float -pipe $(CFLAGS-y) |
81 | CPP = $(CC) -E $(KBUILD_CFLAGS) | 81 | CPP = $(CC) -E $(KBUILD_CFLAGS) |
82 | 82 | ||
@@ -125,7 +125,7 @@ cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec | |||
125 | cpu-as-$(CONFIG_E500) += -Wa,-me500 | 125 | cpu-as-$(CONFIG_E500) += -Wa,-me500 |
126 | cpu-as-$(CONFIG_E200) += -Wa,-me200 | 126 | cpu-as-$(CONFIG_E200) += -Wa,-me200 |
127 | 127 | ||
128 | AFLAGS += $(cpu-as-y) | 128 | KBUILD_AFLAGS += $(cpu-as-y) |
129 | KBUILD_CFLAGS += $(cpu-as-y) | 129 | KBUILD_CFLAGS += $(cpu-as-y) |
130 | 130 | ||
131 | head-y := arch/powerpc/kernel/head_$(CONFIG_WORD_SIZE).o | 131 | head-y := arch/powerpc/kernel/head_$(CONFIG_WORD_SIZE).o |
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile index 43802e95c892..dd63ccb66732 100644 --- a/arch/ppc/Makefile +++ b/arch/ppc/Makefile | |||
@@ -23,7 +23,7 @@ endif | |||
23 | LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic | 23 | LDFLAGS_vmlinux := -Ttext $(KERNELLOAD) -Bstatic |
24 | # The -Iarch/$(ARCH)/include is temporary while we are merging | 24 | # The -Iarch/$(ARCH)/include is temporary while we are merging |
25 | CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include | 25 | CPPFLAGS += -Iarch/$(ARCH) -Iarch/$(ARCH)/include |
26 | AFLAGS += -Iarch/$(ARCH) | 26 | KBUILD_AFLAGS += -Iarch/$(ARCH) |
27 | KBUILD_CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ | 27 | KBUILD_CFLAGS += -Iarch/$(ARCH) -msoft-float -pipe \ |
28 | -ffixed-r2 -mmultiple | 28 | -ffixed-r2 -mmultiple |
29 | 29 | ||
@@ -45,7 +45,7 @@ cpu-as-$(CONFIG_6xx) += -Wa,-maltivec | |||
45 | cpu-as-$(CONFIG_E500) += -Wa,-me500 | 45 | cpu-as-$(CONFIG_E500) += -Wa,-me500 |
46 | cpu-as-$(CONFIG_E200) += -Wa,-me200 | 46 | cpu-as-$(CONFIG_E200) += -Wa,-me200 |
47 | 47 | ||
48 | AFLAGS += $(cpu-as-y) | 48 | KBUILD_AFLAGS += $(cpu-as-y) |
49 | KBUILD_CFLAGS += $(cpu-as-y) | 49 | KBUILD_CFLAGS += $(cpu-as-y) |
50 | 50 | ||
51 | # Default to the common case. | 51 | # Default to the common case. |
diff --git a/arch/s390/Makefile b/arch/s390/Makefile index 62a0da42c7fd..f708be367b03 100644 --- a/arch/s390/Makefile +++ b/arch/s390/Makefile | |||
@@ -16,7 +16,7 @@ | |||
16 | ifndef CONFIG_64BIT | 16 | ifndef CONFIG_64BIT |
17 | LDFLAGS := -m elf_s390 | 17 | LDFLAGS := -m elf_s390 |
18 | KBUILD_CFLAGS += -m31 | 18 | KBUILD_CFLAGS += -m31 |
19 | AFLAGS += -m31 | 19 | KBUILD_AFLAGS += -m31 |
20 | UTS_MACHINE := s390 | 20 | UTS_MACHINE := s390 |
21 | STACK_SIZE := 8192 | 21 | STACK_SIZE := 8192 |
22 | CHECKFLAGS += -D__s390__ -msize-long | 22 | CHECKFLAGS += -D__s390__ -msize-long |
@@ -24,7 +24,7 @@ else | |||
24 | LDFLAGS := -m elf64_s390 | 24 | LDFLAGS := -m elf64_s390 |
25 | MODFLAGS += -fpic -D__PIC__ | 25 | MODFLAGS += -fpic -D__PIC__ |
26 | KBUILD_CFLAGS += -m64 | 26 | KBUILD_CFLAGS += -m64 |
27 | AFLAGS += -m64 | 27 | KBUILD_AFLAGS += -m64 |
28 | UTS_MACHINE := s390x | 28 | UTS_MACHINE := s390x |
29 | STACK_SIZE := 16384 | 29 | STACK_SIZE := 16384 |
30 | CHECKFLAGS += -D__s390__ -D__s390x__ | 30 | CHECKFLAGS += -D__s390__ -D__s390x__ |
@@ -79,7 +79,7 @@ endif | |||
79 | 79 | ||
80 | KBUILD_CFLAGS += -mbackchain -msoft-float $(cflags-y) | 80 | KBUILD_CFLAGS += -mbackchain -msoft-float $(cflags-y) |
81 | KBUILD_CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compare | 81 | KBUILD_CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compare |
82 | AFLAGS += $(aflags-y) | 82 | KBUILD_AFLAGS += $(aflags-y) |
83 | 83 | ||
84 | OBJCOPYFLAGS := -O binary | 84 | OBJCOPYFLAGS := -O binary |
85 | LDFLAGS_vmlinux := -e start | 85 | LDFLAGS_vmlinux := -e start |
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index cd8a411acc95..0353296c2c93 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -92,7 +92,7 @@ LDFLAGS += -EB | |||
92 | endif | 92 | endif |
93 | 93 | ||
94 | KBUILD_CFLAGS += -pipe $(cflags-y) | 94 | KBUILD_CFLAGS += -pipe $(cflags-y) |
95 | AFLAGS += $(cflags-y) | 95 | KBUILD_AFLAGS += $(cflags-y) |
96 | 96 | ||
97 | head-y := arch/sh/kernel/head.o arch/sh/kernel/init_task.o | 97 | head-y := arch/sh/kernel/head.o arch/sh/kernel/init_task.o |
98 | 98 | ||
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile index 2ce781a7cbf0..fef28e267a52 100644 --- a/arch/sparc/Makefile +++ b/arch/sparc/Makefile | |||
@@ -17,7 +17,7 @@ CHECKFLAGS += -D__sparc__ | |||
17 | 17 | ||
18 | #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7 | 18 | #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7 |
19 | KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 | 19 | KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 |
20 | AFLAGS := $(AFLAGS) -m32 | 20 | KBUILD_AFLAGS += -m32 |
21 | 21 | ||
22 | #LDFLAGS_vmlinux = -N -Ttext 0xf0004000 | 22 | #LDFLAGS_vmlinux = -N -Ttext 0xf0004000 |
23 | # Since 2.5.40, the first stage is left not btfix-ed. | 23 | # Since 2.5.40, the first stage is left not btfix-ed. |
diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile index b083dc458ce9..6c92a42efe76 100644 --- a/arch/sparc64/Makefile +++ b/arch/sparc64/Makefile | |||
@@ -45,7 +45,7 @@ else | |||
45 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ | 45 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ |
46 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ | 46 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ |
47 | $(CC_UNDECL) | 47 | $(CC_UNDECL) |
48 | AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL) | 48 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL) |
49 | endif | 49 | endif |
50 | 50 | ||
51 | ifeq ($(CONFIG_MCOUNT),y) | 51 | ifeq ($(CONFIG_MCOUNT),y) |
diff --git a/arch/um/Makefile b/arch/um/Makefile index 18123bf7b649..d08d3bc518e3 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -62,7 +62,7 @@ KBUILD_CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ | |||
62 | $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap \ | 62 | $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap \ |
63 | -Din6addr_loopback=kernel_in6addr_loopback | 63 | -Din6addr_loopback=kernel_in6addr_loopback |
64 | 64 | ||
65 | AFLAGS += $(ARCH_INCLUDE) | 65 | KBUILD_AFLAGS += $(ARCH_INCLUDE) |
66 | 66 | ||
67 | USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ | 67 | USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ |
68 | $(patsubst -I%,,$(KBUILD_CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \ | 68 | $(patsubst -I%,,$(KBUILD_CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \ |
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index 26bc786fc614..d10e4dc0dae8 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 | |||
@@ -16,7 +16,7 @@ OBJCOPYFLAGS := -O binary -R .note -R .comment -S | |||
16 | ifeq ("$(origin SUBARCH)", "command line") | 16 | ifeq ("$(origin SUBARCH)", "command line") |
17 | ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)") | 17 | ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)") |
18 | KBUILD_CFLAGS += $(call cc-option,-m32) | 18 | KBUILD_CFLAGS += $(call cc-option,-m32) |
19 | AFLAGS += $(call cc-option,-m32) | 19 | KBUILD_AFLAGS += $(call cc-option,-m32) |
20 | LINK-y += $(call cc-option,-m32) | 20 | LINK-y += $(call cc-option,-m32) |
21 | UML_OBJCOPYFLAGS += -F $(ELF_FORMAT) | 21 | UML_OBJCOPYFLAGS += -F $(ELF_FORMAT) |
22 | 22 | ||
diff --git a/arch/um/Makefile-x86_64 b/arch/um/Makefile-x86_64 index 36d2bb5e4192..8836f0df36aa 100644 --- a/arch/um/Makefile-x86_64 +++ b/arch/um/Makefile-x86_64 | |||
@@ -12,7 +12,7 @@ ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__ | |||
12 | KBUILD_CFLAGS += $(_extra_flags_) | 12 | KBUILD_CFLAGS += $(_extra_flags_) |
13 | 13 | ||
14 | CHECKFLAGS += -m64 | 14 | CHECKFLAGS += -m64 |
15 | AFLAGS += -m64 | 15 | KBUILD_AFLAGS += -m64 |
16 | LDFLAGS += -m elf_x86_64 | 16 | LDFLAGS += -m elf_x86_64 |
17 | CPPFLAGS += -m64 | 17 | CPPFLAGS += -m64 |
18 | 18 | ||
diff --git a/arch/um/sys-ppc/Makefile b/arch/um/sys-ppc/Makefile index af200268fddb..a9814a7ae60e 100644 --- a/arch/um/sys-ppc/Makefile +++ b/arch/um/sys-ppc/Makefile | |||
@@ -1,7 +1,7 @@ | |||
1 | OBJ = built-in.o | 1 | OBJ = built-in.o |
2 | 2 | ||
3 | .S.o: | 3 | .S.o: |
4 | $(CC) $(AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o | 4 | $(CC) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o |
5 | 5 | ||
6 | OBJS = ptrace.o sigcontext.o semaphore.o checksum.o miscthings.o misc.o \ | 6 | OBJS = ptrace.o sigcontext.o semaphore.o checksum.o miscthings.o misc.o \ |
7 | ptrace_user.o sysrq.o | 7 | ptrace_user.o sysrq.o |
@@ -57,13 +57,13 @@ ppc_defs.h: mk_defs.c ppc_defs.head \ | |||
57 | checksum.o: checksum.S | 57 | checksum.o: checksum.S |
58 | rm -f asm | 58 | rm -f asm |
59 | ln -s $(TOPDIR)/include/asm-ppc asm | 59 | ln -s $(TOPDIR)/include/asm-ppc asm |
60 | $(CC) $(EXTRA_AFLAGS) $(AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o | 60 | $(CC) $(EXTRA_AFLAGS) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o |
61 | rm -f asm | 61 | rm -f asm |
62 | 62 | ||
63 | misc.o: misc.S ppc_defs.h | 63 | misc.o: misc.S ppc_defs.h |
64 | rm -f asm | 64 | rm -f asm |
65 | ln -s $(TOPDIR)/include/asm-ppc asm | 65 | ln -s $(TOPDIR)/include/asm-ppc asm |
66 | $(CC) $(EXTRA_AFLAGS) $(AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o | 66 | $(CC) $(EXTRA_AFLAGS) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o |
67 | rm -f asm | 67 | rm -f asm |
68 | 68 | ||
69 | clean-files := $(OBJS) ppc_defs.h checksum.S semaphore.c mk_defs.c | 69 | clean-files := $(OBJS) ppc_defs.h checksum.S semaphore.c mk_defs.c |
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index 646292aaf1fc..d6ed8e5e1ccc 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile | |||
@@ -61,7 +61,7 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ | |||
61 | $(call cc-option, -fno-unit-at-a-time)) \ | 61 | $(call cc-option, -fno-unit-at-a-time)) \ |
62 | $(call cc-option, -fno-stack-protector) \ | 62 | $(call cc-option, -fno-stack-protector) \ |
63 | $(call cc-option, -mpreferred-stack-boundary=2) | 63 | $(call cc-option, -mpreferred-stack-boundary=2) |
64 | AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ | 64 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ |
65 | 65 | ||
66 | $(obj)/zImage: IMAGE_OFFSET := 0x1000 | 66 | $(obj)/zImage: IMAGE_OFFSET := 0x1000 |
67 | $(obj)/zImage: EXTRA_AFLAGS := $(SVGA_MODE) $(RAMDISK) | 67 | $(obj)/zImage: EXTRA_AFLAGS := $(SVGA_MODE) $(RAMDISK) |
diff --git a/arch/x86/boot/compressed/Makefile_64 b/arch/x86/boot/compressed/Makefile_64 index 3013ad01fe69..7801e8dd90b2 100644 --- a/arch/x86/boot/compressed/Makefile_64 +++ b/arch/x86/boot/compressed/Makefile_64 | |||
@@ -10,7 +10,7 @@ KBUILD_CFLAGS := -m64 -D__KERNEL__ $(LINUXINCLUDE) -O2 \ | |||
10 | -fno-strict-aliasing -fPIC -mcmodel=small \ | 10 | -fno-strict-aliasing -fPIC -mcmodel=small \ |
11 | $(call cc-option, -ffreestanding) \ | 11 | $(call cc-option, -ffreestanding) \ |
12 | $(call cc-option, -fno-stack-protector) | 12 | $(call cc-option, -fno-stack-protector) |
13 | AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ | 13 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ |
14 | LDFLAGS := -m elf_x86_64 | 14 | LDFLAGS := -m elf_x86_64 |
15 | 15 | ||
16 | LDFLAGS_vmlinux := -T | 16 | LDFLAGS_vmlinux := -T |
diff --git a/arch/x86_64/Makefile b/arch/x86_64/Makefile index 3fc33004e8c6..9daa32d1d2a1 100644 --- a/arch/x86_64/Makefile +++ b/arch/x86_64/Makefile | |||
@@ -61,18 +61,18 @@ cflags-y += -maccumulate-outgoing-args | |||
61 | 61 | ||
62 | # do binutils support CFI? | 62 | # do binutils support CFI? |
63 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_rel_offset rsp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) | 63 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_rel_offset rsp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) |
64 | AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_rel_offset rsp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) | 64 | KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_rel_offset rsp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,) |
65 | 65 | ||
66 | # is .cfi_signal_frame supported too? | 66 | # is .cfi_signal_frame supported too? |
67 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) | 67 | cflags-y += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) |
68 | AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) | 68 | KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,) |
69 | 69 | ||
70 | cflags-$(CONFIG_CC_STACKPROTECTOR) += $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-x86_64-has-stack-protector.sh "$(CC)" -fstack-protector ) | 70 | cflags-$(CONFIG_CC_STACKPROTECTOR) += $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-x86_64-has-stack-protector.sh "$(CC)" -fstack-protector ) |
71 | cflags-$(CONFIG_CC_STACKPROTECTOR_ALL) += $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-x86_64-has-stack-protector.sh "$(CC)" -fstack-protector-all ) | 71 | cflags-$(CONFIG_CC_STACKPROTECTOR_ALL) += $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-x86_64-has-stack-protector.sh "$(CC)" -fstack-protector-all ) |
72 | 72 | ||
73 | KBUILD_CFLAGS += $(cflags-y) | 73 | KBUILD_CFLAGS += $(cflags-y) |
74 | CFLAGS_KERNEL += $(cflags-kernel-y) | 74 | CFLAGS_KERNEL += $(cflags-kernel-y) |
75 | AFLAGS += -m64 | 75 | KBUILD_AFLAGS += -m64 |
76 | 76 | ||
77 | head-y := arch/x86/kernel/head_64.o arch/x86/kernel/head64.o arch/x86/kernel/init_task_64.o | 77 | head-y := arch/x86/kernel/head_64.o arch/x86/kernel/head64.o arch/x86/kernel/init_task_64.o |
78 | 78 | ||
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index b1a7c7d42e15..de7bb284c611 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -81,7 +81,7 @@ as-option = $(call try-run,\ | |||
81 | # Usage: cflags-y += $(call as-instr,instr,option1,option2) | 81 | # Usage: cflags-y += $(call as-instr,instr,option1,option2) |
82 | 82 | ||
83 | as-instr = $(call try-run,\ | 83 | as-instr = $(call try-run,\ |
84 | echo -e "$(1)" | $(CC) $(AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) | 84 | echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3)) |
85 | 85 | ||
86 | # cc-option | 86 | # cc-option |
87 | # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) | 87 | # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 51ae412929a0..2837adaa9850 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -85,7 +85,7 @@ modname_flags = $(if $(filter 1,$(words $(modname))),\ | |||
85 | -D"KBUILD_MODNAME=KBUILD_STR($(call name-fix,$(modname)))") | 85 | -D"KBUILD_MODNAME=KBUILD_STR($(call name-fix,$(modname)))") |
86 | 86 | ||
87 | _c_flags = $(KBUILD_CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(basetarget).o) | 87 | _c_flags = $(KBUILD_CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(basetarget).o) |
88 | _a_flags = $(AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) | 88 | _a_flags = $(KBUILD_AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) |
89 | _cpp_flags = $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS_$(@F)) | 89 | _cpp_flags = $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS_$(@F)) |
90 | 90 | ||
91 | # If building the kernel in a separate objtree expand all occurrences | 91 | # If building the kernel in a separate objtree expand all occurrences |