1SHELL := /bin/bash 2EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) 3EXTRA_CFLAGS += -O1 4 5ccflags-y += -D__CHECK_ENDIAN__ 6 7CONFIG_BT_COEXIST = n 8CONFIG_WOWLAN = n 9 10OUTSRC_FILES := \ 11 hal/HalHWImg8188E_MAC.o \ 12 hal/HalHWImg8188E_BB.o \ 13 hal/HalHWImg8188E_RF.o \ 14 hal/HalPhyRf_8188e.o \ 15 hal/HalPwrSeqCmd.o \ 16 hal/Hal8188EPwrSeq.o \ 17 hal/Hal8188ERateAdaptive.o\ 18 hal/hal_intf.o \ 19 hal/hal_com.o \ 20 hal/odm.o \ 21 hal/odm_debug.o \ 22 hal/odm_interface.o \ 23 hal/odm_HWConfig.o \ 24 hal/odm_RegConfig8188E.o\ 25 hal/odm_RTL8188E.o \ 26 hal/rtl8188e_cmd.o \ 27 hal/rtl8188e_dm.o \ 28 hal/rtl8188e_hal_init.o \ 29 hal/rtl8188e_mp.o \ 30 hal/rtl8188e_phycfg.o \ 31 hal/rtl8188e_rf6052.o \ 32 hal/rtl8188e_rxdesc.o \ 33 hal/rtl8188e_sreset.o \ 34 hal/rtl8188e_xmit.o \ 35 hal/rtl8188eu_led.o \ 36 hal/rtl8188eu_recv.o \ 37 hal/rtl8188eu_xmit.o \ 38 hal/usb_halinit.o \ 39 hal/usb_ops_linux.o 40 41RTL871X = rtl8188e 42 43HCI_NAME = usb 44 45_OS_INTFS_FILES := \ 46 os_dep/ioctl_linux.o \ 47 os_dep/mlme_linux.o \ 48 os_dep/os_intfs.o \ 49 os_dep/osdep_service.o \ 50 os_dep/recv_linux.o \ 51 os_dep/usb_intf.o \ 52 os_dep/usb_ops_linux.o \ 53 os_dep/xmit_linux.o 54 55_HAL_INTFS_FILES += $(OUTSRC_FILES) 56 57ifeq ($(CONFIG_BT_COEXIST), y) 58EXTRA_CFLAGS += -DCONFIG_BT_COEXIST 59endif 60 61ifeq ($(CONFIG_WOWLAN), y) 62EXTRA_CFLAGS += -DCONFIG_WOWLAN 63endif 64 65SUBARCH := $(shell uname -m | sed -e "s/i.86/i386/; s/ppc.*/powerpc/; s/armv.l/arm/; s/aarch64/arm64/;") 66 67ARCH ?= $(SUBARCH) 68CROSS_COMPILE ?= 69KVER ?= $(if $(KERNELRELEASE),$(KERNELRELEASE),$(shell uname -r)) 70KSRC ?= $(if $(KERNEL_SRC),$(KERNEL_SRC),/lib/modules/$(KVER)/build) 71MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless 72INSTALL_PREFIX := 73 74rtk_core := \ 75 core/rtw_ap.o \ 76 core/rtw_br_ext.o \ 77 core/rtw_cmd.o \ 78 core/rtw_debug.o \ 79 core/rtw_efuse.o \ 80 core/rtw_ieee80211.o \ 81 core/rtw_io.o \ 82 core/rtw_ioctl_set.o \ 83 core/rtw_iol.o \ 84 core/rtw_led.o \ 85 core/rtw_mlme.o \ 86 core/rtw_mlme_ext.o \ 87 core/rtw_mp.o \ 88 core/rtw_mp_ioctl.o \ 89 core/rtw_pwrctrl.o \ 90 core/rtw_p2p.o \ 91 core/rtw_recv.o \ 92 core/rtw_rf.o \ 93 core/rtw_security.o \ 94 core/rtw_sreset.o \ 95 core/rtw_sta_mgt.o \ 96 core/rtw_wlan_util.o \ 97 core/rtw_xmit.o 98 99r8188eu-y += $(rtk_core) 100 101r8188eu-y += $(_HAL_INTFS_FILES) 102 103r8188eu-y += $(_OS_INTFS_FILES) 104 105obj-$(CONFIG_R8188EU) := r8188eu.o 106