summaryrefslogtreecommitdiffstats
path: root/vm-help/build_schedsim
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-02 15:11:39 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-05-02 15:14:40 -0500
commit37f34371810e1033643b2bd79977b86a7d66a488 (patch)
tree836ecb060b6e88473f70db5846c3902d886626b8 /vm-help/build_schedsim
parentrtems-testing shell scripts: Use env not eval (diff)
downloadrtems-testing-37f34371810e1033643b2bd79977b86a7d66a488.tar.bz2
vm-help: Virtual Machine Helpers
Diffstat (limited to 'vm-help/build_schedsim')
-rwxr-xr-xvm-help/build_schedsim53
1 files changed, 53 insertions, 0 deletions
diff --git a/vm-help/build_schedsim b/vm-help/build_schedsim
new file mode 100755
index 0000000..abaffa9
--- /dev/null
+++ b/vm-help/build_schedsim
@@ -0,0 +1,53 @@
+#! /bin/sh
+#
+# Simple script to build scheduler simulator
+#
+# Assumes ${HOME}/rtems-4.11-work
+#
+# Must be edited to change configure settings
+
+cd ${HOME}/rtems-4.11-work
+if [ $? -ne 0 ] ; then
+ echo "Assumed root of RTEMS source code is incorrect"
+ exit 1
+fi
+
+if [ ! -d rtems-schedsim ] ; then
+ echo "rtems-schedsim not present"
+ exit 1
+fi
+
+if [ ! -d rtems ] ; then
+ echo "rtems is not present"
+ exit 1
+fi
+
+if [ ! -r rtems-schedsim/configure ] ; then
+ echo "rtems-schedsim is not bootstrapped"
+ exit 1
+fi
+
+rm -rf b-schedsim
+mkdir b-schedsim
+cd b-schedsim
+
+SMP="--disable-smp"
+#SMP="--enable-smp"
+
+DEBUG="--enable-rtems-debug"
+# DEBUG=""
+
+# Now invoke configure and make using the arguments selected
+../rtems-schedsim/configure \
+ CFLAGS_FOR_BUILD="-O2 -g" \
+ CXXFLAGS_FOR_BUILD="-O2 -g" \
+ ${SMP} ${DEBUG} \
+ --enable-rtemsdir=${HOME}/rtems-4.11-work/rtems \
+ --prefix=${HOME}/rtems-4.11-work/schedsim-install \
+ --enable-maintainer-mode \
+ >c.log 2>&1 && \
+make >b.log 2>&1
+status=$?
+echo $status
+exit $status
+