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)
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# Bluetooth character device driver
|
|
|
|
# Force build fail on modpost warning
|
|
KBUILD_MODPOST_FAIL_ON_WARNINGS := y
|
|
|
|
ccflags-y += -D FW_LOG_DEFAULT_ON=0
|
|
|
|
ccflags-y += -D MTK_WCN_WMT_STP_EXP_SYMBOL_ABSTRACT
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat
|
|
|
|
ifeq ($(CONFIG_MTK_CONN_LTE_IDC_SUPPORT),y)
|
|
ccflags-y += -D WMT_IDC_SUPPORT=1
|
|
else
|
|
ccflags-y += -D WMT_IDC_SUPPORT=0
|
|
endif
|
|
|
|
###############################################################################
|
|
# To include BT driver dependent header file
|
|
|
|
WMT_SRC_FOLDER := $(srctree)/drivers/misc/mediatek/connectivity/common
|
|
ccflags-y += -I$(WMT_SRC_FOLDER)/common_main/include
|
|
ccflags-y += -I$(WMT_SRC_FOLDER)/common_main/linux/include
|
|
ifneq ($(CONFIG_MTK_CONNSYS_DEDICATED_LOG_PATH),)
|
|
ccflags-y += -I$(WMT_SRC_FOLDER)/debug_utility
|
|
endif
|
|
ccflags-y += -I$(src)/include
|
|
|
|
###############################################################################
|
|
|
|
MODULE_NAME := bt_drv
|
|
obj-y += $(MODULE_NAME).o
|
|
|
|
ccflags-y += -D CREATE_NODE_DYNAMIC=1
|
|
|
|
$(MODULE_NAME)-objs += stp_chrdev_bt.o
|
|
$(MODULE_NAME)-objs += btmtk_dbg.o btmtk_dbg_tp_evt_if.o
|
|
ifneq ($(CONFIG_MTK_CONNSYS_DEDICATED_LOG_PATH),)
|
|
$(MODULE_NAME)-objs += fw_log_bt.o
|
|
endif
|