package/perf: if audit is enabled, depend on it
authorVáclav Kubernát <sir.venceslas@gmail.com>
Wed, 11 Nov 2020 16:00:07 +0000 (17:00 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 13 Nov 2020 13:55:21 +0000 (14:55 +0100)
Enables the `perf trace` command.

Signed-off-by: Václav Kubernát <sir.venceslas@gmail.com>
Reviewed-by: Jan Kundrát <jan.kundrat@cesnet.cz>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/linux-tools/linux-tool-perf.mk.in

index 53b7c5b9cd8028b535c90adac81fc41e6abe8ec4..e54f019888630ce82e7a09bdede5df37b76ec67c 100644 (file)
@@ -21,7 +21,6 @@ PERF_MAKE_FLAGS = \
        DESTDIR=$(TARGET_DIR) \
        prefix=/usr \
        WERROR=0 \
-       NO_LIBAUDIT=1 \
        NO_GTK2=1 \
        NO_LIBPERL=1 \
        NO_LIBPYTHON=1 \
@@ -64,6 +63,12 @@ else
 PERF_MAKE_FLAGS += NO_NEWT=1 NO_SLANG=1
 endif
 
+ifeq ($(BR2_PACKAGE_AUDIT),y)
+PERF_DEPENDENCIES += audit
+else
+PERF_MAKE_FLAGS += NO_LIBAUDIT=1
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
 PERF_DEPENDENCIES += libunwind
 else