Skip to content

Instantly share code, notes, and snippets.

@lushl9301
Created January 8, 2016 03:29
Show Gist options
  • Save lushl9301/1604cabb337b710d32b2 to your computer and use it in GitHub Desktop.
Save lushl9301/1604cabb337b710d32b2 to your computer and use it in GitHub Desktop.
quick solution for compile xtratum
#!/bin/bash
XM_SDK_PATH="/opt/xm-sdk"
cd ~
rm -rf $XM_SDK_PATH
cd ~/src
#make distro-run
/usr/bin/expect <<EOF
spawn ./xtratum-3.7.3.run
expect "Continue" {send "\r"}
expect "1" {send "/opt/xm-sdk/\r"}
expect "2" {send "\r"}
expect "3" {send "\r"}
EOF
sleep 1 #make sure installation finished
cd /opt/xm-sdk/xal-examples/hello-world/
make resident_sw.iso
echo "======================================="
echo "======================================="
echo "======================================="
qemu -m 512 -serial stdio -hda resident_sw.iso
cd ~/src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment