Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
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)
2026-09-12 13:36:46 +00:00

43 lines
1.8 KiB
Makefile

#
# Makefile for the kernel flashlight device drivers.
#
flashlight-y := flashlight-core.o
flashlight-y += flashlight-device.o
obj-$(CONFIG_MTK_FLASHLIGHT) += flashlight.o
obj-$(CONFIG_MTK_V4L2_FLASHLIGHT) += mtk-composite.o
obj-$(CONFIG_MTK_FLASHLIGHT_LED191) += flashlights-led191.o
obj-$(CONFIG_MTK_FLASHLIGHT_LM3642) += flashlights-lm3642.o
obj-$(CONFIG_MTK_FLASHLIGHT_LM3643) += flashlights-lm3643.o
obj-$(CONFIG_MTK_FLASHLIGHT_LM3644) += flashlights-lm3644.o
obj-$(CONFIG_MTK_FLASHLIGHT_RT4505) += flashlights-rt4505.o
obj-$(CONFIG_MTK_FLASHLIGHT_RT5081) += flashlights-rt5081.o
obj-$(CONFIG_MTK_FLASHLIGHT_MT6336) += flashlights-mt6336.o
obj-$(CONFIG_MTK_FLASHLIGHT_MT6370) += flashlights-mt6370.o
obj-$(CONFIG_MTK_FLASHLIGHT_MT6360) += flashlights-mt6360.o
obj-$(CONFIG_MTK_FLASHLIGHT_DUMMY) += flashlights-dummy.o
obj-$(CONFIG_MTK_FLASHLIGHT_DUMMY_GPIO) += flashlights-dummy-gpio.o
ccflags-$(CONFIG_MTK_FLASHLIGHT_DEBUG) := -DDEBUG
ccflags-$(CONFIG_MTK_FLASHLIGHT_LED191) += -DCONFIG_MTK_FLASHLIGHT_LED191
ccflags-$(CONFIG_MTK_FLASHLIGHT_PT) += -DCONFIG_MTK_FLASHLIGHT_PT
ccflags-$(CONFIG_MTK_FLASHLIGHT_PT_STRICT) += -DCONFIG_MTK_FLASHLIGHT_PT_STRICT
ccflags-$(CONFIG_MTK_FLASHLIGHT_DLPT) += -DCONFIG_MTK_FLASHLIGHT_DLPT
MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
MTK_PROJECT := $(subst ",,$(CONFIG_ARCH_MTK_PROJECT))
MTK_CUSTOM_PATH := $(srctree)/drivers/misc/mediatek
ccflags-y += -D$(MTK_PLATFORM) -D$(MTK_PROJECT)
subdir-ccflags-${CONFIG_MACH_MT6833} += \
-I$(MTK_CUSTOM_PATH)/include/mt-plat/mt6833/include/mach
subdir-ccflags-y += \
-I$(MTK_CUSTOM_PATH)/include/mt-plat \
-I$(MTK_CUSTOM_PATH)/include/mt-plat/$(MTK_PLATFORM)/include/mach \
-I$(MTK_CUSTOM_PATH)/pmic/include \
-I$(MTK_CUSTOM_PATH)/pmic