[ELDK] [PATCH 3/3] perf-features.inc-fix

Lothar Rubusch l.rubusch at gmx.ch
Fri Sep 13 15:12:45 CEST 2013


and a fix for perf-feature.inc since this made trouble with the m53evk board

Signed-off-by: Lothar Rubusch <l.rubusch at gmx.ch>
---
 meta-eldk/recipes-kernel/perf/perf-features.inc |   22 ++++++++++++++++++++++
 meta-eldk/recipes-kernel/perf/perf.inc          |   22 ----------------------
 meta-eldk/recipes-kernel/perf/perf_3.6.bb       |    2 +-
 3 files changed, 23 insertions(+), 23 deletions(-)
 create mode 100644 meta-eldk/recipes-kernel/perf/perf-features.inc
 delete mode 100644 meta-eldk/recipes-kernel/perf/perf.inc

diff --git a/meta-eldk/recipes-kernel/perf/perf-features.inc b/meta-eldk/recipes-kernel/perf/perf-features.inc
new file mode 100644
index 0000000..4bf00dc
--- /dev/null
+++ b/meta-eldk/recipes-kernel/perf/perf-features.inc
@@ -0,0 +1,22 @@
+PERF_FEATURES_ENABLE ?= ""
+
+def perf_feature_enabled(feature, trueval, falseval, d):
+    """
+    Check which perf features are enabled.
+
+    The PERF_FEATURES_ENABLE variable lists the perf features to
+    enable.  Override it if you want something different from what's
+    listed above, which is the default.  If empty, the build won't
+    enable any features (which may be exactly what you want, just a
+    barebones perf without any extra baggage, what you get if you
+    specify an empty feature list).
+
+    Available perf features:
+    perf-scripting: enable support for Perl and Python bindings
+    perf-tui: enable support for the perf TUI (via libnewt)
+
+    """
+    enabled_features = d.getVar("PERF_FEATURES_ENABLE", True) or ""
+    if feature in enabled_features:
+        return trueval
+    return falseval
diff --git a/meta-eldk/recipes-kernel/perf/perf.inc b/meta-eldk/recipes-kernel/perf/perf.inc
deleted file mode 100644
index e1a7492..0000000
--- a/meta-eldk/recipes-kernel/perf/perf.inc
+++ /dev/null
@@ -1,22 +0,0 @@
-PERF_FEATURES_ENABLE ?= ""
-
-def perf_feature_enabled(feature, trueval, falseval, d):
-    """
-    Check which perf features are enabled.
-
-    The PERF_FEATURES_ENABLE variable lists the perf features to
-    enable.  Override it if you want something different from what's
-    listed above, which is the default.  If empty, the build won't
-    enable any features (which may be exactly what you want, just a
-    barebones perf without any extra baggage, what you get if you
-    specify an empty feature list).
-
-    Available perf features:
-      perf-scripting: enable support for Perl and Python bindings
-      perf-tui: enable support for the perf TUI (via libnewt)
-
-    """
-    enabled_features = d.getVar("PERF_FEATURES_ENABLE", True) or ""
-    if feature in enabled_features:
-        return trueval
-    return falseval
diff --git a/meta-eldk/recipes-kernel/perf/perf_3.6.bb b/meta-eldk/recipes-kernel/perf/perf_3.6.bb
index b3a8792..045b1f3 100644
--- a/meta-eldk/recipes-kernel/perf/perf_3.6.bb
+++ b/meta-eldk/recipes-kernel/perf/perf_3.6.bb
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
 PR = "r0"
 
-require perf.inc
+require perf-features.inc
 
 BUILDPERF_libc-uclibc = "no"
 
-- 
1.7.10.4



More information about the eldk mailing list