shithub: front

Download patch

ref: d88192a6a501f15178d4c5f8cad4043968e38067
parent: 8c43c1ae1adf0409ddd8e268474600cb6341b2c3
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jul 27 16:01:46 EDT 2025

9/pc: add mkfile rule for install.$dest

the pc kernel gets installed the same way as the
pc64 kernel, so it should probably have the same
mk install rule

--- a/sys/src/9/pc/mkfile
+++ b/sys/src/9/pc/mkfile
@@ -99,8 +99,14 @@
 
 install:V:	$p$CONF
 	cp $p$CONF /$objtype/
-	for(i in $EXTRACOPIES)
-		import $i / /n/$i && cp $p$CONF $p$CONF.gz /n/$i/$objtype/
+
+install.%:V:	$p$CONF
+	@{
+	rfork n
+	9fs $stem
+	test -e /n/$stem/$p$CONF && cp /n/$stem/$p$CONF /n/$stem/$p$CONF.o
+	cp $p$CONF /n/$stem/$p$CONF
+	}
 
 <../boot/bootmkfile
 <../port/portmkfile
--