aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg2007-10-15 15:03:58 -0500
committerSam Ravnborg2007-10-15 15:03:58 -0500
commit52bcc3308ae3344266f55bf98a22c1ac0201eda7 (patch)
tree78f1f35060575c8b3f0659220728196fb80b4722 /Makefile
parent222d394d30e74bb7a2a65029fcea68107b0d0eb6 (diff)
downloadkernel-audio-52bcc3308ae3344266f55bf98a22c1ac0201eda7.tar.gz
kernel-audio-52bcc3308ae3344266f55bf98a22c1ac0201eda7.tar.xz
kernel-audio-52bcc3308ae3344266f55bf98a22c1ac0201eda7.zip
kbuild: enable use of AFLAGS and CFLAGS on commandline
The previous patches was preparation. With this patch we can now say: make CFLAGS=-Os vmlinux And the option specified will be appended to the options passed to gcc for C files. For assembler use: make AFLAGS=-foo vmlinux for the same functionality. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8d3f66441861..ad0add0fa7d4 100644
--- a/Makefile
+++ b/Makefile
@@ -523,6 +523,10 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
523# disable pointer signed / unsigned warnings in gcc 4.0 523# disable pointer signed / unsigned warnings in gcc 4.0
524KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) 524KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
525 525
526# Add user supplied AFLAGS and CFLAGS as the last assignments
527KBUILD_AFLAGS += $(AFLAGS)
528KBUILD_CFLAGS += $(CFLAGS)
529
526# Use --build-id when available. 530# Use --build-id when available.
527LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ 531LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
528 $(call ld-option, -Wl$(comma)--build-id,)) 532 $(call ld-option, -Wl$(comma)--build-id,))