|
|
@ -7,6 +7,7 @@ all: os-image |
|
|
|
run: all |
|
|
|
run: all |
|
|
|
qemu-system-x86_64 os-image
|
|
|
|
qemu-system-x86_64 os-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
drun: clean run |
|
|
|
drun: clean run |
|
|
|
|
|
|
|
|
|
|
|
grub: eOS.iso |
|
|
|
grub: eOS.iso |
|
|
@ -24,6 +25,7 @@ os-image: bootloader/bootloader.bin kernel.bin |
|
|
|
kernel.bin: kernel/kernel_entry.o $(OBJ) |
|
|
|
kernel.bin: kernel/kernel_entry.o $(OBJ) |
|
|
|
gcc -o $@ $^ -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32
|
|
|
|
gcc -o $@ $^ -Wl,--oformat=binary -ffreestanding -nostdlib -shared -Ttext 0x1000 -m32
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%.o : %.c ${HEADERS} |
|
|
|
%.o : %.c ${HEADERS} |
|
|
|
gcc -fno-pie -m32 -Os -ffreestanding -c $< -o $@
|
|
|
|
gcc -fno-pie -m32 -Os -ffreestanding -c $< -o $@
|
|
|
|
|
|
|
|
|
|
|
|