| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
# |
| 3 |
# Makefile for linux/drivers/platform/x86/lenovo |
| 4 |
# Lenovo x86 Platform Specific Drivers |
| 5 |
# |
| 6 |
obj-$(CONFIG_IDEAPAD_LAPTOP) += ideapad-laptop.o |
| 7 |
obj-$(CONFIG_THINKPAD_LMI) += think-lmi.o |
| 8 |
obj-$(CONFIG_THINKPAD_ACPI) += thinkpad_acpi.o |
| 9 |
|
| 10 |
lenovo-target-$(CONFIG_LENOVO_WMI_HOTKEY_UTILITIES) += wmi-hotkey-utilities.o |
| 11 |
lenovo-target-$(CONFIG_LENOVO_YMC) += ymc.o |
| 12 |
lenovo-target-$(CONFIG_YOGABOOK) += yogabook.o |
| 13 |
lenovo-target-$(CONFIG_YT2_1380) += yoga-tab2-pro-1380-fastcharger.o |
| 14 |
lenovo-target-$(CONFIG_LENOVO_WMI_CAMERA) += wmi-camera.o |
| 15 |
lenovo-target-$(CONFIG_LENOVO_WMI_CAPDATA) += wmi-capdata.o |
| 16 |
lenovo-target-$(CONFIG_LENOVO_WMI_EVENTS) += wmi-events.o |
| 17 |
lenovo-target-$(CONFIG_LENOVO_WMI_HELPERS) += wmi-helpers.o |
| 18 |
lenovo-target-$(CONFIG_LENOVO_WMI_GAMEZONE) += wmi-gamezone.o |
| 19 |
lenovo-target-$(CONFIG_LENOVO_WMI_TUNING) += wmi-other.o |
| 20 |
|
| 21 |
# Add 'lenovo' prefix to each module listed in lenovo-target-* |
| 22 |
define LENOVO_OBJ_TARGET |
| 23 |
lenovo-$(1)-y := $(1).o |
| 24 |
obj-$(2) += lenovo-$(1).o |
| 25 |
endef |
| 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))) |