summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>2005-09-09 21:14:35 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2005-09-10 14:15:37 +0200
commit7b49bb9aff8b14d15da58111d8908c877c0a525e (patch)
treec5c578473fdf7fa2469fb11d8fd0e850176f1873 /Makefile
parent6d12884259ac65f74538b7819f5fadf4ebb0d569 (diff)
downloadop-kernel-dev-7b49bb9aff8b14d15da58111d8908c877c0a525e.zip
op-kernel-dev-7b49bb9aff8b14d15da58111d8908c877c0a525e.tar.gz
[PATCH] kbuild: CF=<arguments> passes arguments to sparse
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0d0576a..6a40588 100644
--- 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)
OpenPOWER on IntegriCloud