diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-17 02:06:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-17 02:06:55 +0000 |
commit | 75e3babe18aaaded6c78e4b962bb3b37d7a2d6b1 (patch) | |
tree | aab3ea61a50e0633194f7445cda2d21d898e455d /sys-devel/binutils-bfin | |
parent | remove outdated changelog reference (diff) | |
download | gentoo-2-75e3babe18aaaded6c78e4b962bb3b37d7a2d6b1.tar.gz gentoo-2-75e3babe18aaaded6c78e4b962bb3b37d7a2d6b1.tar.bz2 gentoo-2-75e3babe18aaaded6c78e4b962bb3b37d7a2d6b1.zip |
Fix elf2flt support.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'sys-devel/binutils-bfin')
4 files changed, 126 insertions, 6 deletions
diff --git a/sys-devel/binutils-bfin/ChangeLog b/sys-devel/binutils-bfin/ChangeLog index d5847774cb4f..0d87f7e07668 100644 --- a/sys-devel/binutils-bfin/ChangeLog +++ b/sys-devel/binutils-bfin/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/binutils-bfin # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-bfin/ChangeLog,v 1.2 2006/01/15 11:41:17 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-bfin/ChangeLog,v 1.3 2006/01/17 02:06:55 vapier Exp $ + + 17 Jan 2006; Mike Frysinger <vapier@gentoo.org> + +files/elf2flt-configure-ldscript-path.patch, + binutils-bfin-2005.4_rc1.ebuild: + Fix elf2flt support. *binutils-bfin-2005.4_rc1 (15 Jan 2006) diff --git a/sys-devel/binutils-bfin/binutils-bfin-2005.4_rc1.ebuild b/sys-devel/binutils-bfin/binutils-bfin-2005.4_rc1.ebuild index 0a13a523d8c1..4ccd139568c0 100644 --- a/sys-devel/binutils-bfin/binutils-bfin-2005.4_rc1.ebuild +++ b/sys-devel/binutils-bfin/binutils-bfin-2005.4_rc1.ebuild @@ -1,20 +1,19 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-bfin/binutils-bfin-2005.4_rc1.ebuild,v 1.1 2006/01/15 11:41:17 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils-bfin/binutils-bfin-2005.4_rc1.ebuild,v 1.2 2006/01/17 02:06:55 vapier Exp $ [[ ${CTARGET} != bfin* && ${CATEGORY} == "sys-devel" ]] && export CTARGET="bfin-elf" BINUTILS_TYPE="custom" BINUTILS_VER="2.15" -ELF2FLT_VER="20060111" +ELF2FLT_VER="bundle" inherit toolchain-binutils STUPID_STAMP="774" MY_PV="3.4.05r4-2" DESCRIPTION="Binutils for Blackfin targets" HOMEPAGE="http://blackfin.uclinux.org/" -SRC_URI="http://blackfin.uclinux.org/frs/download.php/${STUPID_STAMP}/bfin-gcc-${MY_PV}.tar.gz - mirror://gentoo/elf2flt-${ELF2FLT_VER}.tar.bz2" +SRC_URI="http://blackfin.uclinux.org/frs/download.php/${STUPID_STAMP}/bfin-gcc-${MY_PV}.tar.gz" KEYWORDS="-* ~amd64 ~x86" @@ -25,4 +24,8 @@ src_unpack() { cd "${S}" epatch "${FILESDIR}"/binutils-bfin-2005.3.1-build.patch rm -r gdb libgloss mmalloc newlib readline sim + # move elf2flt where the eclass expects it + mv "${WORKDIR}"/bfin-gcc-${MY_PV}/elf2flt "${WORKDIR}"/elf2flt-${ELF2FLT_VER} + cd "${WORKDIR}"/elf2flt-${ELF2FLT_VER} + epatch "${FILESDIR}"/elf2flt-configure-ldscript-path.patch } diff --git a/sys-devel/binutils-bfin/files/digest-binutils-bfin-2005.4_rc1 b/sys-devel/binutils-bfin/files/digest-binutils-bfin-2005.4_rc1 index 7ebd60244694..4cecc20a673c 100644 --- a/sys-devel/binutils-bfin/files/digest-binutils-bfin-2005.4_rc1 +++ b/sys-devel/binutils-bfin/files/digest-binutils-bfin-2005.4_rc1 @@ -1,2 +1 @@ MD5 b1a60d6d5fffbc0af642c6554a7cea0f bfin-gcc-3.4.05r4-2.tar.gz 55042813 -MD5 b4f9e872d7a9c028017d38f90268ba35 elf2flt-20060111.tar.bz2 97522 diff --git a/sys-devel/binutils-bfin/files/elf2flt-configure-ldscript-path.patch b/sys-devel/binutils-bfin/files/elf2flt-configure-ldscript-path.patch new file mode 100644 index 000000000000..edbd0a764c1a --- /dev/null +++ b/sys-devel/binutils-bfin/files/elf2flt-configure-ldscript-path.patch @@ -0,0 +1,113 @@ +--- elf2flt/Makefile.in ++++ elf2flt/Makefile.in +@@ -13,7 +13,7 @@ TARGET = @target_alias@ + CFLAGS = @CFLAGS@ + INCLUDES = @bfd_include_dir@ @binutils_include_dir@ + CPPFLAGS = @CPPFLAGS@ +-LDFLAGS = @LDFLAGS@ -static ++LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + INSTALL = @INSTALL@ + DEFS = @DEFS@ -DTARGET_$(CPU) +--- elf2flt/configure ++++ elf2flt/configure +@@ -20,6 +20,8 @@ + ac_help="$ac_help + --with-binutils-include-dir=<dir> include path for binutils headers " + ac_help="$ac_help ++ --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld " ++ac_help="$ac_help + --disable-got-check - disable check for GOT (needed on H8) " + + # Initialize some variables set by options. +@@ -572,6 +574,16 @@ + fi + + ++# Check whether --with-binutils-ldscript-dir or --without-binutils-ldscript-dir was given. ++if test "${with_binutils_ldscript_dir+set}" = set; then ++ withval="$with_binutils_ldscript_dir" ++ ac_binutils_ldscript_dir=$withval ++else ++ ac_binutils_ldscript_dir=NONE ++ ++fi ++ ++ + # Check whether --enable-got-check or --disable-got-check was given. + if test "${enable_got_check+set}" = set; then + enableval="$enable_got_check" +@@ -1049,6 +1061,12 @@ + binutils_include_dir="-I$ac_binutils_include_dir" + fi + ++binutils_ldscript_dir= ++if test "$ac_binutils_ldscript_dir" = "NONE"; then ++ ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib" ++fi ++binutils_ldscript_dir="$ac_binutils_ldscript_dir" ++ + if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then + echo + echo "You need to specify the location of the libfd.a and libiberty.a" +@@ -1653,6 +1672,7 @@ + s%@CPP@%$CPP%g + s%@bfd_include_dir@%$bfd_include_dir%g + s%@binutils_include_dir@%$binutils_include_dir%g ++s%@binutils_ldscript_dir@%$binutils_ldscript_dir%g + s%@got_check@%$got_check%g + + CEOF +--- elf2flt/configure.in ++++ elf2flt/configure.in +@@ -25,6 +25,12 @@ AC_ARG_WITH(binutils-include-dir, + [ ac_binutils_include_dir=NONE ] + ) + ++AC_ARG_WITH(binutils-ldscript-dir, ++ [ --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld ], ++ [ ac_binutils_ldscript_dir=$withval ], ++ [ ac_binutils_ldscript_dir=NONE ] ++) ++ + AC_ARG_ENABLE(got-check, + [ --disable-got-check - disable check for GOT (needed on H8) ], + [ got_check=$enableval ], +@@ -62,6 +68,12 @@ if test "$ac_binutils_include_dir" != "N + binutils_include_dir="-I$ac_binutils_include_dir" + fi + ++binutils_ldscript_dir= ++if test "$ac_binutils_ldscript_dir" = "NONE"; then ++ ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib" ++fi ++binutils_ldscript_dir="$ac_binutils_ldscript_dir" ++ + if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then + echo + echo "You need to specify the location of the libfd.a and libiberty.a" +@@ -108,6 +120,7 @@ AC_SUBST(target_os) + AC_SUBST(target_vendor) + AC_SUBST(bfd_include_dir) + AC_SUBST(binutils_include_dir) ++AC_SUBST(binutils_ldscript_dir) + AC_SUBST(got_check) + + AC_OUTPUT(Makefile ld-elf2flt) +--- elf2flt/ld-elf2flt.in ++++ elf2flt/ld-elf2flt.in +@@ -15,12 +15,12 @@ + LINKER="$0.real" # the original renamed-linker + ELF2FLT="`expr $0 : '\(.*\)ld'`elf2flt" + TOOLDIR="`dirname $0`" # let gcc find the tools for us +-LDSCRIPTPATH="${TOOLDIR}/../@target_alias@/lib" # and the scripts ++LDSCRIPTPATH="@binutils_ldscript_dir@" # and the scripts + SHARED_ID="" + NEWLDSCRIPT="" + + # check TOOLDIR from prefix/bin/ or prefix/target-alias/bin/ +-[ -d "${TOOLDIR}/../@target_alias@/lib" ] || LDSCRIPTPATH="${TOOLDIR}/../lib" ++[ -d "${LDSCRIPTPATH}" ] || LDSCRIPTPATH="${TOOLDIR}/../lib" + + # + # if we have the elf2flt options, run it |