Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
60 lines
2.0 KiB
Makefile
60 lines
2.0 KiB
Makefile
###############################################################################
|
|
# Necessary Check
|
|
|
|
ifneq ($(KERNEL_OUT),)
|
|
ccflags-y += -imacros $(KERNEL_OUT)/include/generated/autoconf.h
|
|
endif
|
|
|
|
# Force build fail on modpost warning
|
|
KBUILD_MODPOST_FAIL_ON_WARNINGS := y
|
|
|
|
ccflags-y += \
|
|
-I$(srctree)/drivers/misc/mediatek/include/mt-plat \
|
|
-I$(srctree)/drivers/misc/mediatek/connectivity/common/common_main/include \
|
|
-I$(srctree)/drivers/misc/mediatek/connectivity/common/common_main/linux/include
|
|
|
|
ifeq ($(CONNAC_VER), 2_0)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/conninfra/include
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/conninfra/debug_utility
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/conninfra/debug_utility/include
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/conninfra/debug_utility/connsyslog
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/conninfra/debug_utility/coredump
|
|
endif
|
|
|
|
ifneq ($(CONFIG_MTK_CONNSYS_DEDICATED_LOG_PATH),)
|
|
ccflags-y += -DCONFIG_MTK_CONNSYS_DEDICATED_LOG_PATH
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/common/debug_utility
|
|
ccflags-y += -I$(src)/include
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MTK_CONN_LTE_IDC_SUPPORT),y)
|
|
ccflags-y += -DWMT_IDC_SUPPORT=1
|
|
else
|
|
ccflags-y += -DWMT_IDC_SUPPORT=0
|
|
endif
|
|
|
|
ifeq ($(CONNAC_VER), 2_0)
|
|
ccflags-y += -DCFG_ANDORID_CONNINFRA_SUPPORT=1
|
|
ccflags-y += -DCFG_ANDORID_CONNINFRA_COREDUMP_SUPPORT=1
|
|
else
|
|
ccflags-y += -DCFG_ANDORID_CONNINFRA_SUPPORT=0
|
|
ccflags-y += -DCFG_ANDORID_CONNINFRA_COREDUMP_SUPPORT=0
|
|
endif
|
|
|
|
ccflags-y += -D MTK_WCN_WMT_STP_EXP_SYMBOL_ABSTRACT
|
|
|
|
ccflags-y += -D CREATE_NODE_DYNAMIC=1
|
|
|
|
obj-y += $(MODULE_NAME).o
|
|
|
|
# Wi-Fi character device driver
|
|
$(MODULE_NAME)-objs += wmt_cdev_wifi.o
|
|
ifneq ($(CONFIG_MTK_CONNSYS_DEDICATED_LOG_PATH),)
|
|
$(MODULE_NAME)-objs += fw_log_wifi.o
|
|
$(MODULE_NAME)-objs += fw_log_ics.o
|
|
$(MODULE_NAME)-objs += wlan_ring.o
|
|
endif
|
|
ifeq ($(CONNAC_VER), 2_0)
|
|
$(MODULE_NAME)-objs += wifi_pwr_on.o
|
|
endif
|