2021-06-09 06:13:30 +00:00
|
|
|
LOCAL_PATH := $(my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
# Enable DEBUG Level
|
|
|
|
DEBUG_LEVEL=1
|
|
|
|
ifeq ($(DEBUG_LEVEL),1)
|
|
|
|
LOCAL_CFLAGS += -DDEBUG_LEVEL1
|
|
|
|
endif
|
|
|
|
ifeq ($(DEBUG_LEVEL),2)
|
|
|
|
LOCAL_CFLAGS += -DDEBUG_LEVEL1
|
|
|
|
LOCAL_CFLAGS += -DDEBUG_LEVEL2
|
|
|
|
endif
|
|
|
|
# Enable STA mode support
|
|
|
|
CONFIG_STA_SUPPORT=y
|
|
|
|
ifeq ($(CONFIG_STA_SUPPORT),y)
|
|
|
|
LOCAL_CFLAGS += -DSTA_SUPPORT
|
|
|
|
endif
|
|
|
|
# Enable uAP mode support
|
|
|
|
CONFIG_UAP_SUPPORT=y
|
|
|
|
ifeq ($(CONFIG_UAP_SUPPORT),y)
|
|
|
|
LOCAL_CFLAGS += -DUAP_SUPPORT
|
|
|
|
endif
|
|
|
|
CONFIG_WIFI_DIRECT_SUPPORT=y
|
|
|
|
ifeq ($(CONFIG_WIFI_DIRECT_SUPPORT), y)
|
|
|
|
LOCAL_CFLAGS += -DWIFI_DIRECT_SUPPORT
|
|
|
|
endif
|
|
|
|
|
|
|
|
# if 64bit Android is used (e.g. PXA1928)
|
|
|
|
# Please turn on following compiler flag
|
2021-12-17 09:18:29 +00:00
|
|
|
CONFIG_USERSPACE_32BIT_OVER_KERNEL_64BIT=n
|
2021-06-09 06:13:30 +00:00
|
|
|
ifeq ($(CONFIG_USERSPACE_32BIT_OVER_KERNEL_64BIT), y)
|
|
|
|
LOCAL_CFLAGS += -DUSERSPACE_32BIT_OVER_KERNEL_64BIT
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_MODULE := mlanutl
|
|
|
|
OBJS = mlanutl.c
|
|
|
|
LOCAL_SRC_FILES := $(OBJS)
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|