shithub: riscv

Download patch

ref: fe93e698589d6b23a02ec8e6d104f83e533661f3
parent: 0beecd8577e44f17c6c5e64bca2553cee0ddac9a
author: Jacob Moody <moody@posixcafe.org>
date: Mon Jul 31 20:20:29 EDT 2023

games/gba/rom: use -t with 5a

This makes all the generated object files *.t

--- a/sys/src/games/gba/rom/mkfile
+++ b/sys/src/games/gba/rom/mkfile
@@ -3,5 +3,6 @@
 CC=tc
 LD=tl
 LDFLAGS=-T 0x080000C0 -R 0x4
+AFLAGS=-t
 O=t
 AS=5a
--- a/sys/src/games/gba/rom/mkone
+++ b/sys/src/games/gba/rom/mkone
@@ -7,12 +7,12 @@
 $TARG.gba:	$O.out
 	games/aout2gba -o $target $prereq
 
-$O.out:	l.5 $OFILES $LIB
+$O.out:	l.$O $OFILES $LIB
 	$LD $LDFLAGS -o $target $prereq
 
 %.$O:	$HFILES
 
-l.5:	/sys/src/games/gba/rom/l.s
+l.$O:	/sys/src/games/gba/rom/l.s
 	$AS $AFLAGS $prereq
 
 %.$O:	%.c