summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Bauman <mail@andreasbaumann.cc>2018-04-05 16:00:25 +0200
committerAndreas Bauman <mail@andreasbaumann.cc>2018-04-05 16:00:25 +0200
commitbc67731f82cd6cebaf51529e9610bacb1a7c07ef (patch)
tree8c359677b2de1d938205226dd102c80228c3c986 /src
parent8f3c73740a30ad02a594e21a52d47aa4ae9efe91 (diff)
downloadabaos-bc67731f82cd6cebaf51529e9610bacb1a7c07ef.tar.gz
abaos-bc67731f82cd6cebaf51529e9610bacb1a7c07ef.tar.bz2
tested on old OS X 10.8 with Macports
Diffstat (limited to 'src')
-rw-r--r--src/Makefile5
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