From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] uclibc: remove redundant python code
Date: Fri, 10 Jun 2011 08:19:01 -0700 [thread overview]
Message-ID: <4DF235E5.7050704@gmail.com> (raw)
In-Reply-To: <1307714500.25285.7.camel@phil-desktop>
On 06/10/2011 07:01 AM, Phil Blundell wrote:
> 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>
> ---
> meta/recipes-core/uclibc/uclibc.inc | 12 +--------
>
> diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
> index c1bc422..a2c6ee5 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 \
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
prev parent reply other threads:[~2011-06-10 15:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-10 14:01 [PATCH] uclibc: remove redundant python code Phil Blundell
2011-06-10 15:19 ` Khem Raj [this message]
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=4DF235E5.7050704@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-core@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