Skip to content

Commit

Permalink
[PATCH] kbuild: CF=<arguments> passes arguments to sparse
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
[email protected] authored and Sam Ravnborg committed Sep 10, 2005
1 parent 6d12884 commit 7b49bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b49bb9

Please sign in to comment.