Add floppy image
This commit is contained in:
@@ -3,7 +3,7 @@ FROM ubuntu:jammy AS deps
|
|||||||
RUN apt-get update && apt-get install -y software-properties-common
|
RUN apt-get update && apt-get install -y software-properties-common
|
||||||
RUN add-apt-repository ppa:tkchia/build-ia16
|
RUN add-apt-repository ppa:tkchia/build-ia16
|
||||||
RUN apt-get update && apt-get install -y gcc-ia16-elf
|
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
|
FROM deps AS dev
|
||||||
|
10
Makefile
10
Makefile
@@ -48,6 +48,12 @@ wozmon.elf: CPPFLAGS += -DNOBPB
|
|||||||
|
|
||||||
wozmon.bin: wozmon.elf
|
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
|
.PHONY: clean
|
||||||
clean: ## Remove generated files
|
clean: ## Remove generated files
|
||||||
rm -rf wozmon.bin crc16.bin readfloppy.bin writefloppy.bin fat12boot.bin
|
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=polmon.com -o . --target=export .
|
||||||
docker build --build-arg TARGET=fat12boot.bin -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
|
.PHONY: help
|
||||||
help: ## Show this help
|
help: ## Show this help
|
||||||
|
Reference in New Issue
Block a user