-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·36 lines (30 loc) · 1.1 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash -e
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
TMPDIR="$(mktemp -d)"
function finish
{
rm -fR ${TMPDIR}
}
trap finish EXIT
echo -------------- building unittests
mkdir ${TMPDIR}/tests
cd ${TMPDIR}/tests
cmake ${DIR}/unittests
make -j4
echo -------------- executing unittests
./unittests --gtest_output=xml:${DIR}/testresults.xml
echo -------------- building firmware
cd ${DIR}
./init.sh
mkdir ${TMPDIR}/workspace
echo -------------- import into workspace
kinetis-design-studio -noSplash -data $TMPDIR/workspace -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import remotecontrol -import robo
echo -------------- generate processorexpert
kinetis-design-studio -noSplash -data $TMPDIR/workspace -application com.freescale.processorexpert.core.PExApplication -generateAll
echo -------------- build project
kinetis-design-studio -noSplash -data $TMPDIR/workspace -application org.eclipse.cdt.managedbuilder.core.headlessbuild -build all
echo -------------- generate documentation
cd ${DIR}/remotecontrol/doxy
doxygen remotecontrol.doxyfile
cd ${DIR}/robo/doxy
doxygen robo.doxyfile