xref: /linux/drivers/hwtracing/coresight/Makefile (revision c26f4fbd58375bd6ef74f95eb73d61762ad97c59)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
201081f5aSMathieu Poirier#
301081f5aSMathieu Poirier# Makefile for CoreSight drivers.
401081f5aSMathieu Poirier#
5d999c7ddSJames Clark
6d999c7ddSJames Clark# Current W=1 warnings
7d999c7ddSJames Clarksubdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
8d999c7ddSJames Clarksubdir-ccflags-y += -Wmissing-declarations
9d999c7ddSJames Clarksubdir-ccflags-y += -Wmissing-format-attribute
10d999c7ddSJames Clarksubdir-ccflags-y += -Wmissing-prototypes
11d999c7ddSJames Clarksubdir-ccflags-y += -Wold-style-definition
12d999c7ddSJames Clarksubdir-ccflags-y += -Wmissing-include-dirs
13d999c7ddSJames Clarksubdir-ccflags-y += -Wno-sign-compare
14d999c7ddSJames Clarkcondflags := \
15d999c7ddSJames Clark	$(call cc-option, -Wrestrict)				\
16d999c7ddSJames Clark	$(call cc-option, -Wunused-but-set-variable)		\
17d999c7ddSJames Clark	$(call cc-option, -Wunused-const-variable)		\
18d999c7ddSJames Clark	$(call cc-option, -Wpacked-not-aligned)			\
19d999c7ddSJames Clark	$(call cc-option, -Wformat-overflow)			\
20d999c7ddSJames Clark	$(call cc-option, -Wformat-truncation)			\
21d999c7ddSJames Clark	$(call cc-option, -Wstringop-overflow)			\
22d999c7ddSJames Clark	$(call cc-option, -Wstringop-truncation)
23d999c7ddSJames Clarksubdir-ccflags-y += $(condflags)
24d999c7ddSJames Clark
25*798f5890SMao JinlongCFLAGS_coresight-stm.o := -D__DISABLE_TRACE_MMIO__
26*798f5890SMao Jinlong
278e264c52STingwei Zhangobj-$(CONFIG_CORESIGHT) += coresight.o
288e264c52STingwei Zhangcoresight-y := coresight-core.o  coresight-etm-perf.o coresight-platform.o \
297fdc9bb2SMike Leach		coresight-sysfs.o coresight-syscfg.o coresight-config.o \
304b7e6262SLinu Cherian		coresight-cfg-preload.o coresight-cfg-afdo.o coresight-cfg-pstop.o \
31338a588eSMike Leach		coresight-syscfg-configfs.o coresight-trace-id.o
32ecfbf09bSKim Phillipsobj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o
33ecfbf09bSKim Phillipscoresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \
346c6ed1e2SMathieu Poirier		      coresight-tmc-etr.o
3501081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o
3601081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o
3701081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \
3801081f5aSMathieu Poirier					   coresight-replicator.o
3997fe626cSKim Phillipsobj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o
4097fe626cSKim Phillipscoresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \
4137fbbdbdSMathieu Poirier		     coresight-etm3x-sysfs.o
4222a550a3SKim Phillipsobj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o
43810ac401SMike Leachcoresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \
44810ac401SMike Leach			coresight-etm4x-cfg.o
45237483aaSPratik Patelobj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
462227b7c7SLeo Yanobj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o
47fcacb5c1SSuzuki K Pouloseobj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o
483c3fd1a1STingwei Zhangobj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
493fbf7f01SAnshuman Khandualobj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o
50b3c71626SMao Jinlongobj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o
515b791662SMao Jinlongobj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o
523c3fd1a1STingwei Zhangcoresight-cti-y := coresight-cti-core.o	coresight-cti-platform.o \
53835d722bSMike Leach		   coresight-cti-sysfs.o
5406f5c292SQi Liuobj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o
559d3ba0b6SHao Zhangobj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o
56f78d206fSJie Ganobj-$(CONFIG_CORESIGHT_CTCU) += coresight-ctcu.o
57f78d206fSJie Gancoresight-ctcu-y := coresight-ctcu-core.o
58b104a941SJames Clarkobj-$(CONFIG_CORESIGHT_KUNIT_TESTS) += coresight-kunit-tests.o
59