From 4e634e196f542b76933d6bbe1861849557898683 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 22 May 2024 15:04:30 -0600 Subject: rtl/gfx/firmware: implement mk build for bootrom --- rtl/gfx/firmware/mod.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rtl/gfx/firmware/mod.mk (limited to 'rtl/gfx/firmware/mod.mk') diff --git a/rtl/gfx/firmware/mod.mk b/rtl/gfx/firmware/mod.mk new file mode 100644 index 0000000..2a37a9c --- /dev/null +++ b/rtl/gfx/firmware/mod.mk @@ -0,0 +1,17 @@ +cores := gfx_bootrom + +define core/gfx_bootrom + $(this)/cross := riscv32-none-elf- + $(this)/hooks := cc objcopy makehex obj + + $(this)/cc_files := gfx_bootrom.S + $(this)/cc_flags = -g -march=rv32imc -mabi=ilp32 + $(this)/ld_flags := -nostartfiles -nostdlib + $(this)/ld_binary := gfx_bootrom + + $(this)/objcopy_src := gfx_bootrom + $(this)/objcopy_obj := gfx_bootrom.bin + + $(this)/makehex_src := gfx_bootrom.bin + $(this)/makehex_obj := gfx_bootrom.hex +endef -- cgit v1.2.3