Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 1 | default: all |
| 2 | |
Zvikomborero VIncent Zvikaramba | 7c436f9 | 2016-08-03 21:47:30 -0400 | [diff] [blame] | 3 | KBUILD_OPTIONS := WLAN_ROOT=$(WLAN_ROOT) |
Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 4 | KBUILD_OPTIONS += MODNAME=wlan |
Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 5 | |
| 6 | all:: |
| 7 | $(MAKE) -C $(KERNEL_SOURCE) $(KBUILD_OPTIONS) $(EXTRA_CFLAGS) ARCH=$(ARCH) \ |
Zvikomborero VIncent Zvikaramba | 7c436f9 | 2016-08-03 21:47:30 -0400 | [diff] [blame] | 8 | SUBDIRS=$(CURDIR) CROSS_COMPILE=$(CROSS_COMPILE) modules |
Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 9 | |
| 10 | modules_install: |
| 11 | $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install |
| 12 | |
| 13 | clean:: |
Zvikomborero VIncent Zvikaramba | ba728d0 | 2016-08-10 13:08:53 -0400 | [diff] [blame] | 14 | find -type f -iname '*.o' | xargs rm |
| 15 | find -type f -iname '*.ko' | xargs rm |
| 16 | find -type f -iname '*.mod.o' | xargs rm |
| 17 | find -type f -iname '*.mod.c' | xargs rm |
| 18 | find -type f -iname '*.cmd' | xargs rm |
Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 19 | rm -f *.o *.ko *.mod.c *.mod.o *~ .*.cmd Module.symvers |
| 20 | rm -rf .tmp_versions |
| 21 | |
| 22 | |