Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 1 | greybus-y := core.o \ |
Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 2 | debugfs.o \ |
| 3 | ap.o \ |
Alex Elder | b09c94a | 2014-10-01 21:54:16 -0500 | [diff] [blame] | 4 | manifest.o \ |
Greg Kroah-Hartman | a93938a | 2014-12-19 14:56:30 -0800 | [diff] [blame^] | 5 | interface.o \ |
Greg Kroah-Hartman | 3bdec69 | 2014-12-12 17:10:16 -0500 | [diff] [blame] | 6 | bundle.o \ |
Alex Elder | c68adb2 | 2014-10-01 21:54:14 -0500 | [diff] [blame] | 7 | connection.o \ |
Alex Elder | 4ccb6b7 | 2014-10-28 19:36:00 -0500 | [diff] [blame] | 8 | protocol.o \ |
Alex Elder | e88afa5 | 2014-10-01 21:54:15 -0500 | [diff] [blame] | 9 | operation.o \ |
Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 10 | i2c-gb.o \ |
| 11 | gpio-gb.o \ |
Matt Porter | 34c6507 | 2014-11-13 09:14:13 -0500 | [diff] [blame] | 12 | pwm-gb.o \ |
Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 13 | sdio-gb.o \ |
Greg Kroah-Hartman | 33ea3a3 | 2014-09-07 15:39:34 -0700 | [diff] [blame] | 14 | uart-gb.o \ |
Greg Kroah-Hartman | ac4029f | 2014-11-17 16:03:34 -0800 | [diff] [blame] | 15 | battery-gb.o \ |
Greg Kroah-Hartman | 615772a | 2014-11-25 16:59:21 -0800 | [diff] [blame] | 16 | vibrator-gb.o \ |
| 17 | usb-gb.o |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 18 | |
| 19 | obj-m += greybus.o |
Greg Kroah-Hartman | ba4468d4 | 2014-08-30 17:06:54 -0700 | [diff] [blame] | 20 | obj-m += es1-ap-usb.o |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 21 | |
| 22 | KERNELVER ?= $(shell uname -r) |
| 23 | KERNELDIR ?= /lib/modules/$(KERNELVER)/build |
| 24 | PWD := $(shell pwd) |
| 25 | |
Greg Kroah-Hartman | 7486dfd | 2014-11-19 19:09:53 -0800 | [diff] [blame] | 26 | # add -Wall to try to catch everything we can. |
| 27 | ccFlags-y := -Wall |
| 28 | |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 29 | all: module |
| 30 | |
| 31 | module: |
| 32 | $(MAKE) -C $(KERNELDIR) M=$(PWD) |
| 33 | |
Greg Kroah-Hartman | ac7171e | 2014-09-13 12:39:23 -0700 | [diff] [blame] | 34 | check: |
| 35 | $(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__" |
| 36 | |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 37 | clean: |
| 38 | rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c |
| 39 | rm -f Module.markers Module.symvers modules.order |
| 40 | rm -rf .tmp_versions Modules.symvers |
| 41 | |
| 42 | coccicheck: |
| 43 | $(MAKE) -C $(KERNELDIR) M=$(PWD) coccicheck |
| 44 | |