Add floppy image
This commit is contained in:
10
Makefile
10
Makefile
@@ -48,6 +48,12 @@ wozmon.elf: CPPFLAGS += -DNOBPB
|
||||
|
||||
wozmon.bin: wozmon.elf
|
||||
|
||||
polos.img: fat12boot.bin polmon.com
|
||||
dd if=/dev/zero of=$@ bs=512 count=720
|
||||
mformat -i $@ -t 40 -h 2 -s 9
|
||||
mcopy -i $@ polmon.com ::/polmon.com
|
||||
dd if=fat12boot.bin of=$@ conv=notrunc
|
||||
|
||||
.PHONY: clean
|
||||
clean: ## Remove generated files
|
||||
rm -rf wozmon.bin crc16.bin readfloppy.bin writefloppy.bin fat12boot.bin
|
||||
@@ -76,6 +82,10 @@ binaries: ## Build all binaries
|
||||
docker build --build-arg TARGET=polmon.com -o . --target=export .
|
||||
docker build --build-arg TARGET=fat12boot.bin -o . --target=export .
|
||||
|
||||
.PHONY: floppy
|
||||
floppy: ## Make a bootable floppy image
|
||||
docker build --build-arg TARGET=polos.img -o . --target=export .
|
||||
|
||||
|
||||
.PHONY: help
|
||||
help: ## Show this help
|
||||
|
Reference in New Issue
Block a user