Add floppy image

This commit is contained in:
2025-09-24 00:53:09 +02:00
parent bf16ae5646
commit f46b13e044
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -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