Add rule for making detached bootloader

This commit is contained in:
Jeremy Soller 2017-09-27 20:24:45 -06:00
parent edf3ac0582
commit 158eeb81b5
2 changed files with 6 additions and 3 deletions

@ -1 +1 @@
Subproject commit 59fd6fbcfe9adc7e5d0c0df58fe4e2e07df5f31b
Subproject commit cccb19d19ff27724e412cf3b21750f82ebbb20d1

View file

@ -1,5 +1,8 @@
build/harddrive.bin: build/kernel build/filesystem.bin bootloader/$(ARCH)/**
nasm -f bin -o $@ -D ARCH_$(ARCH) -D FILESYSTEM=build/filesystem.bin -ibootloader/$(ARCH)/ bootloader/$(ARCH)/disk.asm
build/bootloader.bin: bootloader/$(ARCH)/**
nasm -f bin -o $@ -D ARCH_$(ARCH) -ibootloader/$(ARCH)/ bootloader/$(ARCH)/disk.asm
build/harddrive.bin: build/filesystem.bin bootloader/$(ARCH)/**
nasm -f bin -o $@ -D ARCH_$(ARCH) -D FILESYSTEM=$< -ibootloader/$(ARCH)/ bootloader/$(ARCH)/disk.asm
build/livedisk.bin: build/kernel_live bootloader/$(ARCH)/**
nasm -f bin -o $@ -D ARCH_$(ARCH) -D KERNEL=$< -ibootloader/$(ARCH)/ bootloader/$(ARCH)/disk.asm