summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-21 02:36:06 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-21 02:42:10 +0100
commit5129e9f9f732f7d2829f02597cdb4ad2c0f3d856 (patch)
treee1bafa66c3baa0c07b6a5addc6bdc93ff64539fa /Makefile
parent80513bc18ca32f5cc6a5b72e3ad812de3db9a6da (diff)
downloadcuddles-5129e9f9f732f7d2829f02597cdb4ad2c0f3d856.tar.xz
compile terminus font into the kernel
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fc97bbf..2764705 100644
--- a/Makefile
+++ b/Makefile
@@ -82,6 +82,11 @@ stage3/version.c: .version-$(GIT_VERSION)
stage3/isr.asm: stage3/isr.lua
lua stage3/isr.lua > stage3/isr.asm
+stage3/font.c: stage3/font_builtin.c
+
+stage3/font_builtin.c: fs/fonts/ter-u16n.cuddlefont
+ xxd -i $< > $@
+
fs.tar: $(shell find fs | sed 's/ /\\ /g') fs/dbg/kernel.map fs/dbg/kernel.dis.asm
cd fs && tar --format=ustar -cf ../fs.tar *
@@ -100,7 +105,7 @@ qemu_slow: cuddles.img
run: qemu
clean:
- rm -rf .version-* stage3/*.{o,d} *.bin *.img stage3/{isr.asm,version.c} fs.tar fs/dbg
+ rm -rf .version-* stage3/*.{o,d} *.bin *.img stage3/{isr.asm,version.c,font_builtin.c} fs.tar fs/dbg
flash: cuddles.img
dd if=cuddles.img of=$(DEV)