mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-22 21:34:37 +00:00
Fix for RPI Raspian compilation
This commit is contained in:
parent
8c60ffc1b4
commit
a3246e708e
4
Kconfig
4
Kconfig
@ -1,6 +1,6 @@
|
|||||||
config 88XXAU
|
config 88XXAU
|
||||||
tristate "Realtek 88XXAU USB WiFi"
|
tristate "Realtek 88XXau USB WiFi"
|
||||||
depends on USB
|
depends on USB
|
||||||
---help---
|
---help---
|
||||||
Help message of 88XXAU
|
Help message of 88XXau
|
||||||
|
|
||||||
|
97
Makefile
97
Makefile
@ -173,29 +173,16 @@ CONFIG_DRVEXT_MODULE = n
|
|||||||
export TopDIR ?= $(shell pwd)
|
export TopDIR ?= $(shell pwd)
|
||||||
|
|
||||||
########### COMMON #################################
|
########### COMMON #################################
|
||||||
ifeq ($(CONFIG_GSPI_HCI), y)
|
|
||||||
HCI_NAME = gspi
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
|
||||||
HCI_NAME = sdio
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_USB_HCI), y)
|
ifeq ($(CONFIG_USB_HCI), y)
|
||||||
HCI_NAME = usb
|
HCI_NAME = usb
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PCI_HCI), y)
|
|
||||||
HCI_NAME = pci
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_RTL8812A)_$(CONFIG_RTL8821A)_$(CONFIG_RTL8814A), y_y_y)
|
ifeq ($(CONFIG_RTL8812A)_$(CONFIG_RTL8821A)_$(CONFIG_RTL8814A), y_y_y)
|
||||||
|
|
||||||
EXTRA_CFLAGS += -DDRV_NAME=\"rtl88xxau\"
|
EXTRA_CFLAGS += -DDRV_NAME=\"rtl88XXau\"
|
||||||
ifeq ($(CONFIG_USB_HCI), y)
|
ifeq ($(CONFIG_USB_HCI), y)
|
||||||
USER_MODULE_NAME = 88XXau
|
USER_MODULE_NAME = 88XXau
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
EXTRA_CFLAGS += -DDRV_NAME=\"rtl8812au\"
|
EXTRA_CFLAGS += -DDRV_NAME=\"rtl8812au\"
|
||||||
endif
|
endif
|
||||||
@ -219,17 +206,6 @@ ifeq ($(CONFIG_MP_INCLUDED), y)
|
|||||||
_OS_INTFS_FILES += os_dep/linux/ioctl_mp.o
|
_OS_INTFS_FILES += os_dep/linux/ioctl_mp.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
|
||||||
_OS_INTFS_FILES += os_dep/linux/custom_gpio_linux.o
|
|
||||||
_OS_INTFS_FILES += os_dep/linux/$(HCI_NAME)_ops_linux.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_GSPI_HCI), y)
|
|
||||||
_OS_INTFS_FILES += os_dep/linux/custom_gpio_linux.o
|
|
||||||
_OS_INTFS_FILES += os_dep/linux/$(HCI_NAME)_ops_linux.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
_HAL_INTFS_FILES := hal/hal_intf.o \
|
_HAL_INTFS_FILES := hal/hal_intf.o \
|
||||||
hal/hal_com.o \
|
hal/hal_com.o \
|
||||||
hal/hal_com_phycfg.o \
|
hal/hal_com_phycfg.o \
|
||||||
@ -308,67 +284,6 @@ endif
|
|||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
ifeq ($(CONFIG_SDIO_HCI), y)
|
||||||
_HAL_INTFS_FILES +=hal/efuse/$(RTL871X)/HalEfuseMask8188E_SDIO.o
|
_HAL_INTFS_FILES +=hal/efuse/$(RTL871X)/HalEfuseMask8188E_SDIO.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
########### HAL_RTL8192E #################################
|
|
||||||
ifeq ($(CONFIG_RTL8192E), y)
|
|
||||||
|
|
||||||
RTL871X = rtl8192e
|
|
||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
|
||||||
MODULE_NAME = 8192es
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_USB_HCI), y)
|
|
||||||
MODULE_NAME = 8192eu
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_PCI_HCI), y)
|
|
||||||
MODULE_NAME = 8192ee
|
|
||||||
endif
|
|
||||||
EXTRA_CFLAGS += -DCONFIG_RTL8192E
|
|
||||||
_HAL_INTFS_FILES += hal/HalPwrSeqCmd.o \
|
|
||||||
hal/$(RTL871X)/Hal8192EPwrSeq.o\
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_xmit.o\
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_sreset.o
|
|
||||||
|
|
||||||
_HAL_INTFS_FILES += hal/$(RTL871X)/$(RTL871X)_hal_init.o \
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_phycfg.o \
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_rf6052.o \
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_dm.o \
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_rxdesc.o \
|
|
||||||
hal/$(RTL871X)/$(RTL871X)_cmd.o \
|
|
||||||
hal/$(RTL871X)/hal8192e_fw.o \
|
|
||||||
hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_halinit.o \
|
|
||||||
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_NAME)_led.o \
|
|
||||||
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_NAME)_xmit.o \
|
|
||||||
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_NAME)_recv.o
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
|
||||||
_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops.o
|
|
||||||
else
|
|
||||||
ifeq ($(CONFIG_GSPI_HCI), y)
|
|
||||||
_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops.o
|
|
||||||
else
|
|
||||||
_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops_linux.o
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_USB_HCI), y)
|
|
||||||
_HAL_INTFS_FILES +=hal/efuse/$(RTL871X)/HalEfuseMask8192E_USB.o
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_PCI_HCI), y)
|
|
||||||
_HAL_INTFS_FILES +=hal/efuse/$(RTL871X)/HalEfuseMask8192E_PCIE.o
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
|
||||||
_HAL_INTFS_FILES +=hal/efuse/$(RTL871X)/HalEfuseMask8192E_SDIO.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_BT_COEXIST), y)
|
|
||||||
_BTC_FILES += hal/btc/halbtc8192e1ant.o \
|
|
||||||
hal/btc/halbtc8192e2ant.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
########### HAL_RTL8812A_RTL8821A #################################
|
########### HAL_RTL8812A_RTL8821A #################################
|
||||||
@ -1206,9 +1121,12 @@ EXTRA_CFLAGS += -DCONFIG_MP_VHT_HW_TX_MODE
|
|||||||
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
ifeq ($(CONFIG_PLATFORM_I386_PC), y)
|
||||||
## For I386 X86 ToolChain use Hardware FLOATING
|
## For I386 X86 ToolChain use Hardware FLOATING
|
||||||
EXTRA_CFLAGS += -mhard-float
|
EXTRA_CFLAGS += -mhard-float
|
||||||
|
EXTRA_CFLAGS += -DMARK_KERNEL_PFU
|
||||||
else
|
else
|
||||||
## For ARM ToolChain use Hardware FLOATING
|
## For ARM ToolChain use Hardware FLOATING
|
||||||
EXTRA_CFLAGS += -mfloat-abi=hard
|
# Raspbian kernel is with soft-float.
|
||||||
|
# 'softfp' allows FP instructions, but no FP on function call interfaces
|
||||||
|
EXTRA_CFLAGS += -mfloat-abi=softfp
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -1280,7 +1198,6 @@ KSRC := $(KERNEL_BUILD_PATH)
|
|||||||
MODULE_NAME :=wlan
|
MODULE_NAME :=wlan
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_PLATFORM_ACTIONS_ATM705X), y)
|
ifeq ($(CONFIG_PLATFORM_ACTIONS_ATM705X), y)
|
||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||||
#EXTRA_CFLAGS += -DRTW_ENABLE_WIFI_CONTROL_FUNC
|
#EXTRA_CFLAGS += -DRTW_ENABLE_WIFI_CONTROL_FUNC
|
||||||
@ -1497,8 +1414,6 @@ CROSS_COMPILE := /home/share/CusEnv/FreeScale/arm-eabi-4.4.3/bin/arm-eabi-
|
|||||||
KSRC ?= /home/share/CusEnv/FreeScale/FS_kernel_env
|
KSRC ?= /home/share/CusEnv/FreeScale/FS_kernel_env
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(CONFIG_PLATFORM_ACTIONS_ATJ227X), y)
|
ifeq ($(CONFIG_PLATFORM_ACTIONS_ATJ227X), y)
|
||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ACTIONS_ATJ227X
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ACTIONS_ATJ227X
|
||||||
ARCH := mips
|
ARCH := mips
|
||||||
@ -2162,7 +2077,6 @@ ifeq ($(CONFIG_PCI_HCI), y)
|
|||||||
MODULE_NAME := rtw_pci
|
MODULE_NAME := rtw_pci
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
USER_MODULE_NAME ?=
|
USER_MODULE_NAME ?=
|
||||||
@ -2322,4 +2236,3 @@ clean:
|
|||||||
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
|
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
|
||||||
rm -fr .tmp_versions
|
rm -fr .tmp_versions
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user