X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=Makefile;h=c3a727126d26723a66f6db7e078c278c692987fe;hb=83cfd4935124b165e942c317dc3e9ebb0a3e6a63;hp=34d6176dfcba97500007528712bc604981d5e056;hpb=9d8d5a284e11e45953ad1f12a5bf1ebc18eefb75;p=linux-2.6-omap-h63xx.git diff --git a/Makefile b/Makefile index 34d6176dfcb..c3a727126d2 100644 --- a/Makefile +++ b/Makefile @@ -263,6 +263,13 @@ export quiet Q KBUILD_VERBOSE # cc support functions to be used (only) in arch/$(ARCH)/Makefile # See documentation in Documentation/kbuild/makefiles.txt +# as-option +# Usage: cflags-y += $(call as-option, -Wa$(comma)-isa=foo,) + +as-option = $(shell if $(CC) $(CFLAGS) $(1) -Wa,-Z -c -o /dev/null \ + -xassembler /dev/null > /dev/null 2>&1; then echo "$(1)"; \ + else echo "$(2)"; fi ;) + # cc-option # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586)