aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 34d6176dfcba..c3a727126d26 100644
--- a/Makefile
+++ b/Makefile
@@ -263,6 +263,13 @@ export quiet Q KBUILD_VERBOSE
263# cc support functions to be used (only) in arch/$(ARCH)/Makefile 263# cc support functions to be used (only) in arch/$(ARCH)/Makefile
264# See documentation in Documentation/kbuild/makefiles.txt 264# See documentation in Documentation/kbuild/makefiles.txt
265 265
266# as-option
267# Usage: cflags-y += $(call as-option, -Wa$(comma)-isa=foo,)
268
269as-option = $(shell if $(CC) $(CFLAGS) $(1) -Wa,-Z -c -o /dev/null \
270 -xassembler /dev/null > /dev/null 2>&1; then echo "$(1)"; \
271 else echo "$(2)"; fi ;)
272
266# cc-option 273# cc-option
267# Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) 274# Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586)
268 275