2013-05-08 21:45:39 +00:00
|
|
|
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
|
2018-10-20 02:59:45 +00:00
|
|
|
EXTRA_CFLAGS += -O1 -g
|
2013-05-08 21:45:39 +00:00
|
|
|
EXTRA_CFLAGS += -Wno-unused-variable
|
|
|
|
EXTRA_CFLAGS += -Wno-unused-value
|
|
|
|
EXTRA_CFLAGS += -Wno-unused-label
|
|
|
|
EXTRA_CFLAGS += -Wno-unused-parameter
|
|
|
|
EXTRA_CFLAGS += -Wno-unused-function
|
|
|
|
EXTRA_CFLAGS += -Wno-unused
|
2018-11-24 01:29:07 +00:00
|
|
|
EXTRA_CFLAGS += -Wno-uninitialized
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
|
|
|
ifeq ($(GCC_VER_49),1)
|
|
|
|
EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
|
|
|
|
endif
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2021-07-23 00:32:22 +00:00
|
|
|
EXTRA_CFLAGS += -I$(src)
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
CONFIG_AUTOCFG_CP = n
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
########################## Features ###########################
|
|
|
|
CONFIG_MP_INCLUDED = y
|
2014-12-11 21:15:04 +00:00
|
|
|
CONFIG_POWER_SAVING = y
|
2018-10-15 00:07:45 +00:00
|
|
|
CONFIG_EFUSE_CONFIG_FILE = y
|
|
|
|
CONFIG_TRAFFIC_PROTECT = y
|
|
|
|
CONFIG_LOAD_PHY_PARA_FROM_FILE = y
|
|
|
|
CONFIG_RTW_ADAPTIVITY_EN = disable
|
|
|
|
CONFIG_RTW_ADAPTIVITY_MODE = normal
|
|
|
|
CONFIG_BR_EXT = y
|
|
|
|
CONFIG_RTW_NAPI = y
|
|
|
|
CONFIG_RTW_GRO = y
|
|
|
|
########################## Debug ###########################
|
|
|
|
CONFIG_RTW_DEBUG = y
|
|
|
|
# please refer to "How_to_set_driver_debug_log_level.doc" to set the available level.
|
|
|
|
CONFIG_RTW_LOG_LEVEL = 2
|
|
|
|
######################## Wake On Lan ##########################
|
|
|
|
CONFIG_WAKEUP_GPIO_IDX = default
|
|
|
|
######### Notify SDIO Host Keep Power During Syspend ##########
|
|
|
|
CONFIG_RTW_SDIO_PM_KEEP_POWER = y
|
|
|
|
###################### Platform Related #######################
|
|
|
|
CONFIG_PLATFORM_I386_PC = y
|
|
|
|
###############################################################
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2021-03-04 13:35:30 +00:00
|
|
|
export TopDIR ?= $(CURDIR)
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2019-11-04 21:52:04 +00:00
|
|
|
MSG="Directory .git does not exist indicating that you downloaded the source as a zip file. Only the 'git clone' method is now supported."
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
########### COMMON #################################
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
HCI_NAME = usb
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2021-07-23 00:19:25 +00:00
|
|
|
_OS_INTFS_FILES := osdep_service.o \
|
|
|
|
os_intfs.o \
|
2021-07-23 00:45:13 +00:00
|
|
|
usb_intf.o \
|
|
|
|
usb_ops2_linux.o \
|
2021-07-23 00:19:25 +00:00
|
|
|
ioctl_linux.o \
|
|
|
|
xmit_linux.o \
|
|
|
|
mlme_linux.o \
|
|
|
|
recv_linux.o \
|
|
|
|
ioctl_cfg80211.o \
|
|
|
|
rtw_cfgvendor.o \
|
|
|
|
wifi_regd.o \
|
|
|
|
rtw_android.o \
|
|
|
|
rtw_proc.o
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
ifeq ($(CONFIG_MP_INCLUDED), y)
|
2021-07-23 00:19:25 +00:00
|
|
|
_OS_INTFS_FILES += ioctl_mp.o
|
2018-10-15 00:07:45 +00:00
|
|
|
endif
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2021-07-22 23:57:16 +00:00
|
|
|
_HAL_INTFS_FILES := hal_intf.o \
|
|
|
|
hal_com.o \
|
|
|
|
hal_com_phycfg.o \
|
|
|
|
hal_phy.o \
|
|
|
|
hal_dm.o \
|
|
|
|
hal_btcoex_wifionly.o \
|
|
|
|
hal_btcoex.o \
|
|
|
|
hal_mp.o \
|
|
|
|
hal_mcc.o \
|
2021-07-23 00:45:13 +00:00
|
|
|
hal_usb.o \
|
|
|
|
hal_usb_led.o
|
2018-10-15 00:07:45 +00:00
|
|
|
|
|
|
|
|
2021-07-22 23:57:16 +00:00
|
|
|
_OUTSRC_FILES := phydm_debug.o \
|
|
|
|
phydm_antdiv.o\
|
|
|
|
phydm_antdect.o\
|
|
|
|
phydm_interface.o\
|
|
|
|
phydm_hwconfig.o\
|
|
|
|
phydm.o\
|
|
|
|
halphyrf_ce.o\
|
|
|
|
phydm_edcaturbocheck.o\
|
|
|
|
phydm_dig.o\
|
|
|
|
phydm_pathdiv.o\
|
|
|
|
phydm_rainfo.o\
|
|
|
|
phydm_dynamicbbpowersaving.o\
|
|
|
|
phydm_powertracking_ce.o\
|
|
|
|
phydm_dynamictxpower.o\
|
|
|
|
phydm_adaptivity.o\
|
|
|
|
phydm_cfotracking.o\
|
|
|
|
phydm_noisemonitor.o\
|
|
|
|
phydm_acs.o\
|
|
|
|
phydm_dfs.o\
|
|
|
|
phydm_hal_txbf_api.o\
|
|
|
|
phydm_adc_sampling.o\
|
|
|
|
phydm_kfree.o\
|
|
|
|
phydm_ccx.o
|
2018-10-15 00:07:45 +00:00
|
|
|
|
2021-07-22 23:57:16 +00:00
|
|
|
_HAL_INTFS_FILES += HalPwrSeqCmd.o \
|
|
|
|
Hal8188EPwrSeq.o\
|
2021-07-23 00:45:13 +00:00
|
|
|
rtl8188e_xmit.o\
|
|
|
|
rtl8188e_sreset.o
|
|
|
|
|
|
|
|
_HAL_INTFS_FILES += rtl8188e_hal_init.o \
|
|
|
|
rtl8188e_phycfg.o \
|
|
|
|
rtl8188e_rf6052.o \
|
|
|
|
rtl8188e_dm.o \
|
|
|
|
rtl8188e_rxdesc.o \
|
|
|
|
rtl8188e_cmd.o \
|
2021-07-22 23:57:16 +00:00
|
|
|
hal8188e_s_fw.o \
|
|
|
|
hal8188e_t_fw.o \
|
2021-07-23 00:45:13 +00:00
|
|
|
usb_halinit.o \
|
2021-07-22 23:57:16 +00:00
|
|
|
rtl8188eu_led.o \
|
|
|
|
rtl8188eu_xmit.o \
|
|
|
|
rtl8188eu_recv.o
|
|
|
|
|
2021-07-23 00:45:13 +00:00
|
|
|
_HAL_INTFS_FILES += usb_ops_linux.o
|
2021-07-22 23:57:16 +00:00
|
|
|
|
2022-01-25 06:47:17 +00:00
|
|
|
_HAL_INTFS_FILES +=HalEfuseMask8188E_USB.o
|
2021-07-22 23:57:16 +00:00
|
|
|
|
|
|
|
_OUTSRC_FILES += halhwimg8188e_mac.o\
|
|
|
|
halhwimg8188e_bb.o\
|
|
|
|
halhwimg8188e_rf.o\
|
|
|
|
halphyrf_8188e_ce.o\
|
|
|
|
phydm_regconfig8188e.o\
|
|
|
|
hal8188erateadaptive.o\
|
|
|
|
phydm_rtl8188e.o
|
2018-10-15 00:07:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
########### END OF PATH #################################
|
|
|
|
|
2014-12-11 21:15:04 +00:00
|
|
|
ifeq ($(CONFIG_USB_AUTOSUSPEND), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_USB_AUTOSUSPEND
|
|
|
|
endif
|
2018-10-15 00:07:45 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_MP_INCLUDED), y)
|
2018-11-24 01:29:07 +00:00
|
|
|
#MODULE_NAME := 8188eu_mp
|
2018-10-15 00:07:45 +00:00
|
|
|
EXTRA_CFLAGS += -DCONFIG_MP_INCLUDED
|
|
|
|
endif
|
2014-12-11 21:15:04 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_POWER_SAVING), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_POWER_SAVING
|
|
|
|
endif
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
ifeq ($(CONFIG_HW_PWRP_DETECTION), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_HW_PWRP_DETECTION
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WIFI_TEST), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_WIFI_TEST
|
|
|
|
endif
|
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
ifeq ($(CONFIG_BT_COEXIST), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_BT_COEXIST
|
|
|
|
endif
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
ifeq ($(CONFIG_INTEL_WIDI), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_INTEL_WIDI
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WAPI_SUPPORT), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_WAPI_SUPPORT
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_EFUSE_CONFIG_FILE), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_EFUSE_CONFIG_FILE
|
|
|
|
|
|
|
|
#EFUSE_MAP_PATH
|
|
|
|
USER_EFUSE_MAP_PATH ?=
|
|
|
|
ifneq ($(USER_EFUSE_MAP_PATH),)
|
|
|
|
EXTRA_CFLAGS += -DEFUSE_MAP_PATH=\"$(USER_EFUSE_MAP_PATH)\"
|
2018-11-24 01:29:07 +00:00
|
|
|
else ifeq (8188eu, 8189es)
|
2018-10-15 00:07:45 +00:00
|
|
|
EXTRA_CFLAGS += -DEFUSE_MAP_PATH=\"/system/etc/wifi/wifi_efuse_8189e.map\"
|
2018-11-24 01:29:07 +00:00
|
|
|
else ifeq (8188eu, 8723bs)
|
2018-10-15 00:07:45 +00:00
|
|
|
EXTRA_CFLAGS += -DEFUSE_MAP_PATH=\"/system/etc/wifi/wifi_efuse_8723bs.map\"
|
|
|
|
else
|
2018-11-24 01:29:07 +00:00
|
|
|
EXTRA_CFLAGS += -DEFUSE_MAP_PATH=\"/system/etc/wifi/wifi_efuse_8188eu.map\"
|
2018-10-15 00:07:45 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
#WIFIMAC_PATH
|
|
|
|
USER_WIFIMAC_PATH ?=
|
|
|
|
ifneq ($(USER_WIFIMAC_PATH),)
|
|
|
|
EXTRA_CFLAGS += -DWIFIMAC_PATH=\"$(USER_WIFIMAC_PATH)\"
|
|
|
|
else
|
|
|
|
EXTRA_CFLAGS += -DWIFIMAC_PATH=\"/data/wifimac.txt\"
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-12-11 21:15:04 +00:00
|
|
|
ifeq ($(CONFIG_EXT_CLK), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_EXT_CLK
|
|
|
|
endif
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
ifeq ($(CONFIG_TRAFFIC_PROTECT), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TRAFFIC_PROTECT
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_LOAD_PHY_PARA_FROM_FILE), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_LOAD_PHY_PARA_FROM_FILE
|
|
|
|
EXTRA_CFLAGS += -DREALTEK_CONFIG_PATH=\"\"
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TXPWR_BY_RATE_EN), n)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TXPWR_BY_RATE_EN=0
|
|
|
|
else ifeq ($(CONFIG_TXPWR_BY_RATE_EN), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TXPWR_BY_RATE_EN=1
|
|
|
|
else ifeq ($(CONFIG_TXPWR_BY_RATE_EN), auto)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TXPWR_BY_RATE_EN=2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TXPWR_LIMIT_EN), n)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TXPWR_LIMIT_EN=0
|
|
|
|
else ifeq ($(CONFIG_TXPWR_LIMIT_EN), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TXPWR_LIMIT_EN=1
|
|
|
|
else ifeq ($(CONFIG_TXPWR_LIMIT_EN), auto)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TXPWR_LIMIT_EN=2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_CALIBRATE_TX_POWER_BY_REGULATORY), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_CALIBRATE_TX_POWER_BY_REGULATORY
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_CALIBRATE_TX_POWER_TO_MAX), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_CALIBRATE_TX_POWER_TO_MAX
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RTW_ADAPTIVITY_EN), disable)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_ADAPTIVITY_EN=0
|
|
|
|
else ifeq ($(CONFIG_RTW_ADAPTIVITY_EN), enable)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_ADAPTIVITY_EN=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RTW_ADAPTIVITY_MODE), normal)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_ADAPTIVITY_MODE=0
|
|
|
|
else ifeq ($(CONFIG_RTW_ADAPTIVITY_MODE), carrier_sense)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_ADAPTIVITY_MODE=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SIGNAL_SCALE_MAPPING), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_SIGNAL_SCALE_MAPPING
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_80211W), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_IEEE80211W
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WOWLAN), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_WOWLAN
|
|
|
|
ifeq ($(CONFIG_DEFAULT_PATTERNS_EN), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_DEFAULT_PATTERNS_EN
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_AP_WOWLAN), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_AP_WOWLAN
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PNO_SUPPORT), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_PNO_SUPPORT
|
|
|
|
ifeq ($(CONFIG_PNO_SET_DEBUG), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_PNO_SET_DEBUG
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_GPIO_WAKEUP), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_GPIO_WAKEUP
|
|
|
|
ifeq ($(CONFIG_HIGH_ACTIVE), y)
|
|
|
|
EXTRA_CFLAGS += -DHIGH_ACTIVE=1
|
|
|
|
else
|
|
|
|
EXTRA_CFLAGS += -DHIGH_ACTIVE=0
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_WAKEUP_GPIO_IDX), default)
|
|
|
|
EXTRA_CFLAGS += -DWAKEUP_GPIO_IDX=$(CONFIG_WAKEUP_GPIO_IDX)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_REDUCE_TX_CPU_LOADING), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_REDUCE_TX_CPU_LOADING
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BR_EXT), y)
|
|
|
|
BR_NAME = br0
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_BR_EXT
|
|
|
|
EXTRA_CFLAGS += '-DCONFIG_BR_EXT_BRNAME="'$(BR_NAME)'"'
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_TDLS), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_TDLS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_WIFI_MONITOR), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_WIFI_MONITOR
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MCC_MODE), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_MCC_MODE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RTW_NAPI), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_NAPI
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RTW_GRO), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_GRO
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MP_VHT_HW_TX_MODE), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE
|
|
|
|
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
|
|
|
## For I386 X86 ToolChain use Hardware FLOATING
|
|
|
|
EXTRA_CFLAGS += -mhard-float
|
|
|
|
else
|
|
|
|
## For ARM ToolChain use Hardware FLOATING
|
|
|
|
EXTRA_CFLAGS += -mfloat-abi=hard
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_APPEND_VENDOR_IE_ENABLE), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_APPEND_VENDOR_IE_ENABLE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_RTW_DEBUG), y)
|
|
|
|
EXTRA_CFLAGS += -DCONFIG_RTW_DEBUG
|
|
|
|
EXTRA_CFLAGS += -DRTW_LOG_LEVEL=$(CONFIG_RTW_LOG_LEVEL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_CFLAGS += -DDM_ODM_SUPPORT_TYPE=0x04
|
|
|
|
|
2022-01-25 06:47:17 +00:00
|
|
|
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211
|
2019-04-01 18:50:40 +00:00
|
|
|
EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT
|
2021-03-02 17:23:59 +00:00
|
|
|
|
|
|
|
SUBARCH := $(shell uname -m | sed -e "s/i.86/i386/; s/ppc.*/powerpc/; s/armv.l/arm/; s/aarch64/arm64/;")
|
2013-05-08 21:45:39 +00:00
|
|
|
ARCH ?= $(SUBARCH)
|
|
|
|
CROSS_COMPILE ?=
|
2020-05-10 17:03:48 +00:00
|
|
|
KVER ?= $(if $(KERNELRELEASE),$(KERNELRELEASE),$(shell uname -r))
|
2022-08-29 15:04:39 +00:00
|
|
|
KSRC ?= $(if $(KERNEL_SRC),$(KERNEL_SRC),/lib/modules/$(KVER)/build)
|
2022-08-27 17:06:53 +00:00
|
|
|
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/staging/r8188eu/
|
2013-05-08 21:45:39 +00:00
|
|
|
INSTALL_PREFIX :=
|
2018-10-15 00:07:45 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_MULTIDRV), y)
|
|
|
|
|
|
|
|
|
|
|
|
MODULE_NAME := rtw_usb
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
USER_MODULE_NAME ?=
|
2014-12-11 21:15:04 +00:00
|
|
|
ifneq ($(USER_MODULE_NAME),)
|
|
|
|
MODULE_NAME := $(USER_MODULE_NAME)
|
|
|
|
endif
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
|
2021-07-22 23:34:17 +00:00
|
|
|
rtk_core := rtw_cmd.o \
|
|
|
|
rtw_security.o \
|
|
|
|
rtw_debug.o \
|
|
|
|
rtw_io.o \
|
|
|
|
rtw_ioctl_query.o \
|
|
|
|
rtw_ioctl_set.o \
|
|
|
|
rtw_ieee80211.o \
|
|
|
|
rtw_mlme.o \
|
|
|
|
rtw_mlme_ext.o \
|
|
|
|
rtw_mi.o \
|
|
|
|
rtw_wlan_util.o \
|
|
|
|
rtw_pwrctrl.o \
|
|
|
|
rtw_rf.o \
|
|
|
|
rtw_recv.o \
|
|
|
|
rtw_sta_mgt.o \
|
|
|
|
rtw_ap.o \
|
|
|
|
rtw_xmit.o \
|
|
|
|
rtw_p2p.o \
|
|
|
|
rtw_tdls.o \
|
|
|
|
rtw_br_ext.o \
|
|
|
|
rtw_iol.o \
|
|
|
|
rtw_sreset.o \
|
|
|
|
rtw_btcoex_wifionly.o \
|
|
|
|
rtw_btcoex.o \
|
|
|
|
rtw_beamforming.o \
|
|
|
|
rtw_odm.o \
|
|
|
|
rtw_efuse.o
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2018-11-24 01:29:07 +00:00
|
|
|
8188eu-y += $(rtk_core)
|
2018-10-15 00:07:45 +00:00
|
|
|
|
2021-07-22 23:34:17 +00:00
|
|
|
8188eu-$(CONFIG_INTEL_WIDI) += rtw_intel_widi.o
|
2018-10-15 00:07:45 +00:00
|
|
|
|
2021-07-22 23:34:17 +00:00
|
|
|
8188eu-$(CONFIG_WAPI_SUPPORT) += rtw_wapi.o \
|
|
|
|
rtw_wapi_sms4.o
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2018-11-24 01:29:07 +00:00
|
|
|
8188eu-y += $(_OS_INTFS_FILES)
|
|
|
|
8188eu-y += $(_HAL_INTFS_FILES)
|
|
|
|
8188eu-y += $(_OUTSRC_FILES)
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2021-07-22 23:34:17 +00:00
|
|
|
8188eu-$(CONFIG_MP_INCLUDED) += rtw_mp.o
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
ifeq ($(CONFIG_RTL8723B), y)
|
2021-07-22 23:34:17 +00:00
|
|
|
8188eu-$(CONFIG_MP_INCLUDED)+= rtw_bt_mp.o
|
2018-10-15 00:07:45 +00:00
|
|
|
endif
|
2014-12-11 21:15:04 +00:00
|
|
|
|
2021-03-04 19:00:47 +00:00
|
|
|
obj-m := 8188eu.o
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2019-11-04 21:52:04 +00:00
|
|
|
all: test modules
|
|
|
|
|
|
|
|
test:
|
|
|
|
@if [ ! -e ./.git ] ; then echo $(MSG); exit 1; fi;
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
modules:
|
2021-03-04 13:35:30 +00:00
|
|
|
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(CURDIR) modules
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
strip:
|
2018-11-24 01:29:07 +00:00
|
|
|
$(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded
|
2013-05-08 21:45:39 +00:00
|
|
|
|
|
|
|
install:
|
2022-01-10 19:01:21 +00:00
|
|
|
@mkdir -p $(MODDESTDIR)
|
2018-11-24 01:29:07 +00:00
|
|
|
install -p -m 644 8188eu.ko $(MODDESTDIR)
|
2013-05-08 21:45:39 +00:00
|
|
|
/sbin/depmod -a ${KVER}
|
|
|
|
|
|
|
|
uninstall:
|
2018-11-24 01:29:07 +00:00
|
|
|
rm -f $(MODDESTDIR)/8188eu.ko
|
2013-05-08 21:45:39 +00:00
|
|
|
/sbin/depmod -a ${KVER}
|
|
|
|
|
|
|
|
config_r:
|
|
|
|
@echo "make config"
|
|
|
|
/bin/bash script/Configure script/config.in
|
|
|
|
|
|
|
|
|
2018-10-15 00:07:45 +00:00
|
|
|
.PHONY: modules clean
|
|
|
|
|
|
|
|
clean:
|
2021-03-04 13:35:30 +00:00
|
|
|
#$(MAKE) -C $(KSRC) M=$(CURDIR) clean
|
2013-05-08 21:45:39 +00:00
|
|
|
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
|
2018-10-15 00:07:45 +00:00
|
|
|
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
|
|
|
|
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
|
|
|
|
rm -fr .tmp_versions
|
2013-05-08 21:45:39 +00:00
|
|
|
endif
|
2018-10-15 00:07:45 +00:00
|
|
|
|