2023-06-12 11:46:47 +03:00
|
|
|
all: kernel-i386.elf
|
|
|
|
clean:
|
|
|
|
rm *.o *.elf
|
|
|
|
|
|
|
|
start32.o: start32.asm
|
|
|
|
fasm start32.asm
|
|
|
|
kernel.o: kernel.c
|
2023-06-13 09:45:04 +03:00
|
|
|
tcc -m32 -c kernel.c
|
|
|
|
vga.o: vga.c
|
|
|
|
tcc -m32 -c vga.c
|
|
|
|
|
|
|
|
kernel-i386.elf: kernel.o start32.o vga.o
|
|
|
|
tcc -m32 -nostdlib -Wl,-Ttext,0x100000 start32.o kernel.o vga.o -o kernel-i386.elf
|
2023-06-12 11:46:47 +03:00
|
|
|
|
|
|
|
qemu: kernel-i386.elf
|
|
|
|
qemu-system-i386 -kernel kernel-i386.elf
|
2023-06-14 19:28:16 +03:00
|
|
|
|
|
|
|
mount: koalemos.img mnt/
|
|
|
|
sudo mount -o loop,offset=1048576,umask=177,dmask=222 koalemos.img mnt/
|
|
|
|
umount:
|
|
|
|
sudo umount mnt
|
|
|
|
mnt/:
|
|
|
|
mkdir mnt
|