Patchwork [PATCHv2,2/2] trace-cmd/kernelshark: oe-stylize recipes

login
register
mail settings
Submitter Fathi Boudra
Date April 8, 2014, 2 p.m.
Message ID <1396965637-4802-3-git-send-email-fathi.boudra@linaro.org>
Download mbox | patch
Permalink /patch/70285/
State New
Headers show

Comments

Fathi Boudra - April 8, 2014, 2 p.m.
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 meta/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb | 23 +++++++++++-----------
 meta/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb   |  8 ++++----
 2 files changed, 15 insertions(+), 16 deletions(-)

Patch

diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb b/meta/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb
index f455707..dbc2a9d 100644
--- a/meta/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb
+++ b/meta/recipes-kernel/trace-cmd/kernelshark_2.3.2.bb
@@ -2,23 +2,22 @@  SUMMARY = "Graphical trace viewer for Ftrace"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e"
-
+DEPENDS = "gtk+"
 SRCREV = "79e08f8edb38c4c5098486caaa87ca90ba00f547"
 PV = "2.3.2"
 
-DEPENDS = "gtk+"
-RDEPENDS_${PN} = "trace-cmd"
-
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.3"
-S = "${WORKDIR}/git"
 
-FILESPATH = "${FILE_DIRNAME}/trace-cmd"
+S = "${WORKDIR}/git"
 
 do_install() {
-	${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install_gui
-
-	# remove files already shipped in trace-cmd package
-	rm -f ${D}${bindir}/trace-cmd
-	rm -rf ${D}${libdir}/trace-cmd
-	rmdir ${D}${libdir}
+    ${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install_gui
+    # remove files already shipped in trace-cmd package
+    rm -f ${D}${bindir}/trace-cmd
+    rm -rf ${D}${libdir}/trace-cmd
+    rmdir ${D}${libdir}
 }
+
+RDEPENDS_${PN} = "trace-cmd"
+
+FILESPATH = "${FILE_DIRNAME}/trace-cmd"
diff --git a/meta/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb b/meta/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb
index eed1010..798ee1b 100644
--- a/meta/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb
+++ b/meta/recipes-kernel/trace-cmd/trace-cmd_2.3.2.bb
@@ -4,15 +4,15 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
                     file://trace-cmd.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e \
                     file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \
                     file://trace-input.c;beginline=5;endine=8;md5=dafd8a1cade30b847a8686dd3628cea4"
-
 SRCREV = "79e08f8edb38c4c5098486caaa87ca90ba00f547"
 PV = "2.3.2"
 
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;branch=trace-cmd-stable-v2.3"
-S = "${WORKDIR}/git"
 
-FILES_${PN}-dbg += "${libdir}/trace-cmd/plugins/.debug/"
+S = "${WORKDIR}/git"
 
 do_install() {
-	${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install
+    ${MAKE} NO_PYTHON=1 prefix=${prefix} plugin_dir=${libdir}/trace-cmd/plugins DESTDIR=${D} install
 }
+
+FILES_${PN}-dbg += "${libdir}/trace-cmd/plugins/.debug/"