xref: /openbmc/linux/drivers/usb/typec/ucsi/Makefile (revision df0383ff)
1# SPDX-License-Identifier: GPL-2.0
2CFLAGS_trace.o				:= -I$(src)
3
4obj-$(CONFIG_TYPEC_UCSI)		+= typec_ucsi.o
5
6typec_ucsi-y				:= ucsi.o
7
8typec_ucsi-$(CONFIG_DEBUG_FS)		+= debugfs.o
9
10typec_ucsi-$(CONFIG_TRACING)		+= trace.o
11
12ifneq ($(CONFIG_POWER_SUPPLY),)
13	typec_ucsi-y			+= psy.o
14endif
15
16ifneq ($(CONFIG_TYPEC_DP_ALTMODE),)
17	typec_ucsi-y			+= displayport.o
18endif
19
20obj-$(CONFIG_UCSI_ACPI)			+= ucsi_acpi.o
21obj-$(CONFIG_UCSI_CCG)			+= ucsi_ccg.o
22obj-$(CONFIG_UCSI_STM32G0)		+= ucsi_stm32g0.o
23obj-$(CONFIG_UCSI_PMIC_GLINK)		+= ucsi_glink.o
24