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)
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2015 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 the
|
|
# GNU General Public License for more details.
|
|
#
|
|
|
|
ifeq ($(CONFIG_MTK_GCOV_KERNEL),y)
|
|
GCOV_PROFILE := y
|
|
endif
|
|
|
|
# platform driver
|
|
snd-soc-mtk-common-objs := mtk-afe-platform-driver.o mtk-afe-fe-dai.o
|
|
|
|
obj-$(CONFIG_MTK_ION) += mtk-mmap-ion.o
|
|
obj-$(CONFIG_SND_SOC_MEDIATEK) += snd-soc-mtk-common.o
|
|
obj-$(CONFIG_SND_SOC_MTK_SRAM) += mtk-sram-manager.o
|
|
|
|
snd-soc-mtk-sp-common-objs := mtk-sp-pcm-ops.o mtk-afe-debug.o mtk-sp-spk-amp.o
|
|
obj-$(CONFIG_SND_SOC_MTK_SMART_PHONE) += snd-soc-mtk-sp-common.o mtk-usip.o
|
|
|
|
obj-$(CONFIG_SND_SOC_MTK_BTCVSD) += mtk-btcvsd.o
|
|
|
|
subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion
|
|
subdir-ccflags-y += -I$(srctree)/drivers/staging/android/ion/mtk
|
|
|
|
ifeq ($(CONFIG_SND_SOC_MTK_AUDIO_DSP),y)
|
|
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/audio_ipi/common/framework/
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MTK_AUDIODSP_SUPPORT),y)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/adsp/$(MTK_PLATFORM)
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MTK_TINYSYS_SCP_SUPPORT),y)
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/scp/$(MTK_PLATFORM)
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SND_SOC_AW87339),y)
|
|
subdir-ccflags-y += -I$(srctree)/sound/soc/codecs/aw87339/$(MTK_PROJECT)/
|
|
endif
|