Skip to contentSkip to conversation

package/perf: if audit is enabled, depend on it

PATCH New Václav Kubernát 3 participants 6 messages Nov 11, 2020 – Nov 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/perf: if audit is enabled, depend on it

Enables the perf trace command.

---
 package/linux-tools/linux-tool-perf.mk.in | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/linux-tools/linux-tool-perf.mk.in +6 -1
index 53b7c5b9cd..e54f019888 100644
@@ -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
Signature · 1 line
2.29.2
#1 lore raw

PATCH 2/2 package/perf: if zstd is enabled, depend on it

Enables the "-z" flag.

---
 package/linux-tools/linux-tool-perf.mk.in | 4 ++++
 1 file changed, 4 insertions(+)
package/linux-tools/linux-tool-perf.mk.in +4 -0
index e54f019888..efa747cf8d 100644
@@ -69,6 +69,10 @@ else
 PERF_MAKE_FLAGS += NO_LIBAUDIT=1
 endif
 
+ifeq ($(BR2_PACKAGE_ZSTD),y)
+PERF_DEPENDENCIES += zstd
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
 PERF_DEPENDENCIES += libunwind
 else
Signature · 1 line
2.29.2
#2 lore raw

PATCH 2/2 package/perf: if zstd is enabled, depend on it

Quoted 3 lines · V?clav Kubern?t

Enables the "-z" flag.

This makes sense when you have limited space in your tmpfs which happens to be the only writable space.

(disclaimer: I'm Vaclav's co-worker)

Quoted 20 lines
---
 package/linux-tools/linux-tool-perf.mk.in | 4 ++++
 1 file changed, 4 insertions(+)
package/linux-tools/linux-tool-perf.mk.in +4 -0
index e54f019888..efa747cf8d 100644
@@ -69,6 +69,10 @@ else
 PERF_MAKE_FLAGS += NO_LIBAUDIT=1
 endif
 
+ifeq ($(BR2_PACKAGE_ZSTD),y)
+PERF_DEPENDENCIES += zstd
+endif
+
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
 PERF_DEPENDENCIES += libunwind
 else
#4 lore raw

PATCH 1/2 package/perf: if audit is enabled, depend on it

In reply to Václav Kubernát
Quoted 3 lines · V?clav Kubern?t

Enables the perf trace command.

(disclaimer: I'm Vaclav's co-worker)

Quoted 30 lines
---
 package/linux-tools/linux-tool-perf.mk.in | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/linux-tools/linux-tool-perf.mk.in +6 -1
index 53b7c5b9cd..e54f019888 100644
@@ -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