Attempt to fix travis qemu coredump

This commit is contained in:
Krisjanis Rijnieks
2018-05-06 01:52:57 +02:00
parent 4c888399a0
commit 4634629d93
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -18,7 +18,6 @@ matrix:
- dosfstools
- zip
script:
- cd ~
- sudo bash ./scripts/ci/rpi/mkimage.sh
- zip ${IMAGE}.zip ${IMAGE}
deploy:
+4
View File
@@ -16,6 +16,7 @@ fi
MOUNT="mnt"
echo "Welcome to mkimage.sh script."
cd ..
pwd
# Unmount drives and general cleanup on exit, the trap ensures this will always
@@ -75,6 +76,9 @@ cp /usr/bin/qemu-arm-static "${MOUNT}/usr/bin"
cp "${MOUNT}/etc/ld.so.preload" "${MOUNT}/etc/_ld.so.preload"
echo "" > "${MOUNT}/etc/ld.so.preload"
# copy ofxPiMapper to openFrameworks/addons
cp -r ofxPiMapper "${MOUNT}/home/pi/openFrameworks/addons/"
# Run the installation script as if we would be inside the Raspberry Pi.
chroot "${MOUNT}" "/tmp/${SCRIPT}"