From 0d2331d0527fb5c4b0db1fa59d109164945e7698 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 1 Feb 2020 09:21:48 +0100 Subject: [PATCH] Fix wrong header guards + Added Android ARM64 platform --- Makefile | 17 ++++++++++++++++- include/rtl8192e_sreset.h | 2 +- include/rtl8812a_sreset.h | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3be1dea..b40ee8f 100755 --- a/Makefile +++ b/Makefile @@ -86,6 +86,7 @@ CONFIG_RTW_SDIO_PM_KEEP_POWER = y CONFIG_MP_VHT_HW_TX_MODE = n ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = y +CONFIG_PLATFORM_ANDROID_ARM64 = n CONFIG_PLATFORM_ARM_RPI = n CONFIG_PLATFORM_ARM64_RPI = n CONFIG_PLATFORM_ARM_JET_NANO = n @@ -1324,6 +1325,17 @@ KVER:= 3.1.10 KSRC:= /usr/src/Mstar_kernel/3.1.10/ endif +ifeq ($(CONFIG_PLATFORM_ANDROID_ARM64), y) +# For this to work, change the "modules:" section is also needed, in order to build with CLANG. +# "$(MAKE) ARCH=$(ARCH) SUBARCH=$(ARCH) REAL_CC=${CC_DIR}/clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) O="$(KBUILD_OUTPUT)" modules" +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -fno-pic +EXTRA_CFLAGS += -DRTW_ENABLE_WIFI_CONTROL_FUNC -DCONFIG_RADIO_WORK +#Enable this to have two interfaces: +#EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE +EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT +EXTRA_CFLAGS += -DCONFIG_P2P_IPS +endif + ifeq ($(CONFIG_PLATFORM_ANDROID_X86), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) @@ -2226,7 +2238,10 @@ all: modules modules: $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules - + @echo "---------------------------------------------------------------------------" + @echo "Visit https://github.com/aircrack-ng/rtl8812au for support/reporting issues" + @echo "or check for newer versions (branches) of these drivers. " + @echo "---------------------------------------------------------------------------" strip: $(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded diff --git a/include/rtl8192e_sreset.h b/include/rtl8192e_sreset.h index 78109ae..52df2ec 100644 --- a/include/rtl8192e_sreset.h +++ b/include/rtl8192e_sreset.h @@ -12,7 +12,7 @@ * more details. * *****************************************************************************/ -#ifndef _RTL88812A_SRESET_H_ +#ifndef _RTL8812A_SRESET_H_ #define _RTL8812A_SRESET_H_ #include diff --git a/include/rtl8812a_sreset.h b/include/rtl8812a_sreset.h index d4bbd58..13cbf5f 100644 --- a/include/rtl8812a_sreset.h +++ b/include/rtl8812a_sreset.h @@ -12,7 +12,7 @@ * more details. * *****************************************************************************/ -#ifndef _RTL88812A_SRESET_H_ +#ifndef _RTL8812A_SRESET_H_ #define _RTL8812A_SRESET_H_ #include