From aedc25b063b8125e84805781f8d368d8fd78f9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Tue, 24 Feb 2015 12:14:15 +0100 Subject: sparse: add make variable C to run sparse when compiling skiboot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As this is done on the Linux kernel, one can now run sparse using C=1 on the command line. The variable CF can be used to tune the sparse options. Signed-off-by: Cédric Le Goater Signed-off-by: Stewart Smith --- Makefile.main | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile.main') diff --git a/Makefile.main b/Makefile.main index 665baf4..cf41a22 100644 --- a/Makefile.main +++ b/Makefile.main @@ -87,6 +87,9 @@ ifneq ($(KERNEL),) CPPFLAGS += -DBUILTIN_KERNEL="\"$(KERNEL)\"" endif +CHECK = sparse +CHECKFLAGS := $(CF) + .SECONDARY: vpath %.c $(SRC) -- cgit v1.1