summaryrefslogtreecommitdiff
path: root/mk/makehex.mk
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-22 14:59:49 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-24 05:58:43 -0600
commitcc3eed896e039d3c7088454ed49e483b82fe9917 (patch)
tree6fb0a1acc630b94da0a6bb16ce58d7036ebacbcd /mk/makehex.mk
parentf544591a74d0f27d5e55261ce50eec562549aad9 (diff)
scripts/makehex: initial commit
Diffstat (limited to '')
-rw-r--r--mk/makehex.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/mk/makehex.mk b/mk/makehex.mk
new file mode 100644
index 0000000..9aa9ebb
--- /dev/null
+++ b/mk/makehex.mk
@@ -0,0 +1,11 @@
+makehex_src = $(call require_core_objs,$(1),makehex_src)
+makehex_obj = $(call require_core_objs,$(1),makehex_obj)
+
+define hooks/makehex
+ define obj_rules
+ $$(call makehex_obj,$(1)): $$(call makehex_src,$(1)) scripts/makehex.py $$(obj_deps)
+ $$(call run,MAKEHEX,$$@) $$(PYTHON3) scripts/makehex.py <$$< >$$@
+ endef
+
+ $$(eval $$(call add_obj_rules,$(1)))
+endef