shithub: riscv

Download patch

ref: 1069d018c99fc394597f08f8f737a1e5ddb5179e
parent: 0ac4a447b05b7ebcd291000706d9d3dbb593fa11
author: cinap_lenrek <[email protected]>
date: Sun Apr 10 16:20:53 EDT 2016

libmp: fix build for spim, reduce by the mips assembly files

--- a/sys/src/libmp/port/mkfile
+++ b/sys/src/libmp/port/mkfile
@@ -45,7 +45,9 @@
 
 ALLOFILES=${FILES:%=%.$O}
 # cull things in the per-machine directories from this list
-OFILES=	`{rc ./reduce $O $objtype $ALLOFILES}
+OFILES=	`{rfork e; \
+	if(~ $objtype spim) objtype=mips; \
+	rc ./reduce $O $objtype $ALLOFILES}
 
 HFILES=\
 	/$objtype/include/u.h\