kbuild: enable 'make AFLAGS=...' to add additional options to AS
[deliverable/linux.git] / scripts / Kbuild.include
index b1a7c7d42e15facc076559913a7c9ce00de37ef9..de7bb284c6116d8ea3997ae224a25e3081aaf619 100644 (file)
@@ -81,7 +81,7 @@ as-option = $(call try-run,\
 # Usage: cflags-y += $(call as-instr,instr,option1,option2)
 
 as-instr = $(call try-run,\
-       echo -e "$(1)" | $(CC) $(AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3))
+       echo -e "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" -,$(2),$(3))
 
 # cc-option
 # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
This page took 0.028599 seconds and 5 git commands to generate.