]> rtime.felk.cvut.cz Git - jailhouse-test.git/blob - qemu-launch-scripts/update-inmates-and-overlay.sh
625f954715d9dad31cea333a93aa4e2f0e0d7ff0
[jailhouse-test.git] / qemu-launch-scripts / update-inmates-and-overlay.sh
1 #!/bin/bash
2
3 set -e
4
5 START_DIR=$(pwd)
6 echo "going inside Jailhouse dir for to remake it..."
7 cd ../jailhouse
8 make clean && make modules
9 echo "Copying inmates to overlay dir..."
10 cp ./inmates/demos/x86/*.bin ../buildroot-overlay/jailhouse/inmates/
11 cp ./configs/*.cell ../buildroot-overlay/jailhouse/configs/
12 echo "remake bootstrap and objcopy it to overlay.."
13 cd ../build/l4
14 make hello
15 cd l4re/pkg/bootstrap_custom
16 objcopy -O binary ./server/src/OBJ-x86_pentium/bootstrap_hello.elf $START_DIR/../buildroot-overlay/jailhouse/bootstrap-jh.bin
17 echo "Update rootfs..."
18 cd $START_DIR/../build/buildroot/
19 make
20 echo "done!"