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)
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2016 MediaTek Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
# See http://www.gnu.org/licenses/gpl-2.0.html for more details.
|
|
#
|
|
|
|
ifeq ($(CONFIG_MACH_MT6761),y)
|
|
AUDIO_PLATFORM := mt6765
|
|
else ifeq ($(CONFIG_MACH_MT6893),y)
|
|
AUDIO_PLATFORM := mt6885
|
|
else ifeq ($(CONFIG_MACH_MT6781),y)
|
|
AUDIO_PLATFORM := mt6785
|
|
else
|
|
AUDIO_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
|
|
endif
|
|
|
|
ifneq ($(filter y,$(CONFIG_MTK_VOW_SUPPORT)),)
|
|
ifneq (,$(filter $(CONFIG_MTK_PLATFORM), "mt6785" "mt6771" "mt6768"))
|
|
CONFIG_MTK_VOW_IPI_SUPPORT:= y
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(filter y,$(CONFIG_MTK_TINYSYS_SCP_SUPPORT)),)
|
|
ifneq ($(filter y,$(CONFIG_MTK_VOW_IPI_SUPPORT) $(CONFIG_SND_SOC_MTK_SCP_SMARTPA)),)
|
|
subdir-ccflags-y += -DCONFIG_MTK_AUDIO_CM4_SUPPORT
|
|
CONFIG_MTK_AUDIO_CM4_SUPPORT := y
|
|
endif
|
|
|
|
ifneq ($(filter y,$(CONFIG_SND_SOC_MTK_SCP_SMARTPA)),)
|
|
subdir-ccflags-y += -DCONFIG_MTK_AUDIO_CM4_DMA_SUPPORT
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(filter y, $(CONFIG_MTK_AUDIO_CM4_SUPPORT) $(CONFIG_MTK_AUDIODSP_SUPPORT)),)
|
|
obj-y += $(subst ",,$(AUDIO_PLATFORM))/
|
|
obj-y += common/
|
|
else
|
|
# avoid build error
|
|
obj-y += audio_ipi_dummy.o
|
|
endif
|
|
|