ports/101690: [NEW PORT] devel/cross-binutils: GNU binutils for cross-target embedded application
Stanislav Sedov
ssedov at mbsd.msk.ru
Wed Aug 9 09:10:28 UTC 2006
>Number: 101690
>Category: ports
>Synopsis: [NEW PORT] devel/cross-binutils: GNU binutils for cross-target embedded application
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 09 09:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Stanislav Sedov
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug 2 21:44:37 MSD
>Description:
GNU binutils for cross-target application development.
Prerequisite for the GCC cross-compiling enviropment.
WWW: http://sources.redhat.com/binutils/
>How-To-Repeat:
>Fix:
--- cross-binutils.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# cross-binutils
# cross-binutils/Makefile
# cross-binutils/distinfo
# cross-binutils/pkg-descr
# cross-binutils/files
# cross-binutils/files/patch-bfd_hash.c
#
echo c - cross-binutils
mkdir -p cross-binutils > /dev/null 2>&1
echo x - cross-binutils/Makefile
sed 's/^X//' >cross-binutils/Makefile << 'END-of-cross-binutils/Makefile'
X# ex:ts=2
X# New ports collection makefile for: cross-binutils
X# Date created: 8 August 2006
X# Whom: Stanislav Sedov <ssedov at mbsd.msk.ru>
X#
X# $MBSDlabs$
X# $FreeBSD$
X#
X
XPORTNAME= binutils
XPORTVERSION= 2.17
XCATEGORIES= devel
XMASTER_SITES= ${MASTER_SITE_SOURCEWARE}
XMASTER_SITE_SUBDIR= binutils/releases
X
XMAINTAINER= ssedov at mbsd.msk.ru
XCOMMENT= GNU binutils for cross-target embedded application
X
XWRKSRC= ${WRKDIR}/binutils-${PORTVERSION}
X
XUSE_BZIP2= yes
XUSE_GMAKE= yes
XGNU_CONFIGURE= yes
XNO_MTREE= yes
XNO_PACKAGE= no sense
XLATEST_LINK= cross-binutils
X
XPREFIX?= ${LOCALBASE}/${OUR_TARGET}
X
XOPTIONS= ALPHA "Build toolchain for alpha processor" off \
X ARC "Build toolchain for arc processor" off \
X ARM "Build toolchain for arm processor" off \
X ARM9E "Build toolchain for arm9e processor" off \
X ARMEB "Build toolchain for armeb processor" off \
X AVR "Build toolchain for avr processor" off \
X BFIN "Build toolchain for bfin processor" off \
X C30 "Build toolchain for c30 processor" off \
X C4X "Build toolchain for c4x processor" off \
X C54X "Build toolchain for c54x processor" off \
X CR16C "Build toolchain for cr16c processor" off \
X CRIS "Build toolchain for cris processor" off \
X CRX "Build toolchain for crx processor" off \
X D10V "Build toolchain for d10v processor" off \
X D30V "Build toolchain for d30v processor" off \
X DLX "Build toolchain for dlx processor" off \
X FR30 "Build toolchain for fr30 processor" off \
X FRV "Build toolchain for frv processor" off \
X H8500 "Build toolchain for h8500 processor" off \
X HPPA "Build toolchain for hppa processor" off \
X I960 "Build toolchain for i960 processor" off \
X IA64 "Build toolchain for ia64 processor" off \
X IP2K "Build toolchain for ip2k processor" off \
X IQ2000 "Build toolchain for iq2000 processor" off \
X M32C "Build toolchain for m32c processor" off \
X M32R "Build toolchain for m32r processor" off \
X M68HC11 "Build toolchain for m68hc11 processor" off \
X M68HC12 "Build toolchain for m68hc12 processor" off \
X MAXQ "Build toolchain for maxq processor" off \
X MCORE "Build toolchain for mcore processor" off \
X MIPS "Build toolchain for mips processor" off \
X MIPSEL "Build toolchain for mipsel processor" off \
X MMIX "Build toolchain for mmix processor" off \
X MN10200 "Build toolchain for mn10200 processor" off \
X MN10300 "Build toolchain for mn10300 processor" off \
X MSP430 "Build toolchain for msp430 processor" off \
X MT "Build toolchain for mt processor" off \
X NS32K "Build toolchain for ns32k processor" off \
X OPENRISC "Build toolchain for openrisc processor" off \
X OR32 "Build toolchain for or32 processor" off \
X PDP11 "Build toolchain for pdp11 processor" off \
X PJ "Build toolchain for pj processor" off \
X PJL "Build toolchain for pjl processor" off \
X POWERPC "Build toolchain for powerpc processor" off \
X POWERPC64 "Build toolchain for powerpc64 processor" off \
X POWERPC64LE "Build toolchain for ppc64(le) processor" off \
X POWERPCLE "Build toolchain for ppc(le) processor" off \
X S390 "Build toolchain for s390 processor" off \
X S390X "Build toolchain for s390x processor" off \
X SH1 "Build toolchain for sh1 processor" off \
X SH2 "Build toolchain for sh2 processor" off \
X SH3 "Build toolchain for sh3 processor" off \
X SH4 "Build toolchain for sh4 processor" off \
X SH5 "Build toolchain for sh5 processor" off \
X SH5LE "Build toolchain for sh5le processor" off \
X SH64 "Build toolchain for sh64 processor" off \
X SH64EB "Build toolchain for sh64eb processor" off \
X SH64LE "Build toolchain for sh64le processor" off \
X SPARC "Build toolchain for sparc processor" off \
X SPARC64 "Build toolchain for sparc64 processor" off \
X SPARC86X "Build toolchain for sparc86x processor" off \
X SPARCLET "Build toolchain for sparclet processor" off \
X SPARCLITE "Build toolchain for sparclite processor" off \
X STRONGARM "Build toolchain for strongarm processor" off \
X TAHOE "Build toolchain for tahoe processor" off \
X V850 "Build toolchain for v850 processor" off \
X V850E "Build toolchain for v850e processor" off \
X V850EA "Build toolchain for v850ea processor" off \
X VAX "Build toolchain for vax processor" off \
X W65 "Build toolchain for w65 processor" off \
X WE32K "Build toolchain for we32k processor" off \
X X86_64 "Build toolchain for x86_64 processor" off \
X XC16X "Build toolchain for xc16x processor" off \
X XSCALE "Build toolchain for xscale processor" off \
X XSTORMY16 "Build toolchain for xstormy16 processor" off \
X XTENSA "Build toolchain for xtensa processor" off \
X Z80 "Build toolchain for z80 processor" off
X
XOPT_AVAIL= ${OPTIONS:C/[ \t]*".*"//g:C/[ \t]*off//g}
X
X.include <bsd.port.pre.mk>
X
X.for OPT in ${OPT_AVAIL}
X. if defined(WITH_${OPT}) && defined(OUR_CPU)
XBROKEN= you can select only one cpu at once
X. endif
X. if defined(WITH_${OPT})
XOUR_CPU= ${OPT:L}
X. if defined(${OPT}_ARGS)
XCONFIGURE_ARGS= ${${OPT}_ARGS}
X. endif
X. endif
X.endfor
X
X.if !defined(OUR_CPU)
XBROKEN= you should select at least one CPU
X.endif
X
X.if defined(WITH_ABI)
XOUR_ABI= ${WITH_ABI}
X.else
XOUR_ABI= elf
X.endif
X
XOUR_TARGET= ${OUR_CPU}-portbuild-${OUR_ABI}
X
XPKGNAMEPREFIX= ${OUR_CPU}-${OUR_ABI}-
XCONFIGURE_ARGS+= --disable-nls \
X --target=${OUR_TARGET} \
X --with-system-zlib \
X --with-libiconv-prefix=${LOCALDIR} \
X --libdir=${PREFIX}/lib/gcc/${OUR_TARGET}
X
XMAN1= ${OUR_TARGET}-addr2line.1 \
X ${OUR_TARGET}-ar.1 \
X ${OUR_TARGET}-as.1 \
X ${OUR_TARGET}-c++filt.1 \
X ${OUR_TARGET}-dlltool.1 \
X ${OUR_TARGET}-ld.1 \
X ${OUR_TARGET}-nlmconv.1 \
X ${OUR_TARGET}-nm.1 \
X ${OUR_TARGET}-objcopy.1 \
X ${OUR_TARGET}-objdump.1 \
X ${OUR_TARGET}-ranlib.1 \
X ${OUR_TARGET}-readelf.1 \
X ${OUR_TARGET}-size.1 \
X ${OUR_TARGET}-strings.1 \
X ${OUR_TARGET}-strip.1 \
X ${OUR_TARGET}-windres.1
X
XINFO= as binutils ld
X
XBINARIES= addr2line ar as c++filt ld \
X nm objcopy objdump ranlib \
X readelf size strings strip
X
Xpre-extract:
X @${ECHO_CMD}
X @${ECHO_CMD} "========================================================"
X @${ECHO_CMD} "Building toolchain for ${OUR_TARGET}"
X @${ECHO_CMD} "You can specify ABI using WITH_ABI option"
X @${ECHO_CMD} "Note: some ABIs might not be supported by all archs"
X @${ECHO_CMD} "========================================================"
X @${ECHO_CMD}
X
Xpost-extract:
X @${REINPLACE_CMD} -E -e 's,^(install:).*,\1,' \
X ${WRKSRC}/bfd/Makefile.in \
X ${WRKSRC}/etc/Makefile.in \
X ${WRKSRC}/libiberty/Makefile.in \
X ${WRKSRC}/opcodes/Makefile.in
X
Xpost-install:
X.for F in ${BINARIES}
X @${LN} -sf ${PREFIX}/bin/${OUR_TARGET}-$F \
X ${PREFIX}/bin/$F
X @${ECHO_CMD} "@exec ln -sf %D/bin/${OUR_TARGET}-$F %D/bin/$F" \
X >> ${TMPPLIST}
X.endfor
X.for DIR in ${PREFIX}/bin ${PREFIX}/${OUR_TARGET}
X @${FIND} ${DIR} ! -type d | \
X ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
X @${FIND} ${DIR} -type d | ${SORT} -r | \
X ${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
X.endfor
X @${ECHO_CMD} "@dirrm man/man1" >> ${TMPPLIST}
X @${ECHO_CMD} "@dirrm man" >> ${TMPPLIST}
X
X.include <bsd.port.post.mk>
END-of-cross-binutils/Makefile
echo x - cross-binutils/distinfo
sed 's/^X//' >cross-binutils/distinfo << 'END-of-cross-binutils/distinfo'
XMD5 (binutils-2.17.tar.bz2) = e26e2e06b6e4bf3acf1dc8688a94c0d1
XSHA256 (binutils-2.17.tar.bz2) = e2c33ce6f23c9a366f109ced295626cb2f8bd6b2f08ff9df6dafb5448505a25e
XSIZE (binutils-2.17.tar.bz2) = 13795751
END-of-cross-binutils/distinfo
echo x - cross-binutils/pkg-descr
sed 's/^X//' >cross-binutils/pkg-descr << 'END-of-cross-binutils/pkg-descr'
XGNU binutils for cross-target application development.
X
XPrerequisite for the GCC cross-compiling enviropment.
X
XWWW: http://sources.redhat.com/binutils/
END-of-cross-binutils/pkg-descr
echo c - cross-binutils/files
mkdir -p cross-binutils/files > /dev/null 2>&1
echo x - cross-binutils/files/patch-bfd_hash.c
sed 's/^X//' >cross-binutils/files/patch-bfd_hash.c << 'END-of-cross-binutils/files/patch-bfd_hash.c'
X--- bfd/hash.c.orig Tue Aug 8 14:21:29 2006
X+++ bfd/hash.c Tue Aug 8 14:22:07 2006
X@@ -298,7 +298,7 @@
X */
X
X /* The default number of entries to use when creating a hash table. */
X-#define DEFAULT_SIZE 4051
X+#define DEFAULT_SIZE 32000
X static size_t bfd_default_hash_table_size = DEFAULT_SIZE;
X
X /* Create a new hash table, given a number of entries. */
END-of-cross-binutils/files/patch-bfd_hash.c
exit
--- cross-binutils.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list