-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·96 lines (93 loc) · 2.63 KB
/
build.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
BASE_DIR=/home/peppe/Desktop/g-os-grub2
target=$1;
if [[ $target == "a" ]] || [[ $target == "i" ]] || [[ $target == "t" ]]
then
umount /dev/loop3
umount /dev/loop4
losetup -d /dev/loop3
losetup -d /dev/loop4
cp $BASE_DIR/g-os-64/img/gpt2.img_orig $BASE_DIR/g-os-64/img/c.img
losetup -o 1048576 /dev/loop3 $BASE_DIR/g-os-64/img/c.img
losetup -o 26214400 /dev/loop4 $BASE_DIR/g-os-64/img/c.img
echo 'Image copy completed'
fi
if [[ $target == "a" ]] || [[ $target == "k" ]] || [[ $target == "t" ]]
then
cd $BASE_DIR/g-os-64
make clean
make bochs
echo 'Kernal build completed'
fi
if [[ $target == "a" ]] || [[ $target == "p" ]]
then
cd $BASE_DIR/g-os-64/process
make process=shell clean
make process=shell all
make process=shell install
make process=dev2 clean
make process=dev2 all
make process=dev2 install
make process=dev3 clean
make process=dev3 all
make process=dev3 install
make process=flush clean
make process=flush all
make process=flush install
# make process=dev1 clean
# make process=dev1 all
# make process=dev1 install
# make process=dev5 clean
# make process=dev5 all
# make process=dev5 install
make process=dev6 clean
make process=dev6 all
make process=dev6 install
make process=sp clean
make process=sp all
make process=sp install
# make process=c1 clean
# make process=c1 all
# make process=c1 install
make process=ht clean
make process=ht all
make process=ht install
# make process=htc clean
# make process=htc all
# make process=htc install
# make process=htcs clean
# make process=htcs all
# make process=htcs install
# make process=del clean
# make process=del all
# make process=del install
make process=file clean
make process=file all
make process=file install
make process=ht clean
make process=ht all
make process=ht install
make process=ss clean
make process=ss all
make process=ss install
make process=udpc clean
make process=udpc all
make process=udpc install
# make process=screen clean
# make process=screen all
# make process=screen install
make process=htc clean
make process=htc all
make process=htc install
make process=htcs clean
make process=htcs all
make process=htcs install
mount /dev/loop4 /mnt
echo $BASE_DIR
cp $BASE_DIR/g-os-64/img/ht_files/8042.c /mnt
cp $BASE_DIR/g-os-64/img/ht_files/tcp.c /mnt
cp $BASE_DIR/g-os-64/img/ht_files/ext2.c /mnt
cp $BASE_DIR/g-os-64/img/ht_files/vm.c /mnt
cp $BASE_DIR/g-os-64/img/ht_files/scheduler.c /mnt
umount /mnt
echo 'Process build completed'
fi