Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for CoreSight drivers.
  4. #
  5. # Current W=1 warnings
  6. subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
  7. subdir-ccflags-y += -Wmissing-declarations
  8. subdir-ccflags-y += -Wmissing-format-attribute
  9. subdir-ccflags-y += -Wmissing-prototypes
  10. subdir-ccflags-y += -Wold-style-definition
  11. subdir-ccflags-y += -Wmissing-include-dirs
  12. subdir-ccflags-y += -Wno-sign-compare
  13. condflags := \
  14. $(call cc-option, -Wrestrict) \
  15. $(call cc-option, -Wunused-but-set-variable) \
  16. $(call cc-option, -Wunused-const-variable) \
  17. $(call cc-option, -Wpacked-not-aligned) \
  18. $(call cc-option, -Wformat-overflow) \
  19. $(call cc-option, -Wformat-truncation) \
  20. $(call cc-option, -Wstringop-overflow) \
  21. $(call cc-option, -Wstringop-truncation)
  22. subdir-ccflags-y += $(condflags)
  23. obj-$(CONFIG_CORESIGHT) += coresight.o
  24. coresight-y := coresight-core.o coresight-etm-perf.o coresight-platform.o \
  25. coresight-sysfs.o coresight-syscfg.o coresight-config.o \
  26. coresight-cfg-preload.o coresight-cfg-afdo.o \
  27. coresight-syscfg-configfs.o coresight-trace-id.o
  28. obj-$(CONFIG_CORESIGHT_LINK_AND_SINK_TMC) += coresight-tmc.o
  29. coresight-tmc-y := coresight-tmc-core.o coresight-tmc-etf.o \
  30. coresight-tmc-etr.o
  31. obj-$(CONFIG_CORESIGHT_SINK_TPIU) += coresight-tpiu.o
  32. obj-$(CONFIG_CORESIGHT_SINK_ETBV10) += coresight-etb10.o
  33. obj-$(CONFIG_CORESIGHT_LINKS_AND_SINKS) += coresight-funnel.o \
  34. coresight-replicator.o
  35. obj-$(CONFIG_CORESIGHT_SOURCE_ETM3X) += coresight-etm3x.o
  36. coresight-etm3x-y := coresight-etm3x-core.o coresight-etm-cp14.o \
  37. coresight-etm3x-sysfs.o
  38. obj-$(CONFIG_CORESIGHT_SOURCE_ETM4X) += coresight-etm4x.o
  39. coresight-etm4x-y := coresight-etm4x-core.o coresight-etm4x-sysfs.o \
  40. coresight-etm4x-cfg.o
  41. obj-$(CONFIG_CORESIGHT_STM) += coresight-stm.o
  42. obj-$(CONFIG_CORESIGHT_CPU_DEBUG) += coresight-cpu-debug.o
  43. obj-$(CONFIG_CORESIGHT_CATU) += coresight-catu.o
  44. obj-$(CONFIG_CORESIGHT_CTI) += coresight-cti.o
  45. obj-$(CONFIG_CORESIGHT_TRBE) += coresight-trbe.o
  46. obj-$(CONFIG_CORESIGHT_TPDM) += coresight-tpdm.o
  47. obj-$(CONFIG_CORESIGHT_TPDA) += coresight-tpda.o
  48. coresight-cti-y := coresight-cti-core.o coresight-cti-platform.o \
  49. coresight-cti-sysfs.o
  50. obj-$(CONFIG_ULTRASOC_SMB) += ultrasoc-smb.o
  51. obj-$(CONFIG_CORESIGHT_DUMMY) += coresight-dummy.o