forked from KamalDevelopers/GodsEyeView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·39 lines (34 loc) · 1.08 KB
/
build.sh
File metadata and controls
executable file
·39 lines (34 loc) · 1.08 KB
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
#!/bin/sh
ninja disk
ninja format
cd Libraries
ninja
cd ..
ninja
if [ "$#" -eq "0" ]
then
ninja run
else
if [ "$1" = "iso" ]
then
mkdir .out/iso
mkdir .out/iso/boot
mkdir .out/iso/boot/grub
cp .out/kernel.bin .out/iso/boot/kernel.bin
echo 'set timeout=0' >> .out/iso/boot/grub/grub.cfg
echo 'set default=0' >> .out/iso/boot/grub/grub.cfg
echo '' >> .out/iso/boot/grub/grub.cfg
echo \'menuentry "GevOS" {\' >> .out/iso/boot/grub/grub.cfg
echo ' multiboot /boot/kernel.bin' >> .out/iso/boot/grub/grub.cfg
echo ' boot' >> .out/iso/boot/grub/grub.cfg
echo '}' >> .out/iso/boot/grub/grub.cfg
cd ./.out
grub-mkrescue --output=kernel.iso iso
rm -rf iso
qemu-system-x86_64 -cdrom kernel.iso -boot d -soundhw pcspk -serial mon:stdio -drive format=raw,file=../hdd.tar
cd ../
fi
fi
ninja -t clean
cd Libraries/
ninja -t clean