[rtems-testing commit] parallelize_build: autotools before RTEMS bootstrap

Joel Sherrill joel at rtems.org
Fri Jan 11 16:59:32 UTC 2013


Module:    rtems-testing
Branch:    master
Commit:    ae6fbf2af57b5581f6d458c1c9bab17285422e57
Changeset: http://git.rtems.org/rtems-testing/commit/?id=ae6fbf2af57b5581f6d458c1c9bab17285422e57

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Jan 11 11:04:06 2013 -0600

parallelize_build: autotools before RTEMS bootstrap

---

 gcc/parallelize_build |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/gcc/parallelize_build b/gcc/parallelize_build
index 5f3b3ed..cf55c21 100755
--- a/gcc/parallelize_build
+++ b/gcc/parallelize_build
@@ -141,15 +141,21 @@ if [ ${do_prep} = "yes" ] ; then
     mkdir ${INSTALL}
   fi
 
+  # Autoconf and automake must be installed before we bootstrap RTEMS
+  cd ${BASEDIR}/${AUTOCONF} && \
+    (./configure --prefix=${INSTALL} && make && make install) \
+      >${LOGDIR}/autoconf.log 2>&1
+  check_fatal ${status} "*** Failed to build and install ${AUTOCONF}"
+
+  cd ${BASEDIR}/${AUTOMAKE} && \
+    (./configure --prefix=${INSTALL} && make && make install) \
+      >${LOGDIR}/autoconf.log 2>&1
+  check_fatal ${status} "*** Failed to build and install ${AUTOMAKE}"
+
+  # We can bootstrap RTEMS and build a native compiler in parallel
   parallel --verbose ${JOBS} ${dryrun} <<EOF
 (cd ${RTEMSDIR} && ./bootstrap -c && ./bootstrap) >${LOGDIR}/bootstrap.log 2>&1
 ${SCRIPTDIR}/gcc/do_one -n 
-cd ${AUTOCONF} && \
-  (./configure --prefix=${INSTALL} && make && make install) \
-    >${LOGDIR}/autoconf.log 2>&1
-cd ${AUTOMAKE} && \
-  (./configure --prefix=${INSTALL} && make && make install) \
-    >${LOGDIR}/automake.log 2>&1
 EOF
 
   status=$?




More information about the vc mailing list