summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-03 19:10:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-03 19:10:06 +0000
commit51de164f1d96fe6befc3a7c8dbc711b791e08c16 (patch)
treeabad0be96b958fa5cb25579a01064c86bbf7274b /gcc
parent2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-testing-51de164f1d96fe6befc3a7c8dbc711b791e08c16.tar.bz2
2009-07-03 Joel Sherrill <joel.sherrill@rtems.org>
* gcc/do_one: qemu is installed as pc386. Name of BSP to script does not always match name of BSP to RTEMS.
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/do_one12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/do_one b/gcc/do_one
index 3d40566..9c705bd 100755
--- a/gcc/do_one
+++ b/gcc/do_one
@@ -55,6 +55,7 @@ verbose=no
usage()
{
cat <<EOF
+do_one [options] CPU BSP
-A - binutils, stage 1, C++, C/C++ multilib, Ada, RTEMS
-T - run GCC and Ada tests
-b - install binutils (from source or copy installed RPM contents)
@@ -184,6 +185,12 @@ if [ ${needBSP} = yes -a x${bsp} = x ] ; then
fi
TARGET=${cpu}-rtems${RTEMS_VERSION}
+
+if [ x${bsp} = xqemu ] ; then
+ BSP_BUILT=pc386
+else
+ BSP_BUILT=${bsp}
+fi
######### Consistency check installation of source
@@ -341,6 +348,7 @@ j_gdb()
cd b-gdb-${cpu}
(${GDBDIR}/configure --target=${GDBTARGET} \
--enable-sim --enable-sim-hardware \
+ --disable-werror \
--enable-timebase --enable-sim-trace --prefix=$INSTALL && \
make ${MAKEJOBS} && make install) >${LOGDIR}/${cpu}-gdb.log 2>&1
if [ $? -ne 0 ] ; then
@@ -546,14 +554,14 @@ j_gcc2()
ada_multilib="--disable-multilib"
fi
-# CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${bsp}/lib/
+# CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/
${GCCDIR}/configure \
${GCC_EXTRA_ARGS} \
--enable-threads=rtems --with-gnu-as ${ada_multilib} \
--enable-newlib-mb --enable-newlib-iconv \
--with-gnu-ld --with-newlib --verbose --with-system-zlib --disable-nls \
- CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${bsp}/lib/ \
+ CFLAGS_FOR_TARGET=-B${BSP_INSTALL}/${TARGET}/${BSP_BUILT}/lib/ \
--enable-version-specific-runtime-libs \
--enable-languages=c,ada --target=$TARGET --prefix=$INSTALL &&
make ${MAKEJOBS} &&