GNU Linux-libre 5.19-rc6-gnu
[releases.git] / drivers / usb / typec / ucsi / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 CFLAGS_trace.o                          := -I$(src)
3
4 obj-$(CONFIG_TYPEC_UCSI)                += typec_ucsi.o
5
6 typec_ucsi-y                            := ucsi.o
7
8 typec_ucsi-$(CONFIG_TRACING)            += trace.o
9
10 ifneq ($(CONFIG_POWER_SUPPLY),)
11         typec_ucsi-y                    += psy.o
12 endif
13
14 ifneq ($(CONFIG_TYPEC_DP_ALTMODE),)
15         typec_ucsi-y                    += displayport.o
16 endif
17
18 obj-$(CONFIG_UCSI_ACPI)                 += ucsi_acpi.o
19 obj-$(CONFIG_UCSI_CCG)                  += ucsi_ccg.o