]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
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 114089ada9f7aafeed139ce02d70888dd4f93b76..0550e219af3dc02994fe9540e91e79b6b5986832 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