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 258e264c52STingwei Zhangobj-$(CONFIG_CORESIGHT) += coresight.o 268e264c52STingwei Zhangcoresight-y := coresight-core.o coresight-etm-perf.o coresight-platform.o \ 277fdc9bb2SMike Leach coresight-sysfs.o coresight-syscfg.o coresight-config.o \ 284b7e6262SLinu Cherian coresight-cfg-preload.o coresight-cfg-afdo.o coresight-cfg-pstop.o \ 29338a588eSMike Leach coresight-syscfg-configfs.o coresight-trace-id.o 30ecfbf09bSKim Phillipsobj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o 31ecfbf09bSKim Phillipscoresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \ 326c6ed1e2SMathieu Poirier coresight-tmc-etr.o 3301081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o 3401081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o 3501081f5aSMathieu Poirierobj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \ 3601081f5aSMathieu Poirier coresight-replicator.o 3797fe626cSKim Phillipsobj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o 3897fe626cSKim Phillipscoresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \ 3937fbbdbdSMathieu Poirier coresight-etm3x-sysfs.o 4022a550a3SKim Phillipsobj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o 41810ac401SMike Leachcoresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \ 42810ac401SMike Leach coresight-etm4x-cfg.o 43237483aaSPratik Patelobj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o 442227b7c7SLeo Yanobj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o 45fcacb5c1SSuzuki K Pouloseobj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o 463c3fd1a1STingwei Zhangobj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o 473fbf7f01SAnshuman Khandualobj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o 48b3c71626SMao Jinlongobj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o 495b791662SMao Jinlongobj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o 503c3fd1a1STingwei Zhangcoresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \ 51835d722bSMike Leach coresight-cti-sysfs.o 5206f5c292SQi Liuobj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o 539d3ba0b6SHao Zhangobj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o 54*f78d206fSJie Ganobj-$(CONFIG_CORESIGHT_CTCU) += coresight-ctcu.o 55*f78d206fSJie Gancoresight-ctcu-y := coresight-ctcu-core.o 56