Add MIO0 🧌

This commit is contained in:
CrashOveride95
2021-03-23 17:41:15 -04:00
parent 312906439d
commit 9fb5f79e97
6 changed files with 173 additions and 1 deletions

9
mio0rules.mk Normal file
View File

@@ -0,0 +1,9 @@
# Compress binary file
$(BUILD_DIR)/%.szp: $(BUILD_DIR)/%.bin
$(call print,Compressing:,$<,$@)
$(V)$(MIO0TOOL) $< $@
# convert binary szp to object file
$(BUILD_DIR)/%.szp.o: $(BUILD_DIR)/%.szp
$(call print,Converting MIO0 to ELF:,$<,$@)
$(V)printf ".section .data\n\n.incbin \"$<\"\n" | $(AS) $(ASFLAGS) -o $@