|
@@ -11,6 +11,7 @@ KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
|
|
|
# module source directory.
|
|
|
M ?= $(shell pwd)
|
|
|
|
|
|
+ifeq ($(WLAN_ROOT),)
|
|
|
# WLAN_ROOT must contain an absolute path (i.e. not a relative path)
|
|
|
KBUILD_OPTIONS := WLAN_ROOT=$(shell cd $(KERNEL_SRC); readlink -e $(M))
|
|
|
KBUILD_OPTIONS += MODNAME?=wlan
|
|
@@ -21,6 +22,7 @@ KBUILD_OPTIONS += CONFIG_QCA_WIFI_ISOC=0
|
|
|
KBUILD_OPTIONS += CONFIG_QCA_WIFI_2_0=1
|
|
|
KBUILD_OPTIONS += $(WLAN_SELECT)
|
|
|
KBUILD_OPTIONS += $(KBUILD_EXTRA) # Extra config if any
|
|
|
+endif
|
|
|
|
|
|
all:
|
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
|