-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmonolithic.sh
More file actions
34 lines (30 loc) · 904 Bytes
/
monolithic.sh
File metadata and controls
34 lines (30 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set -e
SDIR=$(cd -- $(dirname $0) && pwd)
GUEST_CONFIG=config-3.4-guest-32
HOST_CONFIG=config-3.4-host-32
HOST_CORE=$SDIR/core.gz
export HOST_ARCH=x86
export GUEST_ARCH=x86
while getopts 48l opt
do
case "$opt" in
4) HOST_ARCH=x86_64; HOST_CONFIG=config-3.4-host-64;;
8) GUEST_ARCH=x86_64; GUEST_CONFIG=config-3.4-guest-64;;
l) UPDATE_CORE_LIBS=YesPlease;;
[?]) print >&2 "Usage: $0 [-4]"
exit 1;;
esac
done
sh $SDIR/create_image.sh test.img 512 32
sh $SDIR/create_image.sh opt1.img 48
export ARCH=$GUEST_ARCH
sh $SDIR/buildguest.sh $SDIR/core.gz $SDIR/Configs/$GUEST_CONFIG opt1.img test.img
sh $SDIR/grubit.sh test.img
if [ x$UPDATE_CORE_LIBS != x ]
then
sh $SDIR/update_libs.sh $HOST_CORE $(pwd)/new-core.gz
HOST_CORE=$(pwd)/new-core.gz
fi
export ARCH=$HOST_ARCH
sh $SDIR/buildhostlin.sh $HOST_CORE $SDIR/Configs/$HOST_CONFIG test.img
sh $SDIR/buildkvm.sh test.img