diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-05-02 15:11:39 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-05-02 15:14:40 -0500 |
commit | 37f34371810e1033643b2bd79977b86a7d66a488 (patch) | |
tree | 836ecb060b6e88473f70db5846c3902d886626b8 /vm-help/build_bsp | |
parent | rtems-testing shell scripts: Use env not eval (diff) | |
download | rtems-testing-37f34371810e1033643b2bd79977b86a7d66a488.tar.bz2 |
vm-help: Virtual Machine Helpers
Diffstat (limited to 'vm-help/build_bsp')
-rwxr-xr-x | vm-help/build_bsp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/vm-help/build_bsp b/vm-help/build_bsp new file mode 100755 index 0000000..c9cef20 --- /dev/null +++ b/vm-help/build_bsp @@ -0,0 +1,55 @@ +#! /bin/sh +# +# Simple script to build CPU/BSP +# +# Assumes ${HOME}/rtems-4.11-work +# +# Must be edited to change configure settings + +if [ $# -ne 2 ] ; then + echo Usage: $0 CPU BSP + exit 1 +fi + +cd ${HOME}/rtems-4.11-work +if [ $? -ne 0 ] ; then + echo "Assumed location of RTEMS is incorrect" + exit 1 +fi + +CPU=$1 +BSP=$2 + +rm -rf b-${BSP} +mkdir b-${BSP} +cd b-${BSP} + +# Comment out the one in each set you do not want +DEBUG="--enable-rtems-debug" +# DEBUG="" + +#TESTS="--enable-tests" +TESTS="--enable-tests=samples" + +SMP="--disable-smp" +#SMP="--enable-smp" + +#POSIX="--enable-posix" +POSIX="--disable-posix" +# NET="--enable-networking" +NET="--disable-networking" + +CXX="--enable-cxx" +# CXX="--disable-cxx" + +# Now invoke configure and make using the arguments selected +../rtems/configure --target=${CPU}-rtems4.11 --enable-rtemsbsp=${BSP} \ + --prefix=${HOME}/rtems-4.11-work/bsp-install \ + ${NET} ${POSIX} ${SMP} ${DEBUG} ${TESTS} ${CXX} \ + --enable-maintainer-mode \ + >c.log 2>&1 && \ +make -j6 >b.log 2>&1 +status=$? +echo $status +exit $status + |