-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
57 lines (46 loc) · 1.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Uncomment and edits this if you want to change parameters
#
# ARCH =
# KERNEL_SRC =
# CROSS_COMPILE =
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
KBUILD_OPTIONS := WLAN_ROOT=$(PWD)
KBUILD_OPTIONS += MODNAME?=wlan
# Determine if the driver license is Open source or proprietary
# This is determined under the assumption that LICENSE doesn't change.
# Please change here if driver license text changes.
LICENSE_FILE ?= $(PWD)/$(WLAN_ROOT)/CORE/HDD/src/wlan_hdd_main.c
WLAN_OPEN_SOURCE = $(shell if grep -q "MODULE_LICENSE(\"Dual BSD/GPL\")" \
$(LICENSE_FILE); then echo 1; else echo 0; fi)
KBUILD_EXTRA := CONFIG_LINUX_QCMBR=y
KBUILD_EXTRA += CONFIG_PER_VDEV_TX_DESC_POOL=1
KBUILD_EXTRA += SAP_AUTH_OFFLOAD=1
KBUILD_EXTRA += CONFIG_QCA_LL_TX_FLOW_CT=1
KBUILD_EXTRA += CONFIG_WLAN_FEATURE_FILS=y
KBUILD_EXTRA += CONFIG_FEATURE_COEX_PTA_CONFIG_ENABLE=y
KBUILD_EXTRA += CONFIG_QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK=y
KBUILD_EXTRA += CONFIG_WLAN_WAPI_MODE_11AC_DISABLE=y
KBUILD_EXTRA += CONFIG_LINUX_QCMBR=y
KBUILD_EXTRA += CONFIG_PMF_SUPPORT=y
KBUILD_EXTRA += CONFIG_CFG80211_INTERNAL_REGDB=y
KBUILD_EXTRA += BUILD_DRIVERFW_TOLOCAL=y
KBUILD_EXTRA += CONFIG_NO_USE_BACKPORTS=y
KBUILD_EXTRA += CONFIG_CFG80211_DEPEND_ON_KERNEL=y
KBUILD_EXTRA += WLAN_OPEN_SOURCE=1
#By default build for CLD
WLAN_SELECT := CONFIG_QCA_CLD_WLAN=m
KBUILD_OPTIONS += CONFIG_QCA_WIFI_ISOC=0
KBUILD_OPTIONS += CONFIG_QCA_WIFI_2_0=1
KBUILD_OPTIONS += $(WLAN_SELECT)
KBUILD_OPTIONS += WLAN_OPEN_SOURCE=$(WLAN_OPEN_SOURCE)
KBUILD_OPTIONS += $(KBUILD_EXTRA) # Extra config if any
.NOTPARALLEL:
all: wlan-sdio wlan-usb
wlan-sdio:
$(MAKE) CONFIG_CLD_HL_SDIO_CORE=y -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS) MODNAME=wlan-sdio
wlan-usb:
$(MAKE) CONFIG_CLD_HL_USB_CORE=y -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS) MODNAME=wlan-usb
modules_install:
$(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean