about summary refs log tree commit diff stats
path: root/translate_mu_baremetal
diff options
context:
space:
mode:
Diffstat (limited to 'translate_mu_baremetal')
-rwxr-xr-xtranslate_mu_baremetal9
1 files changed, 9 insertions, 0 deletions
diff --git a/translate_mu_baremetal b/translate_mu_baremetal
new file mode 100755
index 00000000..66b27b23
--- /dev/null
+++ b/translate_mu_baremetal
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Translate a given Mu program to 'baremetal', a raw disk image that can boot
+# and run without any OS.
+
+set -e
+
+cat $* baremetal/[0-9]*.mu    |apps/mu    > a.subx
+
+./translate_subx_baremetal baremetal/mu-init.subx baremetal/[0-9]*.subx a.subx