Skip to content

Commit 5fd2393

Browse files
committed
Add tasks for creating bootable disk image
1 parent 61cba86 commit 5fd2393

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,16 @@ build/jdsos.bin: build/ build/boot.o build/kernel.o
4040
export PATH="$(CROSSBINDIR):$(PATH)" && \
4141
i586-elf-gcc -T src/linker.ld -o $@ -ffreestanding -O2 -nostdlib $? -lgcc
4242

43+
image/boot/jdsos.bin: build/jdsos.bin
44+
cp $< $@
45+
46+
dist/:
47+
mkdir -p $@
48+
49+
dist/jdsos.iso: dist/ image/boot/jdsos.bin
50+
grub-mkrescue -o $@ image
51+
52+
dist: dist/jdsos.iso
53+
4354
clean:
44-
rm -f build/*
55+
rm -f build/* dist/* image/boot/*.bin

dist/.gitkeep

Whitespace-only changes.

image/boot/grub/grub.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
menuentry "jdsos" {
2+
multiboot /boot/jdsos.bin
3+
}

0 commit comments

Comments
 (0)