greybus: Makefile: add 'check' option to run sparse with endian checks enabled

This commit is contained in:
Greg Kroah-Hartman
2014-09-13 12:39:23 -07:00
parent b57b06241b
commit ac7171ea26

View File

@@ -21,6 +21,9 @@ all: module
module:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
check:
$(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__"
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order