blob: 6062e0b7465115fdd57fc6e1cb0936e87975756a [file] [log] [blame]
Zvikomborero VIncent Zvikarambab7261682016-08-03 01:27:15 -04001default: all
2
Zvikomborero VIncent Zvikaramba7c436f92016-08-03 21:47:30 -04003KBUILD_OPTIONS := WLAN_ROOT=$(WLAN_ROOT)
Zvikomborero VIncent Zvikarambab7261682016-08-03 01:27:15 -04004KBUILD_OPTIONS += MODNAME=wlan
Zvikomborero VIncent Zvikarambab7261682016-08-03 01:27:15 -04005
6all::
7 $(MAKE) -C $(KERNEL_SOURCE) $(KBUILD_OPTIONS) $(EXTRA_CFLAGS) ARCH=$(ARCH) \
Zvikomborero VIncent Zvikaramba7c436f92016-08-03 21:47:30 -04008 SUBDIRS=$(CURDIR) CROSS_COMPILE=$(CROSS_COMPILE) modules
Zvikomborero VIncent Zvikarambab7261682016-08-03 01:27:15 -04009
10modules_install:
11 $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install
12
13clean::
Zvikomborero VIncent Zvikarambae91e91c2016-08-12 05:45:24 -040014 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 Zvikarambab7261682016-08-03 01:27:15 -040021 rm -rf .tmp_versions
22
23