diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 0817887..96acb38 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,6 +9,7 @@ NASMFLAGS := -f elf32 NASM := nasm OBJCOPY := objcopy MAGIC := $(shell printf '%x' `date +%s`) +TRUNCATE := truncate all: image.bin kernel.sym @@ -23,9 +24,9 @@ all: image.bin kernel.sym # on the size of the image) image.bin: boot.bin kernel.bin magic.bin cat boot.bin kernel.bin > image.tmp - truncate -s 89088 image.tmp + $(TRUNCATE) -s 89088 image.tmp cat image.tmp magic.bin > image.bin - truncate -s 1474560 image.bin + $(TRUNATE) -s 1474560 image.bin boot.bin: boot/boot.asm boot/boot_gdt.asm boot/stage1_functions.asm boot/stage2_real_functions.asm boot/stage2_pm_functions.asm boot/stage2_switch_mode.asm boot/stage2_a20.asm $(NASM) boot/boot.asm -DMAGIC='"$(MAGIC)"' -f bin -o boot.bin |