kernel_samsung_a34x-permissive/drivers/input/keyboard/mediatek/Makefile
2024-04-28 15:51:13 +02:00

33 lines
1.2 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 (y, $(filter y, $(CONFIG_MACH_MT6761)))
MTK_KPD_PLATFORM:=mt6765
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6771)))
MTK_KPD_PLATFORM:=mt6771
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6779)))
MTK_KPD_PLATFORM:=mt6779
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6781)))
MTK_KPD_PLATFORM:=mt6781
else ifeq (y, $(filter y, $(CONFIG_MACH_MT6893)))
MTK_KPD_PLATFORM:=mt6893
else
MTK_KPD_PLATFORM:=$(CONFIG_MTK_PLATFORM)
endif
subdir-ccflags-y += -Werror -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_KPD_PLATFORM)/include/
subdir-ccflags-y += -I$(srctree)/drivers/input/keyboard/mediatek/$(MTK_KPD_PLATFORM)/
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/
obj-$(CONFIG_KEYBOARD_MTK) := kpd.o
obj-y += $(subst ",,$(MTK_KPD_PLATFORM))/