aboutsummaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorGravatar Jan Heylen <jan.heylen@nokia.com>2018-07-04 09:07:35 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-07-04 21:52:11 +0200
commit63d76c6f2f04c836af24098e26f2befe1e8e4cc4 (patch)
treecf002404d3c7b59b96bdc0a2d1f1ff0992ad20e0 /linux
parent3f4df8cd162d6557d315360a78c3271f71d9a275 (diff)
downloadbuildroot-63d76c6f2f04c836af24098e26f2befe1e8e4cc4.tar.gz
buildroot-63d76c6f2f04c836af24098e26f2befe1e8e4cc4.tar.bz2
linux: automatically set CONFIG_PERF_EVENTS when perf is enabled
Perf profiling cannot be used if CONFIG_PERF_EVENTS is not enabled in the kernel configuration. Similar to other tools, like ktap, we can enable the right options automatically. Signed-off-by: Jan Heylen <jan.heylen@nokia.com> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/linux.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/linux.mk b/linux/linux.mk
index 6b5f5344ed..7f4c916671 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -292,6 +292,8 @@ define LINUX_KCONFIG_FIXUP_CMDS
$(call KCONFIG_ENABLE_OPT,CONFIG_ENABLE_DEFAULT_TRACERS,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_FUNCTION_TRACER,$(@D)/.config))
+ $(if $(BR2_PACKAGE_LINUX_TOOLS_PERF),
+ $(call KCONFIG_ENABLE_OPT,CONFIG_PERF_EVENTS,$(@D)/.config))
$(if $(BR2_PACKAGE_SYSTEMD),
$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config)