File Index
Files and directories
Sign in
FILE

Makefile

File preview with syntax highlighting.

linux-6.19.14/drivers/platform/x86/lenovo/Makefile MAKEFILE
 1# SPDX-License-Identifier: GPL-2.0
 2#
 3# Makefile for linux/drivers/platform/x86/lenovo
 4# Lenovo x86 Platform Specific Drivers
 5#
 6obj-$(CONFIG_IDEAPAD_LAPTOP)	+= ideapad-laptop.o
 7obj-$(CONFIG_THINKPAD_LMI)	+= think-lmi.o
 8obj-$(CONFIG_THINKPAD_ACPI)	+= thinkpad_acpi.o
 9
10lenovo-target-$(CONFIG_LENOVO_WMI_HOTKEY_UTILITIES)	+= wmi-hotkey-utilities.o
11lenovo-target-$(CONFIG_LENOVO_YMC)	+= ymc.o
12lenovo-target-$(CONFIG_YOGABOOK)	+= yogabook.o
13lenovo-target-$(CONFIG_YT2_1380)	+= yoga-tab2-pro-1380-fastcharger.o
14lenovo-target-$(CONFIG_LENOVO_WMI_CAMERA)	+= wmi-camera.o
15lenovo-target-$(CONFIG_LENOVO_WMI_DATA01)	+= wmi-capdata01.o
16lenovo-target-$(CONFIG_LENOVO_WMI_EVENTS)	+= wmi-events.o
17lenovo-target-$(CONFIG_LENOVO_WMI_HELPERS)	+= wmi-helpers.o
18lenovo-target-$(CONFIG_LENOVO_WMI_GAMEZONE)	+= wmi-gamezone.o
19lenovo-target-$(CONFIG_LENOVO_WMI_TUNING)	+= wmi-other.o
20
21# Add 'lenovo' prefix to each module listed in lenovo-target-*
22define LENOVO_OBJ_TARGET
23lenovo-$(1)-y := $(1).o
24obj-$(2) += lenovo-$(1).o
25endef
26
27$(foreach target, $(basename $(lenovo-target-y)), $(eval $(call LENOVO_OBJ_TARGET,$(target),y)))
28$(foreach target, $(basename $(lenovo-target-m)), $(eval $(call LENOVO_OBJ_TARGET,$(target),m)))
~/ Read-only file preview.