From: viro@ZenIV.linux.org.uk Date: Fri, 9 Sep 2005 20:14:35 +0000 (+0100) Subject: [PATCH] kbuild: CF= passes arguments to sparse X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7b49bb9aff8b14d15da58111d8908c877c0a525e;p=openwrt%2Fstaging%2Fblogic.git [PATCH] kbuild: CF= passes arguments to sparse Allows to add to sparse arguments without mutilating makefiles - just pass CF= and they will be added to CHECKFLAGS. Signed-off-by: Al Viro Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index 0d0576a622bf..6a405882b1f7 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)