Update to latest version, which is mix of toolchain from 8.3.1.0 and

support files from 8.3.2.2
This commit is contained in:
Lev A. Serebryakov 2020-04-02 18:11:44 +00:00
parent d439f6d42a
commit 69cc3b2454
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=530395
4 changed files with 1928 additions and 1523 deletions

View file

@ -1,35 +1,34 @@
# $FreeBSD$
PORTNAME= gcc-msp430-ti-toolchain
PORTVERSION= ${GCC_VERSION}.${TI_VERSION}.${RELEASE_DATE}
PORTREVISION?= 2
PORTVERSION= ${TI_VERSION}.${RELEASE_DATE}
#PORTREVISION?= 0
CATEGORIES= devel
MASTER_SITES= GCC/releases/gcc-${GCC_REL_VERSION}:gcc \
SOURCEWARE/binutils/releases:binutils \
ftp://sources.redhat.com/pub/:newlib \
GNU/gdb:gdb \
SOURCEWARE/newlib:newlib \
http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/${TI_VERSION:S/./_/g}/exports/:ti \
http://www.ti.com/lit/ml/slau591${DOC_VERSION}/:docs
http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/${TI_VERSION_PATCH:S/./_/g}/export/:tipatch \
http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/${TI_VERSION:S/./_/g}/export/:tisupport \
http://www.ti.com/lit/ug/slau${DOC_VERSION}/:tidocs
DISTFILES= gcc-${GCC_REL_VERSION}.tar.xz:gcc \
binutils-${BINUTILS_VERSION}.tar.bz2:binutils \
gdb-${GDB_VERSION}.tar.gz:gdb \
gdb-${GDB_VERSION}.tar.xz:gdb \
newlib-${NEWLIB_VERSION}.tar.gz:newlib \
msp430-gcc-${PATCHSET_VERSION}_source-patches.tar.bz2:ti \
msp430-gcc-support-files-${SUPPORT_VERSION}.zip:ti \
slau591${DOC_VERSION}.pdf:docs
msp430-gcc-${PATCHSET_VERSION}-source-patches.tar.bz2:tipatch \
msp430-gcc-support-files-${SUPPORT_VERSION}.zip:tisupport \
slau${DOC_VERSION}.pdf:tidocs
EXTRACT_ONLY= gcc-${GCC_REL_VERSION}.tar.xz \
binutils-${BINUTILS_VERSION}.tar.bz2 \
gdb-${GDB_VERSION}.tar.gz \
gdb-${GDB_VERSION}.tar.xz \
newlib-${NEWLIB_VERSION}.tar.gz \
msp430-gcc-${PATCHSET_VERSION}_source-patches.tar.bz2 \
msp430-gcc-${PATCHSET_VERSION}-source-patches.tar.bz2 \
msp430-gcc-support-files-${SUPPORT_VERSION}.zip
MAINTAINER= lev@FreeBSD.org
COMMENT= Complete gcc-based toolcahin for TI MSP430 uC
BROKEN= unfetchable
LICENSE= GPLv2 LGPL20 LGPL21 GPLv3 LGPL3
LICENSE_COMB= multi
@ -38,43 +37,39 @@ LIB_DEPENDS= libgmp.so:math/gmp \
libmpc.so:math/mpc \
libisl.so:devel/isl
BROKEN_aarch64= fails to compile: c++: error: unsupported option -print-multi-os-directory
BROKEN_mips= fails to configure: cannot compute suffix of object files
BROKEN_mips64= fails to configure: cannot compute suffix of object files
BROKEN_powerpc64= fails to compile: longlong.h: internal compiler error: Segmentation fault
# Akami tarpitting fetch by user agent
FETCH_BEFORE_ARGS= --user-agent=Wget/1.20.3
USES= bison compiler cpe gmake iconv libtool makeinfo ncurses \
tar:bzip2
USE_CSTD= gnu89
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${PREFIX}/${SUBPREFIX}
TI_VERSION= 5.01.02.00
GCC_REL_VERSION= 6.4.0
GCC_VERSION= 6.4.0
SUPPORT_VERSION= 1.204
TI_VERSION= 8.3.2.2
TI_VERSION_PATCH= 8.3.1.0
GCC_REL_VERSION= 8.3.0
GCC_VERSION= 8.3.1
SUPPORT_VERSION= 1.209
BINUTILS_VERSION= 2.26
GDB_VERSION= 7.11
GDB_VERSION= 8.1
NEWLIB_VERSION= 2.4.0
PATCHSET_VERSION= 6.4.0.32
DOC_VERSION= c
RELEASE_DATE= 2018008
PATCHSET_VERSION= 8.3.1.25
DOC_VERSION= 646e
RELEASE_DATE= 20200313
TARGET= msp430-elf
CPE_PRODUCT= gcc
CPE_VENDOR= gnu
CPE_VERSION= ${GCC_REL_VERSION}
SUBPREFIX= ${PORTNAME}-${TI_VERSION}
PATCH_WRKSRC= ${WRKDIR}
MANPREFIX= ${GNU_CONFIGURE_PREFIX}
DOCSDIR= ${GNU_CONFIGURE_PREFIX}/docs
MANPREFIX= ${PREFIX}/${PORTNAME}-${TI_VERSION}
DOCSDIR= ${PREFIX}/${PORTNAME}-${TI_VERSION}/docs
PLIST_SUB+= TARGET=${TARGET} GCC_VERSION=${GCC_VERSION} \
TI_VERSION=${TI_VERSION} DOC_VERSION=${DOC_VERSION}
DIST_PATCH_ARGS=--forward --force --quiet --remove-empty-files --strip=1
DIST_PATCH_ARGS=--forward --force --quiet --remove-empty-files --strip=0
UNNEEDED_HOST_FILES= lib/lib${TARGET}-sim.a
UNNEEDED_HOST_DIRS= lib/gcc/${TARGET}/${GCC_VERSION}/plugin/include/ada \
@ -82,94 +77,117 @@ UNNEEDED_HOST_DIRS= lib/gcc/${TARGET}/${GCC_VERSION}/plugin/include/ada \
lib/gcc/${TARGET}/${GCC_VERSION}/plugin/include/objc \
include info man share
GCC_DIRS_FROM_BINUTILS= bfd binutils gas gprof ld opcodes
BUILD_DIR= ${WRKDIR}/build
INTERIM_WORLD= ${WRKDIR}/install
INTERIM_PREFIX= ${INTERIM_WORLD}/${PORTNAME}-${TI_VERSION}
MAKE_ENV= PATH="${PATH}:${INTERIM_PREFIX}/bin"
CONFIGURE_ENV= PATH="${PATH}:${INTERIM_PREFIX}/bin"
GCC_DIRS_FROM_NEWLIB= libgloss newlib
CONFIGURE_ARGS_COMMON= --prefix=${INTERIM_PREFIX} \
--target=msp430-elf \
--enable-languages=c,c++ \
--disable-nls \
--enable-initfini-array
pre-patch:
@${ECHO_MSG} "===> Apply distribution patches..."
@${ECHO_MSG} "====> Patch gcc"
@cd ${WRKDIR}/gcc-${GCC_REL_VERSION} && \
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}_source-patches/gcc-${GCC_REL_VERSION:S/./_/g}-release.diff
# binutils patch contains chunks for files not included into distirbution
@${ECHO_MSG} "====> Patch binutils (ignore error message, please)"
-@cd ${WRKDIR}/binutils-${BINUTILS_VERSION} && \
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}-source-patches/gcc-${GCC_REL_VERSION:S/./_/g}-release.patch
@${ECHO_MSG} "====> Patch binutils"
@cd ${WRKDIR}/binutils-${BINUTILS_VERSION} && \
${MKDIR} sim/testsuite/sim/msp430 && \
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}_source-patches/binutils-${BINUTILS_VERSION:S/./_/g}.diff > /dev/null 2>&1
# gdb patch contains chunks for files not included into distirbution
@${ECHO_MSG} "====> Patch gdb (ignore error message, please)"
-@cd ${WRKDIR}/gdb-${GDB_VERSION} && \
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}-source-patches/binutils-${BINUTILS_VERSION:S/./_/g}.patch
@${ECHO_MSG} "====> Patch gdb"
@cd ${WRKDIR}/gdb-${GDB_VERSION} && \
${MKDIR} gas/config ld/emultempl && \
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}_source-patches/gdb-${GDB_VERSION}-release.diff > /dev/null 2>&1
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}-source-patches/gdb-${GDB_VERSION}-release.patch
@${ECHO_MSG} "====> Patch newlib"
@cd ${WRKDIR}/newlib-${NEWLIB_VERSION} && \
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}_source-patches/newlib-${NEWLIB_VERSION:S/./_/g}.diff
${PATCH} ${DIST_PATCH_ARGS} < ${WRKDIR}/msp430-gcc-${PATCHSET_VERSION}-source-patches/newlib-${NEWLIB_VERSION:S/./_/g}.patch
pre-configure:
.for _DIR in ${GCC_DIRS_FROM_BINUTILS}
@${LN} -fns ${WRKDIR}/binutils-${BINUTILS_VERSION}/${_DIR} ${WRKDIR}/gcc-${GCC_REL_VERSION}/${_DIR}
.endfor
do-configure:
.for _DIR in ${GCC_DIRS_FROM_NEWLIB}
@${LN} -fns ${WRKDIR}/newlib-${NEWLIB_VERSION}/${_DIR} ${WRKDIR}/gcc-${GCC_REL_VERSION}/${_DIR}
.endfor
@${MKDIR} ${WRKDIR}/build/gcc ${WRKDIR}/build/gdb
do-configure:
@cd ${WRKDIR}/build/gcc && \
${MAKE_ENV} ${CONFIGURE_ENV} ${WRKDIR}/gcc-${GCC_REL_VERSION}/configure \
--prefix=${PREFIX}/${SUBPREFIX} \
--target=msp430-elf \
--enable-languages=c,c++ \
--disable-nls \
--enable-target-optspace \
--enable-newlib-nano-formatted-io \
--with-gmp=${PREFIX} \
--with-mprf=${PREFIX} \
--with-mpc=${PREFIX} \
--with-isl=${PREFIX} \
--with-pkgversion="FreeBSD Ports Collection" \
--with-system-zlib
@cd ${WRKDIR}/build/gdb && \
${MAKE_ENV} ${CONFIGURE_ENV} ${WRKDIR}/gdb-${GDB_VERSION}/configure \
--prefix=${PREFIX}/${SUBPREFIX} \
--target=msp430-elf \
--enable-languages=c,c++ \
${ICONV_CONFIGURE_ARG} \
--disable-nls \
--disable-binutils \
--disable-gas \
--disable-ld \
--disable-gprof \
--disable-etc \
--with-pkgversion="FreeBSD Ports Collection"
@${RM} -r ${BUILD_DIR}
@${MKDIR} ${BUILD_DIR}
@${RM} -r ${INTERIM_PREFIX}
@${MKDIR} ${INTERIM_PREFIX}
do-build:
@cd ${WRKDIR}/build/gcc && \
${DO_MAKE_BUILD}
@cd ${WRKDIR}/build/gdb && \
${DO_MAKE_BUILD}
# Build & install binutils
${MKDIR} ${BUILD_DIR}/binutils
@cd ${BUILD_DIR}/binutils && \
${MAKE_ENV} ${CONFIGURE_ENV} ${WRKDIR}/binutils-${BINUTILS_VERSION}/configure \
${CONFIGURE_ARGS_COMMON} \
--disable-sim \
--disable-gdb \
--disable-werror \
--with-pkgversion="FreeBSD Ports Collection" \
--with-system-zlib
@cd ${BUILD_DIR}/binutils && \
${DO_MAKE_BUILD}
@cd ${BUILD_DIR}/binutils && \
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install DESTDIR=''
# Build & install gcc & newlib
@${MKDIR} ${BUILD_DIR}/gcc
@cd ${BUILD_DIR}/gcc && \
${MAKE_ENV} ${CONFIGURE_ENV} ${WRKDIR}/gcc-${GCC_REL_VERSION}/configure \
${CONFIGURE_ARGS_COMMON} \
--enable-target-optspace \
--enable-newlib-nano-formatted-io \
--with-gmp=${PREFIX} \
--with-mprf=${PREFIX} \
--with-mpc=${PREFIX} \
--with-isl=${PREFIX} \
--with-pkgversion="FreeBSD Ports Collection" \
--with-system-zlib
@cd ${BUILD_DIR}/gcc && \
${DO_MAKE_BUILD}
@cd ${BUILD_DIR}/gcc && \
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install DESTDIR=''
# Build & install gdb
@${MKDIR} ${BUILD_DIR}/gdb
@cd ${BUILD_DIR}/gdb && \
${MAKE_ENV} ${CONFIGURE_ENV} ${WRKDIR}/gdb-${GDB_VERSION}/configure \
${CONFIGURE_ARGS_COMMON} \
--disable-binutils \
--disable-gas \
--disable-ld \
--disable-gprof \
--disable-etc \
--without-mpfr \
--without-lzma \
--with-python=no \
--with-pkgversion="FreeBSD Ports Collection" \
--with-system-zlib
@cd ${BUILD_DIR}/gdb && \
${DO_MAKE_BUILD}
@cd ${BUILD_DIR}/gdb && \
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install DESTDIR=''
do-install:
@cd ${WRKDIR}/build/gcc && \
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install
@cd ${WRKDIR}/build/gdb && \
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install
@${TAR} -cf - -C ${INTERIM_WORLD} ${PORTNAME}-${TI_VERSION} | ${TAR} -xf - -C ${STAGEDIR}${PREFIX}
@${ECHO_MSG} "Remove unneeded host files..."
@for f in ${UNNEEDED_HOST_FILES} ; do \
${RM} "${STAGEDIR}${GNU_CONFIGURE_PREFIX}/$$f" ; \
${RM} "${STAGEDIR}${PREFIX}/$$f" ; \
done
@for f in ${UNNEEDED_HOST_DIRS} ; do \
${RM} -r "${STAGEDIR}${GNU_CONFIGURE_PREFIX}/$$f" ; \
${RM} -r "${STAGEDIR}${PREFIX}/$$f" ; \
done
@${ECHO_MSG} "Install devices' headers and linker scripts..."
@${MKDIR} ${STAGEDIR}${GNU_CONFIGURE_PREFIX}/include
@${MKDIR} ${STAGEDIR}${PREFIX}/include
cd ${WRKDIR}/msp430-gcc-support-files && \
${TAR} cf - . | \
${TAR} xf - -C ${STAGEDIR}${GNU_CONFIGURE_PREFIX}
${TAR} xf - -C ${STAGEDIR}${PREFIX}/${PORTNAME}-${TI_VERSION}
@${ECHO_MSG} "Install minimal documentation..."
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/slau591${DOC_VERSION}.pdf \
${STAGEDIR}${DOCSDIR}/slau591c.pdf
${INSTALL_DATA} ${FILESDIR}/watchdog.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/slau${DOC_VERSION}.pdf \
${STAGEDIR}${DOCSDIR}/slau${DOC_VERSION}.pdf
${INSTALL_DATA} ${FILESDIR}/watchdog.txt ${STAGEDIR}${DOCSDIR}/watchdog.txt
.include <bsd.port.mk>

