From 5c76c320af6f82794823215c081469d3de8e64e4 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Tue, 27 Apr 2004 02:53:54 +0000 Subject: - binutils 2.15.90.0.3 / gcc 3.4.0 toolchain - support in glibc and uclibc for gcc 3.4.0 - new target setup for uclibc, TARGET_OS=linux-uclibc to match the uclibc project's setup and modern config.sub already has support for it. BKrev: 408dcb42JOaGKxGg3PSn6IwU4Kimfw --- .../binutils-001_ld_makefile.patch | 0 .../binutils-006_better_file_error.patch | 0 .../binutils-009_signed_char_fix.patch | 0 .../binutils-100_cflags_for_build.patch | 0 .../binutils-2.15.90.0.3-uclibc-100-conf.patch | 0 ...tils-2.15.90.0.3-uclibc-200-build_modules.patch | 0 .../binutils-2.15.90.0.3-uclibc-210-cflags.patch | 0 binutils/binutils-cross_2.14.90.0.6.oe | 1 - binutils/binutils-cross_2.14.90.0.7.oe | 1 - binutils/binutils-cross_2.14.90.0.8.oe | 1 - binutils/binutils-cross_2.15.90.0.1.oe | 1 - binutils/binutils-cross_2.15.90.0.3.oe | 0 binutils/binutils-uclibc-cross_2.14.90.0.6.oe | 1 - binutils/binutils-uclibc-cross_2.14.90.0.7.oe | 1 - binutils/binutils-uclibc-cross_2.14.90.0.8.oe | 1 - binutils/binutils-uclibc-cross_2.15.90.0.1.oe | 1 - binutils/binutils-uclibc-cross_2.15.90.0.3.oe | 0 binutils/binutils-uclibc_2.14.90.0.6.oe | 5 ----- binutils/binutils-uclibc_2.14.90.0.7.oe | 5 ----- binutils/binutils-uclibc_2.14.90.0.8.oe | 5 ----- binutils/binutils-uclibc_2.15.90.0.1.oe | 5 ----- binutils/binutils-uclibc_2.15.90.0.3.oe | 0 binutils/binutils_2.14.90.0.6.oe | 23 +++++++++++++++------- binutils/binutils_2.14.90.0.7.oe | 23 +++++++++++++++------- binutils/binutils_2.14.90.0.8.oe | 23 +++++++++++++++------- binutils/binutils_2.15.90.0.1.oe | 23 +++++++++++++++------- binutils/binutils_2.15.90.0.3.oe | 0 27 files changed, 64 insertions(+), 56 deletions(-) create mode 100644 binutils/binutils-2.15.90.0.3/binutils-001_ld_makefile.patch create mode 100644 binutils/binutils-2.15.90.0.3/binutils-006_better_file_error.patch create mode 100644 binutils/binutils-2.15.90.0.3/binutils-009_signed_char_fix.patch create mode 100644 binutils/binutils-2.15.90.0.3/binutils-100_cflags_for_build.patch create mode 100644 binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-100-conf.patch create mode 100644 binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-200-build_modules.patch create mode 100644 binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-210-cflags.patch create mode 100644 binutils/binutils-cross_2.15.90.0.3.oe create mode 100644 binutils/binutils-uclibc-cross_2.15.90.0.3.oe create mode 100644 binutils/binutils-uclibc_2.15.90.0.3.oe create mode 100644 binutils/binutils_2.15.90.0.3.oe (limited to 'binutils') diff --git a/binutils/binutils-2.15.90.0.3/binutils-001_ld_makefile.patch b/binutils/binutils-2.15.90.0.3/binutils-001_ld_makefile.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-2.15.90.0.3/binutils-006_better_file_error.patch b/binutils/binutils-2.15.90.0.3/binutils-006_better_file_error.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-2.15.90.0.3/binutils-009_signed_char_fix.patch b/binutils/binutils-2.15.90.0.3/binutils-009_signed_char_fix.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-2.15.90.0.3/binutils-100_cflags_for_build.patch b/binutils/binutils-2.15.90.0.3/binutils-100_cflags_for_build.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-100-conf.patch b/binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-100-conf.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-200-build_modules.patch b/binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-200-build_modules.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-210-cflags.patch b/binutils/binutils-2.15.90.0.3/binutils-2.15.90.0.3-uclibc-210-cflags.patch new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-cross_2.14.90.0.6.oe b/binutils/binutils-cross_2.14.90.0.6.oe index c6daeb4f14..bcd05014fc 100644 --- a/binutils/binutils-cross_2.14.90.0.6.oe +++ b/binutils/binutils-cross_2.14.90.0.6.oe @@ -1,7 +1,6 @@ include binutils_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-cross_2.14.90.0.7.oe b/binutils/binutils-cross_2.14.90.0.7.oe index c6daeb4f14..bcd05014fc 100644 --- a/binutils/binutils-cross_2.14.90.0.7.oe +++ b/binutils/binutils-cross_2.14.90.0.7.oe @@ -1,7 +1,6 @@ include binutils_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-cross_2.14.90.0.8.oe b/binutils/binutils-cross_2.14.90.0.8.oe index c6daeb4f14..bcd05014fc 100644 --- a/binutils/binutils-cross_2.14.90.0.8.oe +++ b/binutils/binutils-cross_2.14.90.0.8.oe @@ -1,7 +1,6 @@ include binutils_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-cross_2.15.90.0.1.oe b/binutils/binutils-cross_2.15.90.0.1.oe index c6daeb4f14..bcd05014fc 100644 --- a/binutils/binutils-cross_2.15.90.0.1.oe +++ b/binutils/binutils-cross_2.15.90.0.1.oe @@ -1,7 +1,6 @@ include binutils_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-cross_2.15.90.0.3.oe b/binutils/binutils-cross_2.15.90.0.3.oe new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-uclibc-cross_2.14.90.0.6.oe b/binutils/binutils-uclibc-cross_2.14.90.0.6.oe index 31626ec9ba..6cf82282f8 100644 --- a/binutils/binutils-uclibc-cross_2.14.90.0.6.oe +++ b/binutils/binutils-uclibc-cross_2.14.90.0.6.oe @@ -1,7 +1,6 @@ include binutils-uclibc_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-uclibc-cross_2.14.90.0.7.oe b/binutils/binutils-uclibc-cross_2.14.90.0.7.oe index 31626ec9ba..6cf82282f8 100644 --- a/binutils/binutils-uclibc-cross_2.14.90.0.7.oe +++ b/binutils/binutils-uclibc-cross_2.14.90.0.7.oe @@ -1,7 +1,6 @@ include binutils-uclibc_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-uclibc-cross_2.14.90.0.8.oe b/binutils/binutils-uclibc-cross_2.14.90.0.8.oe index 31626ec9ba..6cf82282f8 100644 --- a/binutils/binutils-uclibc-cross_2.14.90.0.8.oe +++ b/binutils/binutils-uclibc-cross_2.14.90.0.8.oe @@ -1,7 +1,6 @@ include binutils-uclibc_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-uclibc-cross_2.15.90.0.1.oe b/binutils/binutils-uclibc-cross_2.15.90.0.1.oe index 31626ec9ba..6cf82282f8 100644 --- a/binutils/binutils-uclibc-cross_2.15.90.0.1.oe +++ b/binutils/binutils-uclibc-cross_2.15.90.0.1.oe @@ -1,7 +1,6 @@ include binutils-uclibc_${PV}.oe inherit cross PROVIDES = "virtual/${TARGET_PREFIX}binutils" -DEPENDS = "patcher-native" FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" PACKAGES = "" EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ diff --git a/binutils/binutils-uclibc-cross_2.15.90.0.3.oe b/binutils/binutils-uclibc-cross_2.15.90.0.3.oe new file mode 100644 index 0000000000..e69de29bb2 diff --git a/binutils/binutils-uclibc_2.14.90.0.6.oe b/binutils/binutils-uclibc_2.14.90.0.6.oe index 9b9829325f..ffe7748799 100644 --- a/binutils/binutils-uclibc_2.14.90.0.6.oe +++ b/binutils/binutils-uclibc_2.14.90.0.6.oe @@ -1,11 +1,6 @@ include binutils_${PV}.oe FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" -# This will ONLY build to this target -TARGET_VENDOR = "-uclibc" -TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" -TARGET_PREFIX = "${TARGET_SYS}-" - binutilsbuild_do_patch () { oenote IN binutils patch perl -i -p -e 's,#.*define.*ELF_DYNAMIC_INTERPRETER.*".*",#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0",;' `grep -lr ELF_DYNAMIC_INTERPRETER *` diff --git a/binutils/binutils-uclibc_2.14.90.0.7.oe b/binutils/binutils-uclibc_2.14.90.0.7.oe index dc68bfdf21..ffe7748799 100644 --- a/binutils/binutils-uclibc_2.14.90.0.7.oe +++ b/binutils/binutils-uclibc_2.14.90.0.7.oe @@ -1,11 +1,6 @@ include binutils_${PV}.oe FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" -# This will ONLY build to this target -TARGET_VENDOR := "-uclibc" -TARGET_SYS := "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" -TARGET_PREFIX := "${TARGET_SYS}-" - binutilsbuild_do_patch () { oenote IN binutils patch perl -i -p -e 's,#.*define.*ELF_DYNAMIC_INTERPRETER.*".*",#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0",;' `grep -lr ELF_DYNAMIC_INTERPRETER *` diff --git a/binutils/binutils-uclibc_2.14.90.0.8.oe b/binutils/binutils-uclibc_2.14.90.0.8.oe index dc68bfdf21..ffe7748799 100644 --- a/binutils/binutils-uclibc_2.14.90.0.8.oe +++ b/binutils/binutils-uclibc_2.14.90.0.8.oe @@ -1,11 +1,6 @@ include binutils_${PV}.oe FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" -# This will ONLY build to this target -TARGET_VENDOR := "-uclibc" -TARGET_SYS := "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" -TARGET_PREFIX := "${TARGET_SYS}-" - binutilsbuild_do_patch () { oenote IN binutils patch perl -i -p -e 's,#.*define.*ELF_DYNAMIC_INTERPRETER.*".*",#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0",;' `grep -lr ELF_DYNAMIC_INTERPRETER *` diff --git a/binutils/binutils-uclibc_2.15.90.0.1.oe b/binutils/binutils-uclibc_2.15.90.0.1.oe index dc68bfdf21..ffe7748799 100644 --- a/binutils/binutils-uclibc_2.15.90.0.1.oe +++ b/binutils/binutils-uclibc_2.15.90.0.1.oe @@ -1,11 +1,6 @@ include binutils_${PV}.oe FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/binutils-${PV}" -# This will ONLY build to this target -TARGET_VENDOR := "-uclibc" -TARGET_SYS := "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" -TARGET_PREFIX := "${TARGET_SYS}-" - binutilsbuild_do_patch () { oenote IN binutils patch perl -i -p -e 's,#.*define.*ELF_DYNAMIC_INTERPRETER.*".*",#define ELF_DYNAMIC_INTERPRETER "/lib/ld-uClibc.so.0",;' `grep -lr ELF_DYNAMIC_INTERPRETER *` diff --git a/binutils/binutils-uclibc_2.15.90.0.3.oe b/binutils/binutils-uclibc_2.15.90.0.3.oe new file mode 100644 index 0000000000..e69de29bb2 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 " -# 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" diff --git a/binutils/binutils_2.14.90.0.7.oe b/binutils/binutils_2.14.90.0.7.oe index 3f2faa778a..9d25471e1b 100644 --- a/binutils/binutils_2.14.90.0.7.oe +++ b/binutils/binutils_2.14.90.0.7.oe @@ -4,13 +4,22 @@ DESCRIPTION = "A GNU collection of binary utilities" LICENSE = "GPL" MAINTAINER = "Gerald Britton " -# 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" diff --git a/binutils/binutils_2.14.90.0.8.oe b/binutils/binutils_2.14.90.0.8.oe index 9c5b489804..1489ea1df6 100644 --- a/binutils/binutils_2.14.90.0.8.oe +++ b/binutils/binutils_2.14.90.0.8.oe @@ -4,13 +4,22 @@ DESCRIPTION = "A GNU collection of binary utilities" LICENSE = "GPL" MAINTAINER = "Gerald Britton " -# 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" diff --git a/binutils/binutils_2.15.90.0.1.oe b/binutils/binutils_2.15.90.0.1.oe index 9c5b489804..1489ea1df6 100644 --- a/binutils/binutils_2.15.90.0.1.oe +++ b/binutils/binutils_2.15.90.0.1.oe @@ -4,13 +4,22 @@ DESCRIPTION = "A GNU collection of binary utilities" LICENSE = "GPL" MAINTAINER = "Gerald Britton " -# 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" diff --git a/binutils/binutils_2.15.90.0.3.oe b/binutils/binutils_2.15.90.0.3.oe new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3