* [PATCH 0/3][for-dora] backport of the perf enhencements
@ 2014-06-24 21:34 Henning Heinold
2014-06-24 21:34 ` [PATCH 1/3][for-dora] perf: fix broken shell comparsion in do_install Henning Heinold
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Henning Heinold @ 2014-06-24 21:34 UTC (permalink / raw)
To: openembedded-core
The following patches are backports of the perf enhencements.
They are not critical, but can reduce imagesizes
for analysing performance issues.
Henning Heinold (3):
perf: fix broken shell comparsion in do_install
perf: split packging
perf: add slang to the dependencies
meta/recipes-kernel/perf/perf.bb | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3][for-dora] perf: fix broken shell comparsion in do_install
2014-06-24 21:34 [PATCH 0/3][for-dora] backport of the perf enhencements Henning Heinold
@ 2014-06-24 21:34 ` Henning Heinold
2014-06-24 21:34 ` [PATCH 2/3][for-dora] perf: split packging Henning Heinold
2014-06-24 21:34 ` [PATCH 3/3][for-dora] perf: add slang to the dependencies Henning Heinold
2 siblings, 0 replies; 5+ messages in thread
From: Henning Heinold @ 2014-06-24 21:34 UTC (permalink / raw)
To: openembedded-core
The patch was sponsored by sysmocom
Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
---
meta/recipes-kernel/perf/perf.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 903ffa6..31c2c8e 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -109,7 +109,7 @@ do_install() {
unset CFLAGS
oe_runmake DESTDIR=${D} install
# we are checking for this make target to be compatible with older perf versions
- if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" -a $(grep install-python_ext ${S}/tools/perf/Makefile) = "0"]; then
+ if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" -a $(grep install-python_ext ${S}/tools/perf/Makefile) = "0" ]; then
oe_runmake DESTDIR=${D} install-python_ext
fi
}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3][for-dora] perf: split packging
2014-06-24 21:34 [PATCH 0/3][for-dora] backport of the perf enhencements Henning Heinold
2014-06-24 21:34 ` [PATCH 1/3][for-dora] perf: fix broken shell comparsion in do_install Henning Heinold
@ 2014-06-24 21:34 ` Henning Heinold
2014-06-28 2:39 ` Robert Yang
2014-06-24 21:34 ` [PATCH 3/3][for-dora] perf: add slang to the dependencies Henning Heinold
2 siblings, 1 reply; 5+ messages in thread
From: Henning Heinold @ 2014-06-24 21:34 UTC (permalink / raw)
To: openembedded-core
* some fundamental perf commands can work
without the dependency on perl, python or bash
make them separate packages and RSUGGEST them
* bump PR
The patch was sponsored by sysmocom
Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
---
meta/recipes-kernel/perf/perf.bb | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 31c2c8e..e43f053 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -9,7 +9,7 @@ as well."
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
-PR = "r8"
+PR = "r9"
require perf-features.inc
@@ -27,9 +27,6 @@ DEPENDS = "virtual/kernel \
bison flex \
"
-SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python', '',d)}"
-RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}"
-
PROVIDES = "virtual/perf"
inherit linux-kernel-base kernel-arch pythonnative
@@ -124,6 +121,18 @@ python do_package_prepend() {
PACKAGE_ARCH = "${MACHINE_ARCH}"
-FILES_${PN} += "${libexecdir}/perf-core"
+PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
+
+RDEPENDS_${PN} += "elfutils"
+RDEPENDS_${PN}-archive =+ "bash"
+RDEPENDS_${PN}-python =+ "bash python"
+RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
+
+RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}"
+RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
+
FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug"
-FILES_${PN} += "${libdir}/python*/site-packages"
+FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
+FILES_${PN}-tests = "${libdir}/perf/perf-core/tests"
+FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python"
+FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3][for-dora] perf: add slang to the dependencies
2014-06-24 21:34 [PATCH 0/3][for-dora] backport of the perf enhencements Henning Heinold
2014-06-24 21:34 ` [PATCH 1/3][for-dora] perf: fix broken shell comparsion in do_install Henning Heinold
2014-06-24 21:34 ` [PATCH 2/3][for-dora] perf: split packging Henning Heinold
@ 2014-06-24 21:34 ` Henning Heinold
2 siblings, 0 replies; 5+ messages in thread
From: Henning Heinold @ 2014-06-24 21:34 UTC (permalink / raw)
To: openembedded-core
* TUI/GUI support was added in 2.6.35 based on libnewt
* since 3.10 slang replaced libnewt completly
* changing TUI_DEFINES is not necessary, because NO_NEWT is
still respected with newer kernels
* add comment about the gui history to the recipe
The patch was sponsored by sysmocom
Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
---
meta/recipes-kernel/perf/perf.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index e43f053..63d356e 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -15,7 +15,10 @@ require perf-features.inc
BUILDPERF_libc-uclibc = "no"
-TUI_DEPENDS = "${@perf_feature_enabled('perf-tui', 'libnewt', '',d)}"
+# gui support was added with kernel 3.6.35
+# since 3.10 libnewt was replaced by slang
+# to cover a wide range of kernel we add both dependencies
+TUI_DEPENDS = "${@perf_feature_enabled('perf-tui', 'libnewt slang', '',d)}"
SCRIPTING_DEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl python', '',d)}"
DEPENDS = "virtual/kernel \
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/3][for-dora] perf: split packging
2014-06-24 21:34 ` [PATCH 2/3][for-dora] perf: split packging Henning Heinold
@ 2014-06-28 2:39 ` Robert Yang
0 siblings, 0 replies; 5+ messages in thread
From: Robert Yang @ 2014-06-28 2:39 UTC (permalink / raw)
To: Henning Heinold, openembedded-core
On 06/25/2014 05:34 AM, Henning Heinold wrote:
> * some fundamental perf commands can work
> without the dependency on perl, python or bash
> make them separate packages and RSUGGEST them
>
> * bump PR
Why you need bump the PR, please ?
// Robert
>
> The patch was sponsored by sysmocom
>
> Signed-off-by: Henning Heinold <henning@itconsulting-heinold.de>
> ---
> meta/recipes-kernel/perf/perf.bb | 21 +++++++++++++++------
> 1 file changed, 15 insertions(+), 6 deletions(-)
>
> diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
> index 31c2c8e..e43f053 100644
> --- a/meta/recipes-kernel/perf/perf.bb
> +++ b/meta/recipes-kernel/perf/perf.bb
> @@ -9,7 +9,7 @@ as well."
> LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
>
> -PR = "r8"
> +PR = "r9"
>
> require perf-features.inc
>
> @@ -27,9 +27,6 @@ DEPENDS = "virtual/kernel \
> bison flex \
> "
>
> -SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python', '',d)}"
> -RDEPENDS_${PN} += "elfutils bash ${SCRIPTING_RDEPENDS}"
> -
> PROVIDES = "virtual/perf"
>
> inherit linux-kernel-base kernel-arch pythonnative
> @@ -124,6 +121,18 @@ python do_package_prepend() {
>
> PACKAGE_ARCH = "${MACHINE_ARCH}"
>
> -FILES_${PN} += "${libexecdir}/perf-core"
> +PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
> +
> +RDEPENDS_${PN} += "elfutils"
> +RDEPENDS_${PN}-archive =+ "bash"
> +RDEPENDS_${PN}-python =+ "bash python"
> +RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
> +
> +RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}"
> +RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
> +
> FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug"
> -FILES_${PN} += "${libdir}/python*/site-packages"
> +FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
> +FILES_${PN}-tests = "${libdir}/perf/perf-core/tests"
> +FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python"
> +FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-28 2:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-24 21:34 [PATCH 0/3][for-dora] backport of the perf enhencements Henning Heinold
2014-06-24 21:34 ` [PATCH 1/3][for-dora] perf: fix broken shell comparsion in do_install Henning Heinold
2014-06-24 21:34 ` [PATCH 2/3][for-dora] perf: split packging Henning Heinold
2014-06-28 2:39 ` Robert Yang
2014-06-24 21:34 ` [PATCH 3/3][for-dora] perf: add slang to the dependencies Henning Heinold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.