Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 1 | greybus-y := core.o \ |
| 2 | gbuf.o \ |
Greg Kroah-Hartman | 06340ef | 2014-09-01 19:05:54 -0700 | [diff] [blame] | 3 | sysfs.o \ |
Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 4 | debugfs.o \ |
| 5 | ap.o \ |
Alex Elder | b09c94a | 2014-10-01 21:54:16 -0500 | [diff] [blame^] | 6 | manifest.o \ |
Alex Elder | e1e9dbd | 2014-10-01 21:54:11 -0500 | [diff] [blame] | 7 | module.o \ |
Alex Elder | 8c12cde | 2014-10-01 21:54:12 -0500 | [diff] [blame] | 8 | interface.o \ |
Alex Elder | ef0d2ba | 2014-10-01 21:54:13 -0500 | [diff] [blame] | 9 | function.o \ |
Alex Elder | c68adb2 | 2014-10-01 21:54:14 -0500 | [diff] [blame] | 10 | connection.o \ |
Alex Elder | e88afa5 | 2014-10-01 21:54:15 -0500 | [diff] [blame] | 11 | operation.o \ |
Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame] | 12 | i2c-gb.o \ |
| 13 | gpio-gb.o \ |
| 14 | sdio-gb.o \ |
Greg Kroah-Hartman | 33ea3a3 | 2014-09-07 15:39:34 -0700 | [diff] [blame] | 15 | uart-gb.o \ |
| 16 | battery-gb.o |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 17 | |
| 18 | obj-m += greybus.o |
Greg Kroah-Hartman | ba4468d4 | 2014-08-30 17:06:54 -0700 | [diff] [blame] | 19 | obj-m += es1-ap-usb.o |
Greg Kroah-Hartman | 13c8d9c | 2014-09-14 12:27:19 -0700 | [diff] [blame] | 20 | obj-m += test_sink.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 | |
| 26 | all: module |
| 27 | |
| 28 | module: |
| 29 | $(MAKE) -C $(KERNELDIR) M=$(PWD) |
| 30 | |
Greg Kroah-Hartman | ac7171e | 2014-09-13 12:39:23 -0700 | [diff] [blame] | 31 | check: |
| 32 | $(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__" |
| 33 | |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 34 | clean: |
| 35 | rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c |
| 36 | rm -f Module.markers Module.symvers modules.order |
| 37 | rm -rf .tmp_versions Modules.symvers |
| 38 | |
| 39 | coccicheck: |
| 40 | $(MAKE) -C $(KERNELDIR) M=$(PWD) coccicheck |
| 41 | |