diff options
Diffstat (limited to 'scripts/Kbuild.include')
-rw-r--r-- | scripts/Kbuild.include | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 677bc6c175cb..de7bb284c611 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -75,24 +75,24 @@ try-run = $(shell set -e; \ | |||
75 | # Usage: cflags-y += $(call as-option,-Wa$(comma)-isa=foo,) | 75 | # Usage: cflags-y += $(call as-option,-Wa$(comma)-isa=foo,) |
76 | 76 | ||
77 | as-option = $(call try-run,\ | 77 | as-option = $(call try-run,\ |
78 | $(CC) $(CFLAGS) $(1) -c -xassembler /dev/null -o "$$TMP",$(1),$(2)) | 78 | $(CC) $(KBUILD_CFLAGS) $(1) -c -xassembler /dev/null -o "$$TMP",$(1),$(2)) |
79 | 79 | ||
80 | # as-instr | 80 | # as-instr |
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) |
88 | 88 | ||
89 | cc-option = $(call try-run,\ | 89 | cc-option = $(call try-run,\ |
90 | $(CC) $(CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",$(1),$(2)) | 90 | $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",$(1),$(2)) |
91 | 91 | ||
92 | # cc-option-yn | 92 | # cc-option-yn |
93 | # Usage: flag := $(call cc-option-yn,-march=winchip-c6) | 93 | # Usage: flag := $(call cc-option-yn,-march=winchip-c6) |
94 | cc-option-yn = $(call try-run,\ | 94 | cc-option-yn = $(call try-run,\ |
95 | $(CC) $(CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n) | 95 | $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n) |
96 | 96 | ||
97 | # cc-option-align | 97 | # cc-option-align |
98 | # Prefix align with either -falign or -malign | 98 | # Prefix align with either -falign or -malign |