54 lines · plain
1# SPDX-License-Identifier: GPL-2.02#3# Makefile for CoreSight drivers.4#5 6# Current W=1 warnings7subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter8subdir-ccflags-y += -Wmissing-declarations9subdir-ccflags-y += -Wmissing-format-attribute10subdir-ccflags-y += -Wmissing-prototypes11subdir-ccflags-y += -Wold-style-definition12subdir-ccflags-y += -Wmissing-include-dirs13subdir-ccflags-y += -Wno-sign-compare14condflags := \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.o26coresight-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.o30obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o31coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \32 coresight-tmc-etr.o33obj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o34obj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o35obj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \36 coresight-replicator.o37obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o38coresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \39 coresight-etm3x-sysfs.o40obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o41coresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \42 coresight-etm4x-cfg.o43obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o44obj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o45obj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o46obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o47obj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o48obj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o49obj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o50coresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \51 coresight-cti-sysfs.o52obj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o53obj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o54