Permalink
Browse files

Add sparse support

This was stolen from stgt, which stole if from another project.

Need to install 'sparse' : https://sparse.wiki.kernel.org/index.php/Main_Page

To use : 'make check'

Signed-off-by: Mark Harvey <markh794@gmail.com>
  • Loading branch information...
1 parent d08fb87 commit f61834de66501547abc1b431f37d4fd4f79081e6 @markh794 committed Apr 28, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 Makefile
View
@@ -23,6 +23,8 @@ SUSER ?=root
GROUP = vtl
MHVTL_HOME_PATH ?= /opt/mhvtl
MHVTL_CONFIG_PATH ?= /etc/mhvtl
+CHECK_CC = cgcc
+CHECK_CC_FLAGS = '$(CHECK_CC) -Wbitwise -Wno-return-void -no-compile $(ARCH)'
export PREFIX DESTDIR
@@ -43,6 +45,11 @@ usr: patch
kernel: patch
$(MAKE) -C kernel
+.PHONY:check
+check: ARCH=$(shell sh script/checkarch.sh)
+check:
+ CC=$(CHECK_CC_FLAGS) $(MAKE) all
+
tags:
$(MAKE) -C usr tags
$(MAKE) -C kernel tags

0 comments on commit f61834d

Please sign in to comment.