Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Cc: Phil Blundell <philb@gnu.org>
Subject: [*RFC CONSOLIDATED PULL RFC* 15/23] uclibc: remove redundant python code
Date: Sun, 12 Jun 2011 23:54:25 -0700	[thread overview]
Message-ID: <ac27d4d7dec838652bb598507eeb7e2bbc3bc4ed.1307947593.git.sgw@linux.intel.com> (raw)
In-Reply-To: <cover.1307947593.git.sgw@linux.intel.com>
In-Reply-To: <cover.1307947593.git.sgw@linux.intel.com>

From: Phil Blundell <pb@pbcl.net>

This chunk of python code has been around for a while (witness the
comment about gcc 3.4.0) and predates the availability of
COMPATIBLE_HOST.  Rewrite it using a more modern idiom.

Signed-off-by: Phil Blundell <philb@gnu.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/uclibc/uclibc.inc |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
index 2bf3017..06c0f5d 100644
--- a/meta/recipes-core/uclibc/uclibc.inc
+++ b/meta/recipes-core/uclibc/uclibc.inc
@@ -36,21 +36,11 @@ cp ${SYSROOT_DESTDIR}${libdir}/libc.so ${WORKDIR}/site_config_libc; \
 sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \
 "
 
-#
 # For now, we will skip building of a gcc package if it is a uclibc one
 # and our build is not a uclibc one, and we skip a glibc one if our build
 # is a uclibc build.
-#
-# See the note in gcc/gcc_3.4.0.oe
-#
+COMPATIBLE_HOST = ".*-uclibc.*"
 
-python __anonymous () {
-    import bb, re
-    uc_os = (re.match('.*uclibc*', bb.data.getVar('TARGET_OS', d, 1)) != None)
-    if not uc_os:
-        raise bb.parse.SkipPackage("incompatible with target %s" %
-                                   bb.data.getVar('TARGET_OS', d, 1))
-}
 PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
 DEPENDS = "virtual/${TARGET_PREFIX}binutils \
            virtual/${TARGET_PREFIX}gcc-intermediate \
-- 
1.7.3.4




  parent reply	other threads:[~2011-06-13  6:58 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-13  6:54 [*RFC CONSOLIDATED PULL RFC* 00/23] 13-June-2011 Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 01/23] ghostscript: update SRC_URI Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 02/23] busybox: backport distro-features handling from oe master Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 03/23] git: restore the dependency on perl-native Saul Wold
2011-06-14 12:53   ` Phil Blundell
2011-06-14 12:54     ` Koen Kooi
2011-06-14 13:01     ` Phil Blundell
2011-06-14 13:40       ` Richard Purdie
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 04/23] uclibc: fix compile error on i586 Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 05/23] import recipe_sanity.bbclass from oe master Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 06/23] json-glib: Fix up SRC_URI Checksums Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 07/23] gconf-dbus: Update to 2.29.1 git Saul Wold
2011-06-13  7:58   ` Koen Kooi
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 08/23] linux-yocto: rename recipes to explicitly indicate version Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 09/23] perl-native: fix download url Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 10/23] clutter-box2d_git: Switch SRC_URI to git.gnome.org Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 11/23] util-macros_1.13.0.bb: Depend on virtual/gettext instead of gettext Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 12/23] uclibc.inc: libsegfault is only RPROVIDED by uclibc Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 13/23] gettext_0.18.1.1.bb: Fix build on uclibc Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 14/23] uclibc: Cleanup the machine dependent config files Saul Wold
2011-06-13  6:54 ` Saul Wold [this message]
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 16/23] uclibc: remove PACKAGE_ARCH, fix compilation on i586 Saul Wold
2011-06-13  8:34   ` Phil Blundell
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 17/23] qemu.inc: append to IMAGE_FSTYPES instead of weakly assigning them Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 18/23] connman-gnome 0.5: build from git Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 19/23] update-alternatives-dpkg: Fix SRC_URI Checksum Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 20/23] jsib-glib: " Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 21/23] rxvt-unicode: Fix SRC_URI & LIC_FILES Checksum Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 22/23] alsa-tools: fix Checksums Saul Wold
2011-06-13  6:54 ` [*RFC CONSOLIDATED PULL RFC* 23/23] libx11-diet: Fixed checksum and rebase patch Saul Wold

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=ac27d4d7dec838652bb598507eeb7e2bbc3bc4ed.1307947593.git.sgw@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=philb@gnu.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