blob: 0e11ae6e7ae78707c490cb5ffbe20587d639d2cf [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
2
3KBUILD_OPTIONS := WLAN_ROOT=$(PWD)
Mahesh Kumar Kalikot Veetil2935d252016-05-06 10:05:05 -07004KBUILD_OPTIONS += MODNAME?=wlan
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08005
6#By default build for CLD
7WLAN_SELECT := CONFIG_QCA_CLD_WLAN=m
8KBUILD_OPTIONS += CONFIG_QCA_WIFI_ISOC=0
9KBUILD_OPTIONS += CONFIG_QCA_WIFI_2_0=1
10KBUILD_OPTIONS += $(WLAN_SELECT)
11KBUILD_OPTIONS += $(KBUILD_EXTRA) # Extra config if any
12
13all:
14 $(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS)
15
16modules_install:
17 $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install
18
19clean:
20 $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean