diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in index 10b6538a59..253a8593b9 100644 --- a/package/linux-tools/Config.in +++ b/package/linux-tools/Config.in @@ -92,6 +92,13 @@ config BR2_PACKAGE_LINUX_TOOLS_PERF_TUI enables zooming into DSOs and threads as well as other features. +config BR2_PACKAGE_LINUX_TOOLS_PERF_NEEDS_HOST_PYTHON3 + bool "perf need python3 to build" + select BR2_PACKAGE_HOST_PYTHON3 + help + Starting with linux 6.0, parts of the perf source code + is generated by running a python3 script. + endif config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in index 057c6f80e7..dda63cccec 100644 --- a/package/linux-tools/linux-tool-perf.mk.in +++ b/package/linux-tools/linux-tool-perf.mk.in @@ -8,6 +8,10 @@ LINUX_TOOLS += perf PERF_DEPENDENCIES = host-flex host-bison +ifeq ($(BR2_PACKAGE_LINUX_TOOLS_PERF_NEEDS_HOST_PYTHON3),y) +PERF_DEPENDENCIES += host-python3 +endif + ifeq ($(NORMALIZED_ARCH),x86_64) PERF_ARCH=x86 else