Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f61834de66501547abc1b431f37d4fd4f79081e6 1 parent d08fb87
@markh794 authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 Makefile
View
7 Makefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.