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)
37 lines
1.3 KiB
Makefile
37 lines
1.3 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.
|
|
#
|
|
|
|
# separate mt6833 from family mt6853
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6833)))
|
|
PLATFORM := mt6833
|
|
else
|
|
PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
|
|
endif
|
|
|
|
# mt6761 and mt6765 co-folder
|
|
ifeq ($(PLATFORM),mt6761)
|
|
PLATFORM := mt6765
|
|
endif
|
|
|
|
ifeq ($(CONFIG_SINGLE_PANEL_OUTPUT),y)
|
|
else ifneq ($(wildcard $(srctree)/drivers/misc/mediatek/ext_disp/$(PLATFORM)/),)
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6765) $(CONFIG_MACH_MT6768) $(CONFIG_MACH_MT6771) $(CONFIG_MACH_MT6785) $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT8168) $(CONFIG_MACH_MT8167) $(CONFIG_MACH_MT6893) $(CONFIG_MACH_MT6833)))
|
|
obj-y += $(PLATFORM)/
|
|
endif
|
|
ifeq (y, $(filter y, $(CONFIG_MACH_MT6739) $(CONFIG_MACH_MT6768) $(CONFIG_MACH_MT6785) $(CONFIG_MACH_MT6885) $(CONFIG_MACH_MT8168) $(CONFIG_MACH_MT8167) $(CONFIG_MACH_MT6893) $(CONFIG_MACH_MT6833)))
|
|
obj-y += common/
|
|
endif
|
|
else
|
|
obj-y += dummy/
|
|
endif
|