From 671e19510ed85d9c57691414cad637ce4c926153 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 13 Jul 2018 14:14:56 +0200 Subject: [PATCH] make: possibility to generate a floppy image --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 489054c..d22070f 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ cobj=$(csrc:%.c=%.o) kernel:$(asmobj) $(cobj) linker.ld $(CXX) $(LDFLAGS) $(cobj) $(asmobj) -o $@ -T linker.ld +fd.img: kernel + dd if=/dev/zero of=$@ bs=512 count=2880 + dd if=$< of=$@ conv=notrunc + #https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html#x86-Function-Attributes exception_handler.o:exception_handler.c $(CC) $(CPPFLAGS) $(CFLAGS) -mgeneral-regs-only -c $<