Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build |
| 2 | |
| 3 | KBUILD_OPTIONS := WLAN_ROOT=$(PWD) |
Mahesh Kumar Kalikot Veetil | 2935d25 | 2016-05-06 10:05:05 -0700 | [diff] [blame] | 4 | KBUILD_OPTIONS += MODNAME?=wlan |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 5 | |
| 6 | #By default build for CLD |
| 7 | WLAN_SELECT := CONFIG_QCA_CLD_WLAN=m |
| 8 | KBUILD_OPTIONS += CONFIG_QCA_WIFI_ISOC=0 |
| 9 | KBUILD_OPTIONS += CONFIG_QCA_WIFI_2_0=1 |
| 10 | KBUILD_OPTIONS += $(WLAN_SELECT) |
| 11 | KBUILD_OPTIONS += $(KBUILD_EXTRA) # Extra config if any |
| 12 | |
| 13 | all: |
| 14 | $(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS) |
| 15 | |
| 16 | modules_install: |
| 17 | $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install |
| 18 | |
| 19 | clean: |
| 20 | $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean |