Commit:     52bcc3308ae3344266f55bf98a22c1ac0201eda7
Parent:     222d394d30e74bb7a2a65029fcea68107b0d0eb6
Author:     Sam Ravnborg <[EMAIL PROTECTED](none)>
AuthorDate: Mon Oct 15 22:03:58 2007 +0200
Committer:  Sam Ravnborg <[EMAIL PROTECTED](none)>
CommitDate: Mon Oct 15 22:03:58 2007 +0200

    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 <[EMAIL PROTECTED]>
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 8d3f664..ad0add0 100644
--- a/Makefile
+++ b/Makefile
@@ -523,6 +523,10 @@ KBUILD_CFLAGS += $(call 
 # disable pointer signed / unsigned warnings in gcc 4.0
 KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
+# Add user supplied AFLAGS and CFLAGS as the last assignments
 # Use --build-id when available.
 LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
                              $(call ld-option, -Wl$(comma)--build-id,))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to