From 180a2ebdea4956032fd1532561cb3b43e971d72e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 27 Jan 2003 16:38:54 +0000 Subject: 2003-01-27 RTEMS * buildalltar.in, setup.def: Tool update including binaries for Cygwin with a special RTEMS user account. --- scripts/buildalltar.in | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'scripts/buildalltar.in') diff --git a/scripts/buildalltar.in b/scripts/buildalltar.in index 5ee08a7307..dd3e85143c 100644 --- a/scripts/buildalltar.in +++ b/scripts/buildalltar.in @@ -95,26 +95,30 @@ fi # This is the full list .. hppa1.1 does not build now. -#ALL_TARGETS="hppa1.1-rtems i386-rtems i960-rtems m68k-rtems \ -# m68k-rtemself mips-rtems mips64orion-rtems \ -# powerpc-rtems sh-rtems sh-rtemself sparc-rtems" +#ALL_TARGETS="arm-rtems h8300-rtems hppa1.1-rtems i386-rtems i960-rtems \ +# m68k-rtems mips64orion-rtems mips-rtems or32-rtems powerpc-rtems \ +# sh-rtems sh-rtemself sparc-rtems" # This is the full buildable set. if [ "X${TARGETS}" = "X" ] ; then # do not include c4x or hppa primary targets # do not include sh-elf or i960-elf secondary targets - TARGETS="arm-rtems h8300-rtems i386-rtems i960-rtems m68k-rtems \ - mips-rtems mips64orion-rtems powerpc-rtems sh-rtems sparc-rtems" + TARGETS="arm-rtems h8300-rtems hppa1.1-rtems i386-rtems \ + m68k-rtems mips64orion-rtems mips-rtems powerpc-rtems \ + sh-rtems sh-rtemself sparc-rtems" fi . $CFG +# override the one from $CFG since it likely has a % in it to use the +# .rpmrc setting which we can't use +rpm_build_root=${HOME}/tmp + binutils=${binutils_version} -gcc=${gcc_version} +gcc=${gcc3_version} gdb=${gdb_version} -newlib=${newlib_version} +newlib=${gcc3newlib_version} # also use binutils_rpm_release -buildroot=/tmp # # Now get started @@ -203,12 +207,12 @@ do make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1 check_fatal $? "make install-info" - cd ${buildroot} + cd ${rpm_build_root} tar cjf ${bintarfile}.bz2 opt cd ${CWD} rm -rf b-${target}-bin ${ECHO} rm -rf ${rpm_build_root}/opt - #rm -rf ${rpm_build_root}/opt + rm -rf ${rpm_build_root}/opt else echo Skipping binutils for ${target} fi @@ -225,8 +229,7 @@ do gcctarfile=${OUT}/${target}-gcc-${gcc}-newlib-${newlib}-${gccnewlib_rpm_release}.tar if [ ${cdn_cross} = "no" ] ; then bintarfile=${dst}/binaries/binutils-${binutils}-${binutils_rpm_release}/${target}-binutils-${binutils}-${binutils_rpm_release}.tar - cd / - rm -rf /opt/* + rm -rf ${rpm_build_root}/opt/* tar xjf ${bintarfile}.bz2 fi @@ -244,7 +247,10 @@ do cd b-${target}-gccnewlib echo "Building gcc-${gcc} for ${target}" ../gcc-${gcc}/configure ${CDN_ARGS} --target=${target} \ - --with-gnu-as --with-gnu-ld --with-newlib --verbose --enable-threads \ + --with-gnu-as --with-gnu-ld --with-newlib --verbose \ + --with-system-zlib --disable-nls \ + --enable-version-specific-runtime-libs \ + --enable-threads=rtems \ --prefix=/opt/rtems '--enable-languages=c,c++' >${logfile} 2>&1 check_fatal $? "gcc configure" @@ -261,7 +267,7 @@ do make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1 check_fatal $? "newlib make install-info" - cd ${buildroot} + cd ${rpm_build_root} tar cjf ${gcctarfile}.bz2 opt cd ${CWD} rm -rf ${rpm_build_root}/opt @@ -320,7 +326,7 @@ esac make prefix=${rpm_build_root}/opt/rtems install-info >>${logfile} 2>&1 check_fatal $? "make install-info" - cd ${buildroot} + cd ${rpm_build_root} tar cjf ${gdbtarfile}.bz2 opt cd ${CWD} ${ECHO} rm -rf ${rpm_build_root}/opt -- cgit v1.2.3