Created
January 8, 2016 03:29
-
-
Save lushl9301/1604cabb337b710d32b2 to your computer and use it in GitHub Desktop.
quick solution for compile xtratum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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