1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Move MB2 check

This commit is contained in:
Braiden Vasco 2017-11-09 16:02:18 +00:00
parent 8527152156
commit 2adfc1feba

View file

@ -48,7 +48,6 @@ OBJS += hwint.c.o
OBJS += syscall.c.o OBJS += syscall.c.o
run: $(KERNEL) run: $(KERNEL)
grub-file --is-x86-multiboot2 $(KERNEL)
grub-mkrescue rootfs -o $(IMAGE) grub-mkrescue rootfs -o $(IMAGE)
qemu-system-i386 -cdrom $(IMAGE) qemu-system-i386 -cdrom $(IMAGE)
@ -61,6 +60,7 @@ clean:
$(KERNEL): $(OBJS) $(KERNEL): $(OBJS)
$(CC) -T linker.ld -o $(KERNEL) -ffreestanding -nostdlib -lgcc $(OBJS) $(CC) -T linker.ld -o $(KERNEL) -ffreestanding -nostdlib -lgcc $(OBJS)
grub-file --is-x86-multiboot2 $(KERNEL)
%.c.o: %.c %.c.o: %.c
$(CC) -c $< -o $@ $(CFLAGS) $(CC) -c $< -o $@ $(CFLAGS)