From 669b0bebd79f2266f85cd4278cfce9f90867fb75 Mon Sep 17 00:00:00 2001 From: Yong Li Date: Tue, 19 Dec 2017 22:06:00 +0800 Subject: Add tools-profile feature support With this patch, the build system supports the tools-profile feature, We can add it into the EXTRA_IMAGE_FEATURES in conf/local.conf, to add more debug/profile tools into the image Change-Id: Ic3c3811d9bca3f99a9e94d7c9da5a71ce1321d02 Signed-off-by: Yong Li --- .../packagegroups/packagegroup-core-tools-profile.bbappend | 12 ++++++++++++ meta-phosphor/conf/layer.conf | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 meta-phosphor/common/recipes-core/packagegroups/packagegroup-core-tools-profile.bbappend (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-core/packagegroups/packagegroup-core-tools-profile.bbappend b/meta-phosphor/common/recipes-core/packagegroups/packagegroup-core-tools-profile.bbappend new file mode 100644 index 000000000..78b78e40b --- /dev/null +++ b/meta-phosphor/common/recipes-core/packagegroups/packagegroup-core-tools-profile.bbappend @@ -0,0 +1,12 @@ +RDEPENDS_${PN}_remove = " \ + lttng-tools \ + lttng-ust \ + lttng-modules \ + powertop \ + latencytop \ + " + +RRECOMMENDS_${PN}_remove = " \ + perf \ + trace-cmd \ + " diff --git a/meta-phosphor/conf/layer.conf b/meta-phosphor/conf/layer.conf index ffccec013..ab0b73641 100644 --- a/meta-phosphor/conf/layer.conf +++ b/meta-phosphor/conf/layer.conf @@ -11,3 +11,6 @@ LAYERVERSION_obmc-phosphor = "1" # Provide a variable that points the base of the phosphor layer. PHOSPHORBASE = '${@os.path.normpath("${LAYERDIR}/")}' + +IMAGE_FEATURES[validitems] += "tools-profile" + -- cgit v1.2.3