mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
3c3fd1a145
Allow to build coresight-cti as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-cti by the Makefile - add an cti_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot - move cti_remove_conn_xrefs to cti_remove since all sysfs links have gone when system calls device_release. Reviewed-by Mike Leach <mike.leach@linaro.org> Tested-by: Mike Leach <mike.leach@linaro.org> Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20200928163513.70169-22-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24 lines
1.1 KiB
Makefile
24 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for CoreSight drivers.
|
|
#
|
|
obj-$(CONFIG_CORESIGHT) += coresight.o coresight-etm-perf.o \
|
|
coresight-platform.o coresight-sysfs.o
|
|
obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o
|
|
coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \
|
|
coresight-tmc-etr.o
|
|
obj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o
|
|
obj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o
|
|
obj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \
|
|
coresight-replicator.o
|
|
obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o
|
|
coresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \
|
|
coresight-etm3x-sysfs.o
|
|
obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o
|
|
coresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o
|
|
obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
|
|
obj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o
|
|
obj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o
|
|
obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
|
|
coresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \
|
|
coresight-cti-sysfs.o
|