ifeq ($(CONFIG_PLATFORM_AML_S905), y)
|
EXTRA_CFLAGS += -DCONFIG_PLATFORM_AML_S905
|
EXTRA_CFLAGS += -DCONFIG_PLATFORM_AML_S905_V2
|
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
|
EXTRA_CFLAGS += -DCONFIG_RADIO_WORK
|
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
|
ifeq ($(shell test $(CONFIG_RTW_ANDROID) -ge 11; echo $$?), 0)
|
EXTRA_CFLAGS += -DCONFIG_IFACE_NUMBER=3
|
endif
|
|
# default setting for Android
|
# config CONFIG_RTW_ANDROID in main Makefile
|
|
ARCH ?= arm64
|
CROSS_COMPILE ?= /home/Jimmy/amlogic_905x4+8852AS/skw-rtk/cross_compile_toolchain/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
|
ifndef KSRC
|
#KSRC := /home/sd4ce/sdk/amlogic_905x4_8852ae/kernel_headers
|
#KSRC += O=/home/sd4ce/sdk/amlogic_905x4_8852ae/KERNEL_OBJ
|
KSRC := $(KERNEL_SRC)
|
endif
|
|
#Add by amlogic
|
EXTRA_CFLAGS += -w -Wno-return-type
|
EXTRA_CFLAGS += $(foreach d,$(shell test -d $(KERNEL_SRC)/$(M) && find $(shell cd $(KERNEL_SRC)/$(M);pwd) -type d),$(shell echo " -I$(d)"))
|
ifeq ($(CONFIG_PCI_HCI), y)
|
EXTRA_CFLAGS += -DUSE_AML_PCIE_TEE_MEM
|
endif
|
|
ifeq ($(CONFIG_PCI_HCI), y)
|
EXTRA_CFLAGS += -DCONFIG_PLATFORM_OPS
|
_PLATFORM_FILES := platform/platform_linux_pc_pci.o
|
OBJS += $(_PLATFORM_FILES)
|
# Core Config
|
# CONFIG_RTKM - n/m/y for not support / standalone / built-in
|
#CONFIG_RTKM = m
|
CONFIG_MSG_NUM = 128
|
EXTRA_CFLAGS += -DCONFIG_MSG_NUM=$(CONFIG_MSG_NUM)
|
EXTRA_CFLAGS += -DCONFIG_TX_SKB_ORPHAN
|
# PHL Config
|
#EXTRA_CFLAGS += -DRTW_WKARD_98D_RXTAG
|
endif
|
|
ifeq ($(CONFIG_SDIO_HCI), y)
|
ifeq ($(CONFIG_RTL8852B), y)
|
EXTRA_CFLAGS += -DRTW_XMIT_THREAD_HIGH_PRIORITY
|
EXTRA_CFLAGS += -DRTW_XMIT_THREAD_CB_HIGH_PRIORITY
|
EXTRA_CFLAGS += -DRTW_RECV_THREAD_HIGH_PRIORITY
|
EXTRA_CFLAGS += -DSCANQUEUE_LIFETIME=10000 #10s
|
endif
|
ifeq ($(CONFIG_RTL8852BP), y)
|
EXTRA_CFLAGS += -DRTW_XMIT_THREAD_HIGH_PRIORITY
|
EXTRA_CFLAGS += -DRTW_XMIT_THREAD_CB_HIGH_PRIORITY
|
EXTRA_CFLAGS += -DRTW_RECV_THREAD_HIGH_PRIORITY
|
EXTRA_CFLAGS += -DSCANQUEUE_LIFETIME=10000 #10s
|
endif
|
endif
|
|
ifeq ($(CONFIG_RTL8852B), y)
|
ifeq ($(CONFIG_SDIO_HCI), y)
|
CONFIG_RTL8852BS ?= m
|
USER_MODULE_NAME := 8852bs
|
endif
|
ifeq ($(CONFIG_PCI_HCI), y)
|
CONFIG_RTL8852BE ?= m
|
USER_MODULE_NAME := 8852be
|
endif
|
endif
|
_PLATFORM_FILES += platform/platform_ops.o
|
endif
|