]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/Kbuild.include
ieee1394: nodemgr: spaces to tabs
[linux-2.6-omap-h63xx.git] / scripts / Kbuild.include
index 3d523899fdc05dc56e5a2eb6c18e88b26390d102..4f5ff19b992b1f8a8db6f28a96cbace409db3baa 100644 (file)
@@ -63,6 +63,13 @@ 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 ;)
 
+# as-instr
+# Usage: cflags-y += $(call as-instr, instr, option1, option2)
+
+as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o astest$$$$.out ; \
+                  then echo "$(2)"; else echo "$(3)"; fi; \
+                  rm -f astest$$$$.out)
+
 # cc-option
 # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586)