Skip to content

Commit

Permalink
Trying ARM QEMU -- xcompile #2
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Jan 11, 2017
1 parent 175c52a commit e386f10
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .travis-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,23 @@ if [ "${ARCH}" = "arm" ]; then
# Compilation on QEMU is too slow and times out on Travis. Crosscompile at the host
echo "Initial execution on ARM environment, will crosscompile"

cmake $SOURCE -DCBOR_CUSTOM_ALLOC=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTS=ON -DCMAKE_PREFIX_PATH=$HOME/usr/local
# Crosscompile CMocka
pushd $HOME
git clone git://git.cryptomilk.org/projects/cmocka.git
mkdir cmocka_build && cd cmocka_build
cmake -DCMAKE_INSTALL_PREFIX=$HOME ../cmocka
CC=arm-linux-gnueabi-gcc make -j 2
make install
cd ..
rm -rf cmocka cmocka_build
popd


cmake $SOURCE -DCBOR_CUSTOM_ALLOC=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_TESTS=ON \
-DCMAKE_PREFIX_PATH=$HOME/usr/local \
-DCMAKE_C_COMPILER=arm-linux-gnueabi-gcc
make VERBOSE=1

# ARM test run, need to set up chrooted environment first
Expand Down

0 comments on commit e386f10

Please sign in to comment.