shithub: riscv

Download patch

ref: c35f95de2ad2d44cb2126363df952c87a334d880
parent: c881e33e8ed668f4d5a2102c113e3edb1ea80d44
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 19 13:11:57 EDT 2019

vmx: handle build arch exclude in /sys/src/cmd/mkfile

--- a/sys/src/cmd/mkfile
+++ b/sys/src/cmd/mkfile
@@ -8,8 +8,8 @@
 YFLAGS=-d
 
 NOTSYS=sml|dup|.+\..+
-
-NOMK=$NOTSYS
+PCONLY=vmx
+NOMK=$NOTSYS|`{~ $objtype (386 amd64) || echo $PCONLY}
 
 cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
 DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
--- a/sys/src/cmd/vmx/mkfile
+++ b/sys/src/cmd/vmx/mkfile
@@ -1,4 +1,3 @@
-objtype=`{~ $objtype (386 amd64) && echo $objtype || echo 386}
 </$objtype/mkfile
 
 BIN=/$objtype/bin