]> rtime.felk.cvut.cz Git - jailhouse-test.git/blob - qemu-launch-scripts/update-inmates-and-overlay.sh
Change a little update-overlay script to remake and copy bootstrap binary into overlay.
[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/l4re/pkg/bootstrap_custom
14 make clean && make
15 objcopy -O binary ./server/src/OBJ-x86_pentium/bootstrap.elf $START_DIR/../buildroot-overlay/jailhouse/bootstrap-jh.bin
16 echo "Update rootfs..."
17 cd $START_DIR/../build/buildroot/
18 make
19 echo "done!"