summaryrefslogtreecommitdiff
path: root/binutils/binutils_2.14.90.0.6.oe
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/binutils_2.14.90.0.6.oe')
-rw-r--r--binutils/binutils_2.14.90.0.6.oe23
1 files changed, 16 insertions, 7 deletions
diff --git a/binutils/binutils_2.14.90.0.6.oe b/binutils/binutils_2.14.90.0.6.oe
index 3f2faa778a..9d25471e1b 100644
--- a/binutils/binutils_2.14.90.0.6.oe
+++ b/binutils/binutils_2.14.90.0.6.oe
@@ -4,13 +4,22 @@ DESCRIPTION = "A GNU collection of binary utilities"
LICENSE = "GPL"
MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
-# This will ONLY build to this target
-TARGET_VENDOR := ""
-TARGET_SYS := "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
-TARGET_PREFIX := "${TARGET_SYS}-"
-
-DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc \
- virtual/libc patcher-native"
+#
+# 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
+#
+
+python __anonymous () {
+ import oe, re
+ uc_pkg = (re.search('uclibc', oe.data.getVar('PN', d, 1)) != None)
+ uc_os = (re.match('.*uclibc$', oe.data.getVar('TARGET_OS', d, 1)) != None)
+ if uc_pkg != uc_os:
+ raise oe.parse.SkipPackage("incompatible with target %s" %
+ oe.data.getVar('TARGET_OS', d, 1))
+}
PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks"