Patchwork [meta-oe,3/5] task-cli-tools: move ltrace to RRECOMMENDS as it's probably not available for shr4 and sh3 and use allarch

login
register
mail settings
Submitter Martin Jansa
Date Feb. 24, 2012, 10:24 p.m.
Message ID <99cb835ec9b9125171750e3e7e967ff17166fe4b.1330122206.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/21997/
State Accepted
Commit d3c5c64debb2f7dd0d6211463f38b7d58925a58b
Headers show

Comments

Martin Jansa - Feb. 24, 2012, 10:24 p.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/recipes-core/tasks/task-cli-tools.bb |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

Patch

diff --git a/meta-oe/recipes-core/tasks/task-cli-tools.bb b/meta-oe/recipes-core/tasks/task-cli-tools.bb
index c6dc4a7..a849978 100644
--- a/meta-oe/recipes-core/tasks/task-cli-tools.bb
+++ b/meta-oe/recipes-core/tasks/task-cli-tools.bb
@@ -4,17 +4,12 @@  SECTION = "console"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 PV = "1.0"
-PR = "r18"
+PR = "r19"
 
-inherit task
+inherit task allarch
 
 PACKAGES += "${PN}-debug"
 
-def get_ltrace(bb, d):
-    if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'sh4', 'sh3' ] :
-        return ""
-    return "ltrace"
-
 RDEPENDS_${PN} = "\
   dbus-daemon-proxy \
   dosfstools \
@@ -39,7 +34,6 @@  RDEPENDS_${PN}-debug = "\
   devmem2 \
   i2c-tools \
   gdb \
-  ${@get_ltrace(bb, d)} \
   mkdump \
   mioctl \
   procps \
@@ -50,3 +44,7 @@  RDEPENDS_${PN}-debug = "\
   strace \
   tcpdump \
 "
+
+RRECOMMENDS_${PN}-debug = "\
+  ltrace \
+"