diff --git a/Dockerfile b/Dockerfile index 653292c..66eebba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:jammy AS deps RUN apt-get update && apt-get install -y software-properties-common RUN add-apt-repository ppa:tkchia/build-ia16 RUN apt-get update && apt-get install -y gcc-ia16-elf -RUN apt-get install nasm make +RUN apt-get install -y nasm make mtools FROM deps AS dev diff --git a/Makefile b/Makefile index 5cbadf4..fcf900d 100644 --- a/Makefile +++ b/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