xref: /linux/drivers/hwtracing/coresight/Makefile (revision 9c93c0b44be36fd5267fb79ae33453f989fbe909)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for CoreSight drivers.
4#
5
6# Current W=1 warnings
7subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
8subdir-ccflags-y += -Wmissing-declarations
9subdir-ccflags-y += -Wmissing-format-attribute
10subdir-ccflags-y += -Wmissing-prototypes
11subdir-ccflags-y += -Wold-style-definition
12subdir-ccflags-y += -Wmissing-include-dirs
13subdir-ccflags-y += -Wno-sign-compare
14condflags := \
15	$(call cc-option, -Wrestrict)				\
16	$(call cc-option, -Wunused-but-set-variable)		\
17	$(call cc-option, -Wunused-const-variable)		\
18	$(call cc-option, -Wpacked-not-aligned)			\
19	$(call cc-option, -Wformat-overflow)			\
20	$(call cc-option, -Wformat-truncation)			\
21	$(call cc-option, -Wstringop-overflow)			\
22	$(call cc-option, -Wstringop-truncation)
23subdir-ccflags-y += $(condflags)
24
25obj-$(CONFIG_CORESIGHT) += coresight.o
26coresight-y := coresight-core.o  coresight-etm-perf.o coresight-platform.o \
27		coresight-sysfs.o coresight-syscfg.o coresight-config.o \
28		coresight-cfg-preload.o coresight-cfg-afdo.o \
29		coresight-syscfg-configfs.o coresight-trace-id.o
30obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o
31coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \
32		      coresight-tmc-etr.o
33obj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o
34obj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o
35obj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \
36					   coresight-replicator.o
37obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o
38coresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \
39		     coresight-etm3x-sysfs.o
40obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o
41coresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \
42			coresight-etm4x-cfg.o
43obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
44obj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o
45obj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o
46obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
47obj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o
48obj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o
49obj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o
50coresight-cti-y := coresight-cti-core.o	coresight-cti-platform.o \
51		   coresight-cti-sysfs.o
52obj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o
53obj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o
54