Update of /cvsroot/linux-vax/toolchain/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24802
Modified Files:
build_toolchain.sh
Log Message:
- Warn if `runtest' isn't there. Needed for checking.
- Run GCC testsuite later, after there's a libc. That way, at least
tests requiring a libc will work (though execution won't, of course...)
Index: build_toolchain.sh
===================================================================
RCS file: /cvsroot/linux-vax/toolchain/scripts/build_toolchain.sh,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- build_toolchain.sh 18 Dec 2005 12:21:55 -0000 1.44
+++ build_toolchain.sh 19 Dec 2005 12:28:45 -0000 1.45
@@ -23,12 +23,18 @@
# Test if all required tools are installed.
#
REQ_TOOLS="flex bison"
-for tool in $REQ_TOOLS; do
+for tool in ${REQ_TOOLS}; do
if ! which $tool > /dev/null; then
echo "Error: $tool is required by `basename $0` but was not found on your system." >&2
exit 1
fi
done
+WARN_TOOLS="runtest"
+for tool in ${WARN_TOOLS}; do
+ if ! which $tool > /dev/null; then
+ echo "Warning: $tool is possibly needed by `basename $0` but was not found on your system." >&2
+ fi
+done
#
@@ -558,17 +564,8 @@
# Build
build "${BUILD_GCC1}" && execute make ${MAKEFLAGS} all-gcc
- # Check
- build "${BUILD_GCC1}" && \
- build "${DO_CHECKS_GCC}" && \
- execute make ${MAKEFLAGS} check-gcc || true
-
# Install
build "${BUILD_GCC1}" && execute make ${MAKEFLAGS} install-gcc
-
- # Create a test summary to be sent as a proof that the vax-linux
- # community exists and is still alive.
- build "${DO_CHECKS_GCC}" && "${GCC_SRC}/contrib/test_summary" -m gcc...@gc... > "${ALL_BASE}/send_gcc_summary.sh"
popd
#
@@ -603,11 +600,12 @@
# Build
# build "${BUILD_GCC1}" && (yes "" | execute make ${MAKEFLAGS};)
- build "${BUILD_GCC1}" && execute make ${MAKEFLAGS}
+ build "${BUILD_UCLIBC}" && execute make headers
+ build "${BUILD_UCLIBC}" && execute make ${MAKEFLAGS}
# Install
- build "${BUILD_GCC1}" && execute make install
- build "${BUILD_GCC1}" && execute make DEVEL_PREFIX="${INSTALL_NATIVE_BASE}/usr/${TARGET}/" install
+ build "${BUILD_UCLIBC}" && execute make install
+ build "${BUILD_UCLIBC}" && execute make DEVEL_PREFIX="${INSTALL_NATIVE_BASE}/usr/${TARGET}/" install
case "${TARGET}" in
vax-*)
@@ -669,6 +667,20 @@
#
+# Now check GCC, if requested
+#
+pushd "${GCC1_BUILD}"
+ # Check
+ build "${BUILD_GCC1}" && \
+ build "${DO_CHECKS_GCC}" && \
+ execute make ${MAKEFLAGS} check-gcc || true
+
+ # Create a test summary to be sent as a proof that the vax-linux
+ # community exists and is still alive.
+ build "${DO_CHECKS_GCC}" && "${GCC_SRC}/contrib/test_summary" -m gcc...@gc... > "${ALL_BASE}/send_gcc_summary.sh"
+popd
+
+#
# Build binutils to run on the target system
#
pushd "${BINUTILS_NATIVE_BUILD}"
|