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: |
Zvikomborero VIncent Zvikaramba | f228ab5 | 2016-08-14 13:40:31 -0400 | [diff] [blame] | 11 | $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(WLAN_ROOT) modules_install |
Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 12 | |
| 13 | clean:: |
Zvikomborero VIncent Zvikaramba | e91e91c | 2016-08-12 05:45:24 -0400 | [diff] [blame] | 14 | find -type f -iname '*.o' | xargs rm || true |
| 15 | find -type f -iname '*.ko' | xargs rm || true |
| 16 | find -type f -iname '*.mod.o' | xargs rm || true |
| 17 | find -type f -iname '*.mod.c' | xargs rm || true |
| 18 | find -type f -iname '*.cmd' | xargs rm || true |
| 19 | find -type f -iname '*.o.cmd' | xargs rm || true |
| 20 | rm -f *.o *.ko *.mod.c *.mod.o *~ .*.cmd Module.symvers || true |
Zvikomborero VIncent Zvikaramba | b726168 | 2016-08-03 01:27:15 -0400 | [diff] [blame] | 21 | rm -rf .tmp_versions |
| 22 | |
| 23 | |