greybus: Makefile: add 'check' option to run sparse with endian checks enabled
authorGreg Kroah-Hartman <greg@kroah.com>
Sat, 13 Sep 2014 19:39:23 +0000 (12:39 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 13 Sep 2014 19:39:23 +0000 (12:39 -0700)
drivers/staging/greybus/Makefile

index 114089a..0550e21 100644 (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