diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-12 23:04:06 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-12 23:04:06 -0800 |
commit | 8a81faecbe3c4bb2dbcbfc427f694b7932a1c5e5 (patch) | |
tree | 9066ba533c0b412ce0e8c924f0f3fc8d5b916e6e /translate_mu_baremetal_emulated | |
parent | fcad74b7b102e68ecdc564fc03621b6dd6f495eb (diff) | |
download | mu-8a81faecbe3c4bb2dbcbfc427f694b7932a1c5e5.tar.gz |
7506
Diffstat (limited to 'translate_mu_baremetal_emulated')
-rwxr-xr-x | translate_mu_baremetal_emulated | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/translate_mu_baremetal_emulated b/translate_mu_baremetal_emulated new file mode 100755 index 00000000..d7ff2c6d --- /dev/null +++ b/translate_mu_baremetal_emulated @@ -0,0 +1,12 @@ +#!/bin/sh +# Translate a given Mu program to 'baremetal', a raw disk image that can boot +# and run without any OS. +# +# This script uses emulation, so it does not require x86 or Linux. However it +# is slow. + +set -e + +cat $* baremetal/[0-9]*.mu |./bootstrap run apps/mu > a.subx + +./translate_subx_baremetal_emulated baremetal/mu-init.subx baremetal/[0-9]*.subx a.subx |