summaryrefslogtreecommitdiffstats
path: root/rtems/bit_rtems
diff options
context:
space:
mode:
Diffstat (limited to 'rtems/bit_rtems')
-rwxr-xr-xrtems/bit_rtems70
1 files changed, 48 insertions, 22 deletions
diff --git a/rtems/bit_rtems b/rtems/bit_rtems
index 4131d76..ba56a8d 100755
--- a/rtems/bit_rtems
+++ b/rtems/bit_rtems
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/sh -x
#
# Shell script to configure and build rtems
#
@@ -266,16 +266,17 @@ fi
case ${ENABLE_RTEMS_TCPIP} in
yes)
case ${CPU} in
- avr) TCPIP_FLAG="--disable-networking" ;;
- *) TCPIP_FLAG="--enable-networking" ;;
+ avr) TCPIP_FLAG="--disable-networking" ;;
+ epiphany) TCPIP_FLAG="--disable-networking" ;; # ICE in GCC 4.9.0
+ *) TCPIP_FLAG="--enable-networking" ;;
esac
;;
no)
TCPIP_FLAG="--disable-networking"
;;
new)
- type waf >/dev/null 2>&1
- check_fatal $? "waf is not in your PATH"
+ # type waf >/dev/null 2>&1
+ # check_fatal $? "waf is not in your PATH"
TCPIP_FLAG="--disable-networking"
if [ ${do_install} = "no" ] ; then
@@ -431,6 +432,11 @@ case ${BSP_TO_TEST} in
BSP_TO_TEST=
;;
*)
+ #echo "Executing ${MAKE} ${MAKE_DEBUG_ARG} preinstall "
+ #${MAKE} -j${njobs} ${MAKE_DEBUG_ARG} RTEMS_BSP=${BSP_TO_TEST} preinstall
+ #build_status=$?
+ #check_fatal ${build_status} "failed ${MAKE} ${MAKE_DEBUG_ARG} preinstall."
+
echo "Executing ${MAKE} ${MAKE_DEBUG_ARG} ..."
${MAKE} -j${njobs} ${MAKE_KEEP_GOING_ARG} ${MAKE_DEBUG_ARG} \
RTEMS_BSP=${BSP_TO_TEST}
@@ -602,6 +608,9 @@ fi
pwd
+gcc=`type ${target}-gcc 2>&1 | cut -d' ' -f3`
+tooldir=`echo ${gcc} | sed -e 's/\/bin.*$//'`
+
# if we installed it, then try to build hello world
if [ ${do_install} = yes -a ${doing_bare_bsp} = no ] ; then
# if this is a multilib, then handle it specially
@@ -616,23 +625,21 @@ if [ ${do_install} = yes -a ${doing_bare_bsp} = no ] ; then
cd ..
if [ -d rtems-libbsd -a ${ENABLE_RTEMS_TCPIP} = "new" ] ; then
cd rtems-libbsd
- waf distclean
+ ./waf distclean
check_fatal $? "failed waf distclean - rtems-libbsd on ${BSP_TO_TEST}"
- gcc=`type ${target}-gcc 2>&1 | cut -d' ' -f3`
- tooldir=`echo ${gcc} | sed -e 's/\/bin.*$//'`
RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
- waf configure \
+ ./waf configure \
--rtems=${INSTALL_POINT} \
--rtems-tools=${tooldir} \
--rtems-bsps=${CPU}/${BSP_TO_TEST} \
--prefix=${INSTALL_POINT}
check_fatal $? "failed waf configure - rtems-libbsd on ${BSP_TO_TEST}"
- waf
+ ./waf
check_fatal $? "failed waf - rtems-libbsd on ${BSP_TO_TEST}"
- waf install
+ ./waf install
check_fatal $? "failed waf install - rtems-libbsd on ${BSP_TO_TEST}"
cd ..
fi
@@ -660,17 +667,36 @@ if [ ${do_install} = yes -a ${doing_bare_bsp} = no ] ; then
cd ${suite}
check_fatal $? "failed cd to ${suite}."
- RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
- ${MAKE} ${MAKE_DEBUG_ARG} clean
- check_fatal $? "failed 1st clean ${suite} on ${BSP_TO_TEST}."
-
- RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
- ${MAKE} ${MAKE_DEBUG_ARG}
- check_fatal $? "failed ${suite} on ${BSP_TO_TEST}."
-
- RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
- ${MAKE} ${MAKE_DEBUG_ARG} clean
- check_fatal $? "failed clean ${suite} on ${BSP_TO_TEST}."
+ if [ -r waf ] ; then
+ ~/waf/waf/waf distclean
+ check_fatal $? "failed 1st clean ${suite} on ${BSP_TO_TEST}."
+
+ ~/waf/waf/waf configure \
+ --rtems=${INSTALL_POINT} \
+ --rtems-tools=${tooldir} \
+ --rtems-bsps=${CPU}/${BSP_TO_TEST} \
+ --prefix=${INSTALL_POINT}
+ check_fatal $? "failed waf configure - ${suite} on ${BSP_TO_TEST}"
+
+ ~/waf/waf/waf
+ check_fatal $? "failed waf - ${suite} on ${BSP_TO_TEST}"
+
+ ~/waf/waf/waf install
+ check_fatal $? "failed waf install - ${suite} on ${BSP_TO_TEST}"
+
+ else
+ RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
+ ${MAKE} ${MAKE_DEBUG_ARG} clean
+ check_fatal $? "failed 1st clean ${suite} on ${BSP_TO_TEST}."
+
+ RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
+ ${MAKE} ${MAKE_DEBUG_ARG}
+ check_fatal $? "failed ${suite} on ${BSP_TO_TEST}."
+
+ RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
+ ${MAKE} ${MAKE_DEBUG_ARG} clean
+ check_fatal $? "failed clean ${suite} on ${BSP_TO_TEST}."
+ fi
cd ..
done