View file

@ -1,15 +1,15 @@
TIMESTAMP = 1521644330
SHA256 (gcc-6.4.0.tar.xz) = 850bf21eafdfe5cd5f6827148184c08c4a0852a37ccf36ce69855334d2c914d4
SIZE (gcc-6.4.0.tar.xz) = 76156220
TIMESTAMP = 1585846575
SHA256 (gcc-8.3.0.tar.xz) = 64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c
SIZE (gcc-8.3.0.tar.xz) = 63694700
SHA256 (binutils-2.26.tar.bz2) = c2ace41809542f5237afc7e3b8f32bb92bc7bc53c6232a84463c423b0714ecd9
SIZE (binutils-2.26.tar.bz2) = 25543552
SHA256 (gdb-7.11.tar.gz) = 9382f5534aa0754169e1e09b5f1a3b77d1fa8c59c1e57617e06af37cb29c669a
SIZE (gdb-7.11.tar.gz) = 35215975
SHA256 (gdb-8.1.tar.xz) = af61a0263858e69c5dce51eab26662ff3d2ad9aa68da9583e8143b5426be4b34
SIZE (gdb-8.1.tar.xz) = 20095080
SHA256 (newlib-2.4.0.tar.gz) = 545b3d235e350d2c61491df8b9f775b1b972f191380db8f52ec0b1c829c52706
SIZE (newlib-2.4.0.tar.gz) = 17574364
SHA256 (msp430-gcc-6.4.0.32_source-patches.tar.bz2) = 86cdb63e289044ddd1b88e4abf125cd137639dfd6b7cd4e674b94ac3c88828af
SIZE (msp430-gcc-6.4.0.32_source-patches.tar.bz2) = 39465
SHA256 (msp430-gcc-support-files-1.204.zip) = 401630dbaad23db17ad2edfba31a16f4a1fd1588e131140b5ca3a416b7534e11
SIZE (msp430-gcc-support-files-1.204.zip) = 21631764
SHA256 (slau591c.pdf) = 250554606c61bea6a3ceabe7c16bb01f5722509dc1cb74c1b6666551b23ffd2f
SIZE (slau591c.pdf) = 44202
SHA256 (msp430-gcc-8.3.1.25-source-patches.tar.bz2) = a100f09f45c27f2c272718c5f3a90c00e3039fa6560ccc054ad5449d470054fa
SIZE (msp430-gcc-8.3.1.25-source-patches.tar.bz2) = 353168
SHA256 (msp430-gcc-support-files-1.209.zip) = 30ca61e52edd025ec755ab8665c887782613a228ad0875bb24dbe38d68a435a4
SIZE (msp430-gcc-support-files-1.209.zip) = 22277612
SHA256 (slau646e.pdf) = c69972a0b1337aa141b10d014e62571bf2b204a42380686f97be4a8be3cca9b0
SIZE (slau646e.pdf) = 1397163

View file

@ -1,20 +0,0 @@
--- binutils-2.26/bfd/elflink.c.orig 2018-01-25 17:15:39.513265000 +0300
+++ binutils-2.26/bfd/elflink.c 2018-01-25 17:16:03.663426000 +0300
@@ -5058,7 +5058,7 @@
len = strlen (name);
copy = (char *) bfd_alloc (abfd, len);
if (copy == NULL)
- return (struct elf_link_hash_entry *) 0 - 1;
+ return (struct elf_link_hash_entry *)(intptr_t)-1;
first = p - name + 1;
memcpy (copy, name, first);
@@ -5156,7 +5156,7 @@
}
h = archive_symbol_lookup (abfd, info, symdef->name);
- if (h == (struct elf_link_hash_entry *) 0 - 1)
+ if (h == (struct elf_link_hash_entry *)(intptr_t)-1)
goto error_return;
if (h == NULL)

File diff suppressed because it is too large Load diff