Merge tag 'efi-fixes-for-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / hwtracing / coresight / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # Makefile for CoreSight drivers.
4 #
5
6 # Current W=1 warnings
7 subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
8 subdir-ccflags-y += -Wmissing-declarations
9 subdir-ccflags-y += -Wmissing-format-attribute
10 subdir-ccflags-y += -Wmissing-prototypes
11 subdir-ccflags-y += -Wold-style-definition
12 subdir-ccflags-y += -Wmissing-include-dirs
13 subdir-ccflags-y += -Wno-sign-compare
14 condflags := \
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)
23 subdir-ccflags-y += $(condflags)
24
25 obj-$(CONFIG_CORESIGHT) += coresight.o
26 coresight-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
30 obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o
31 coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \
32                       coresight-tmc-etr.o
33 obj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o
34 obj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o
35 obj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \
36                                            coresight-replicator.o
37 obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o
38 coresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \
39                      coresight-etm3x-sysfs.o
40 obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o
41 coresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \
42                         coresight-etm4x-cfg.o
43 obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
44 obj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o
45 obj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o
46 obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
47 obj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o
48 obj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o
49 obj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o
50 coresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \
51                    coresight-cti-sysfs.o
52 obj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o
53 obj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o