mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-30 17:02:28 +00:00
Makefile: add support for Android / Nethunter ARM64 devices
This commit is contained in:
parent
ee01e58834
commit
e95f32d194
16
Makefile
16
Makefile
@ -7,6 +7,10 @@ EXTRA_CFLAGS += -Wextra
|
|||||||
#EXTRA_CFLAGS += -pedantic
|
#EXTRA_CFLAGS += -pedantic
|
||||||
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
|
#EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
|
||||||
|
|
||||||
|
#EXTRA_CFLAGS += -Wno-tautological-compare
|
||||||
|
#EXTRA_CFLAGS += -Wno-incompatible-pointer-types
|
||||||
|
#EXTRA_CFLAGS += -Wno-switch
|
||||||
|
EXTRA_CFLAGS += -Wno-cast-function-type
|
||||||
EXTRA_CFLAGS += -Wno-unused-variable
|
EXTRA_CFLAGS += -Wno-unused-variable
|
||||||
EXTRA_CFLAGS += -Wno-unused-value
|
EXTRA_CFLAGS += -Wno-unused-value
|
||||||
EXTRA_CFLAGS += -Wno-unused-label
|
EXTRA_CFLAGS += -Wno-unused-label
|
||||||
@ -809,6 +813,16 @@ KVER:= 3.1.10
|
|||||||
KSRC:= /usr/src/Mstar_kernel/3.1.10/
|
KSRC:= /usr/src/Mstar_kernel/3.1.10/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_PLATFORM_ANDROID_ARM64), y)
|
||||||
|
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)
|
ifeq ($(CONFIG_PLATFORM_ANDROID_X86), y)
|
||||||
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||||
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
|
||||||
@ -1659,7 +1673,7 @@ export CONFIG_RTL8821AU = m
|
|||||||
all: modules
|
all: modules
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
|
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) O="$(KBUILD_OUTPUT)" modules
|
||||||
|
|
||||||
strip:
|
strip:
|
||||||
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
||||||
|
Loading…
Reference in New Issue
Block a user