1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

perf: rename perf.inc to perf-features.inc

The contents of perf.inc are really specific to perf features and
shouldn't use the generic perf.inc name, which implies common recipe
code.  It's always confusing to open up this file and find out that's
not what it is.

(From OE-Core rev: 4a98bd02ab8918e639353829b221b0c4b6c58165)

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tom Zanussi
2013-03-07 18:39:00 -06:00
committed by Richard Purdie
parent 4b9b66fb84
commit b3be3323a0
2 changed files with 1 additions and 1 deletions
@@ -0,0 +1,22 @@
PERF_FEATURES_ENABLE ?= "perf-scripting perf-tui"
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