diff options
Diffstat (limited to 'scripts/Kbuild.include')
| -rw-r--r-- | scripts/Kbuild.include | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 677bc6c175cb..b1a7c7d42e15 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -75,7 +75,7 @@ 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) |
| @@ -87,12 +87,12 @@ as-instr = $(call try-run,\ | |||
| 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 |
