Greg Kroah-Hartman | de536e3 | 2014-08-31 16:17:04 -0700 | [diff] [blame^] | 1 | greybus-y := core.o \ |
| 2 | gbuf.o \ |
| 3 | debugfs.o \ |
| 4 | ap.o \ |
| 5 | i2c-gb.o \ |
| 6 | gpio-gb.o \ |
| 7 | sdio-gb.o \ |
| 8 | uart-gb.o |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 9 | |
| 10 | obj-m += greybus.o |
Greg Kroah-Hartman | ba4468d4 | 2014-08-30 17:06:54 -0700 | [diff] [blame] | 11 | obj-m += es1-ap-usb.o |
Greg Kroah-Hartman | c8a797a | 2014-08-11 15:30:45 +0800 | [diff] [blame] | 12 | |
| 13 | KERNELVER ?= $(shell uname -r) |
| 14 | KERNELDIR ?= /lib/modules/$(KERNELVER)/build |
| 15 | PWD := $(shell pwd) |
| 16 | |
| 17 | all: module |
| 18 | |
| 19 | module: |
| 20 | $(MAKE) -C $(KERNELDIR) M=$(PWD) |
| 21 | |
| 22 | clean: |
| 23 | rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c |
| 24 | rm -f Module.markers Module.symvers modules.order |
| 25 | rm -rf .tmp_versions Modules.symvers |
| 26 | |
| 27 | coccicheck: |
| 28 | $(MAKE) -C $(KERNELDIR) M=$(PWD) coccicheck |
| 29 | |