diff options
author | Phil Blundell <pb@pbcl.net> | 2011-06-10 22:01:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-14 15:22:56 +0100 |
commit | f5de11c54ee42e3e61d6680de8302dd99dd5e633 (patch) | |
tree | e68458967c4d004ae89726d9c7e642083c80bbeb /meta/recipes-core | |
parent | 1d3cc59b8716cb1225461b3540967836a2779f00 (diff) | |
download | poky-f5de11c54ee42e3e61d6680de8302dd99dd5e633.tar.gz |
uclibc: remove redundant python code
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.
(From OE-Core rev: c0f8fc3579fb4cebc0bd01b868d919738f9b03a9)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | 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 15d4e52708..00f5e8dc9c 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; \ | |||
36 | sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \ | 36 | sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \ |
37 | " | 37 | " |
38 | 38 | ||
39 | # | ||
40 | # For now, we will skip building of a gcc package if it is a uclibc one | 39 | # For now, we will skip building of a gcc package if it is a uclibc one |
41 | # and our build is not a uclibc one, and we skip a glibc one if our build | 40 | # and our build is not a uclibc one, and we skip a glibc one if our build |
42 | # is a uclibc build. | 41 | # is a uclibc build. |
43 | # | 42 | COMPATIBLE_HOST = ".*-uclibc.*" |
44 | # See the note in gcc/gcc_3.4.0.oe | ||
45 | # | ||
46 | 43 | ||
47 | python __anonymous () { | ||
48 | import bb, re | ||
49 | uc_os = (re.match('.*uclibc*', bb.data.getVar('TARGET_OS', d, 1)) != None) | ||
50 | if not uc_os: | ||
51 | raise bb.parse.SkipPackage("incompatible with target %s" % | ||
52 | bb.data.getVar('TARGET_OS', d, 1)) | ||
53 | } | ||
54 | PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" | 44 | PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" |
55 | DEPENDS = "virtual/${TARGET_PREFIX}binutils \ | 45 | DEPENDS = "virtual/${TARGET_PREFIX}binutils \ |
56 | virtual/${TARGET_PREFIX}gcc-intermediate \ | 46 | virtual/${TARGET_PREFIX}gcc-intermediate \ |