diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in index ee308a85df..65aba2e9fe 100644 --- a/package/linux-tools/linux-tool-perf.mk.in +++ b/package/linux-tools/linux-tool-perf.mk.in @@ -120,6 +120,13 @@ else PERF_MAKE_FLAGS += NO_LZMA=1 endif +ifeq ($(BR2_PACKAGE_OPENCSD),y) +PERF_DEPENDENCIES += opencsd +PERF_MAKE_FLAGS += CORESIGHT=1 +# There is no "else CORESIGHT=0" case, because "perf" Makefile uses +# bare "ifdef CORESIGHT" constructs. +endif + # We really do not want to build the perf documentation, because it # has stringent requirement on the documentation generation tools, # like xmlto and asciidoc), which may be lagging behind on some