]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] kbuild: CF=<arguments> passes arguments to sparse
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
Fri, 9 Sep 2005 20:14:35 +0000 (21:14 +0100)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sat, 10 Sep 2005 12:15:37 +0000 (14:15 +0200)
Allows to add to sparse arguments without mutilating makefiles - just
pass CF=<arguments> and they will be added to CHECKFLAGS.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 0d0576a622bfd770c259e38b3f3a8a2c2d7f4883..6a405882b1f7e88e145a3de3e55e2e819143acaa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -334,7 +334,7 @@ KALLSYMS    = scripts/kallsyms
 PERL           = perl
 CHECK          = sparse
 
-CHECKFLAGS     := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__
+CHECKFLAGS     := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ $(CF)
 MODFLAGS       = -DMODULE
 CFLAGS_MODULE   = $(MODFLAGS)
 AFLAGS_MODULE   = $(MODFLAGS)