| 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 |
CFLAGS_coresight-stm.o := -D__DISABLE_TRACE_MMIO__ |
| 26 |
|
| 27 |
obj-$(CONFIG_CORESIGHT) += coresight.o |
| 28 |
coresight-y := coresight-core.o coresight-etm-perf.o coresight-platform.o \ |
| 29 |
coresight-sysfs.o coresight-syscfg.o coresight-config.o \ |
| 30 |
coresight-cfg-preload.o coresight-cfg-afdo.o coresight-cfg-pstop.o \ |
| 31 |
coresight-syscfg-configfs.o coresight-trace-id.o |
| 32 |
obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o |
| 33 |
coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \ |
| 34 |
coresight-tmc-etr.o |
| 35 |
obj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o |
| 36 |
obj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o |
| 37 |
obj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \ |
| 38 |
coresight-replicator.o |
| 39 |
obj-$(CONFIG_CORESIGHT_TNOC) += coresight-tnoc.o |
| 40 |
obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o |
| 41 |
coresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \ |
| 42 |
coresight-etm3x-sysfs.o |
| 43 |
obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o |
| 44 |
coresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \ |
| 45 |
coresight-etm4x-cfg.o |
| 46 |
obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o |
| 47 |
obj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o |
| 48 |
obj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o |
| 49 |
obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o |
| 50 |
obj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o |
| 51 |
obj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o |
| 52 |
obj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o |
| 53 |
coresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \ |
| 54 |
coresight-cti-sysfs.o |
| 55 |
obj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o |
| 56 |
obj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o |
| 57 |
obj-$(CONFIG_CORESIGHT_CTCU) += coresight-ctcu.o |
| 58 |
coresight-ctcu-y := coresight-ctcu-core.o |
| 59 |
obj-$(CONFIG_CORESIGHT_KUNIT_TESTS) += coresight-kunit-tests.o |