machine/gameboy-advance: allow TinyGo to directly output GBA files that are ready for flashing by performing objcopy

Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
Ron Evans
2019-09-21 10:47:32 +02:00
committed by Ayke
parent 7732c6f449
commit a7d00f1b6d
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
}
// Get an Intel .hex file or .bin file from the .elf file.
if outext == ".hex" || outext == ".bin" {
if outext == ".hex" || outext == ".bin" || outext == ".gba" {
tmppath = filepath.Join(dir, "main"+outext)
err := Objcopy(executable, tmppath)
if err != nil {