-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·86 lines (73 loc) · 2.26 KB
/
Makefile
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
all:
@mkdir -p disk_root
@cp -v \
source/wing_kernel.elf \
source/boot/limine.cfg \
source/boot/init_ramdisk.tar \
source/boot/Vera.sfn \
source/desktop-manager/desktop-manager.bin \
source/boot/mouse.tga \
limine/limine-bios.sys \
limine/limine-bios-pxe.bin \
limine/limine-bios-cd.bin \
limine/limine-uefi-cd.bin \
disk_root/
@mkdir -p disk_root/EFI/BOOT
@cp -v \
limine/BOOTX64.EFI \
limine/BOOTAA64.EFI \
limine/BOOTIA32.EFI \
limine/BOOTRISCV64.EFI \
disk_root/EFI/BOOT/
@xorriso -as mkisofs -b limine-bios-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table --efi-boot limine-uefi-cd.bin -efi-boot-part --efi-boot-image --protective-msdos-label disk_root -o FrostWing.iso
@./limine/limine bios-install FrostWing.iso
tarball:
@tar -czvf FrostWing.iso.tar.gz FrostWing.iso
run-x86:
@qemu-system-x86_64 \
-vga std \
-debugcon stdio \
-serial file:serial.log \
-audiodev pa,id=speaker \
-device rtl8139,netdev=eth0 \
-netdev user,hostfwd=tcp::5555-:22,id=eth0 \
-cdrom FrostWing.iso \
-drive id=disk,file=disk.txt,if=none \
-device ahci,id=ahci \
-device ide-hd,drive=disk,bus=ahci.0 \
-m 512 \
-no-reboot
run-x86-vnc:
@qemu-system-x86_64 \
-vga std \
-debugcon stdio \
-serial file:serial.log \
-device rtl8139,netdev=eth0 \
-netdev user,hostfwd=tcp::5555-:22,id=eth0 \
-cdrom FrostWing.iso \
-m 128 \
-no-reboot \
-vnc :1 -display none &
everything:
@make clean all -C source && make all tarball run-x86
everything-sign:
@make clean all -C source && make sign-kernel && make all tarball run-x86
doxygen:
# I coded this for my use but you can you can use it, if you know why I have this.
doxygen
cd docs/html && code . && cd ../../
latest-limine:
rm -r limine
git clone https://github.com/limine-bootloader/limine.git --branch=v6.x-branch-binary --depth=1
make -C limine
sign-kernel:
@openssl dgst -sha256 -sign ./keys/private_key.pem -out ./keys/file.sig ./source/wing_kernel.elf
@openssl dgst -sha256 -verify ./keys/public_key.pem -signature ./keys/file.sig ./source/wing_kernel.elf
fonts:
sfnconv -U -B 40 -t b1 ~/Downloads/FiraSans-Regular.ttf ~/Desktop/FrostWing/source/boot/Vera.sfn
top-clean:
@rm -rf FrostWing.iso
@rm -rf FrostWing.iso.sha256
@rm -rf FrostWing.iso.tar.gz
@rm -rf FrostWing.iso.tar.gz.sha256
@rm -rf serial.log