Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Yuri Bushmelev <jay4mail@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] ltrace: exclude from build for SH3/SH4 targets
Date: Wed, 17 Nov 2010 03:55:23 +0300	[thread overview]
Message-ID: <1289955323-10243-1-git-send-email-jay4mail@gmail.com> (raw)

---
 recipes/ltrace/ltrace_0.5.3.bb  |    3 +++
 recipes/tasks/task-cli-tools.bb |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/recipes/ltrace/ltrace_0.5.3.bb b/recipes/ltrace/ltrace_0.5.3.bb
index c856788..6c13c08 100644
--- a/recipes/ltrace/ltrace_0.5.3.bb
+++ b/recipes/ltrace/ltrace_0.5.3.bb
@@ -6,6 +6,9 @@ LICENSE = "GPLv2"
 
 PR = "r2"
 
+# ltrace is not ported to sh3/sh4 targets at this time
+COMPATIBLE_TARGET_SYS = (?!sh[34])
+
 SRC_URI = "\
   ${DEBIAN_MIRROR}/main/l/ltrace/ltrace_${PV}.orig.tar.gz;name=archive \
   ${DEBIAN_MIRROR}/main/l/ltrace/ltrace_${PV}-2.diff.gz;name=patch \
diff --git a/recipes/tasks/task-cli-tools.bb b/recipes/tasks/task-cli-tools.bb
index 0d2aa00..7d71e9a 100644
--- a/recipes/tasks/task-cli-tools.bb
+++ b/recipes/tasks/task-cli-tools.bb
@@ -9,6 +9,11 @@ inherit task
 
 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 \
@@ -33,7 +38,7 @@ RDEPENDS_${PN}-debug = "\
   devmem2 \
   i2c-tools \
   gdb \
-  ltrace \
+  ${@get_ltrace(bb, d)} \
   mkdump \
   mioctl \
   procps \
-- 
1.7.2.3




                 reply	other threads:[~2010-11-17  0:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1289955323-10243-1-git-send-email-jay4mail@gmail.com \
    --to=jay4mail@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox