shithub: iso

Download patch

ref: b66b5540c1086b85f838dc8010aef180c67445e5
parent: 42964d0413f79d441454ac79958a17f76d3a70dd
author: moody <moody@remilia>
date: Mon Oct 21 23:01:03 EDT 2024

power9, lx2k, honeycomb, mk test

Also ensure environment is clean on entry (yuck)
Also stop generating torrents every build

--- a/bin/buildisos.rc
+++ b/bin/buildisos.rc
@@ -1,5 +1,6 @@
 #!/bin/rc -e
 rfork en
+rm -f /env/^(prev head rev log res release)
 
 home=/usr/build
 webfs
@@ -6,7 +7,7 @@
 
 cd $home/code/plan9front
 
-archs=(amd64 386 arm arm64 spim)
+archs=(amd64 386 arm arm64 spim power64)
 
 www=$home/www/9front
 wwwt=$home/www/torrent
@@ -22,9 +23,12 @@
 cd /sys/src/9
 mk clean
 
-# build for cputype
+# test and install for cputype
 cd /sys/src
+mk nuke
+mk libs
 mk install
+mk test
 
 # build everything
 for(i in $archs)@{
@@ -70,6 +74,9 @@
 		cd /sys/src/9/arm64
 		mk install
 		mk clean
+		cd /sys/src/9/lx2k
+		mk install
+		mk clean
 	case spim
 		cd /sys/src/9/mt7688/
 		mk clean
@@ -98,6 +105,9 @@
 		cd /sys/src/boot/qemu
 		mk clean
 		mk
+		cd /sys/src/boot/honeycomb
+		mk clean
+		mk
 	}
 }
 
@@ -113,9 +123,6 @@
 
 fn mkdist {
 	mk $www/$release.$1.gz
-	ip/torrent -c -w http://iso.only9fans.com/9front/$release.$1.gz \
-		-t udp://tracker.opentrackr.org:1337/announce \
-		$www/$release.$1.gz > $wwwt/$release.$1.torrent
 }
 
 cd /sys/lib/dist
@@ -132,5 +139,6 @@
 		mkdist pi3.img
 		mkdist reform.img
 		mkdist arm64.qcow2
+		mkdist honeycomb.img
 	}
 }
--- a/bin/nightlyiso.rc
+++ b/bin/nightlyiso.rc
@@ -21,7 +21,7 @@
 
 buildisos.rc >$log >[2=1]
 date >>$log
-if(~ `{ls $home/www/9front/*gz | grep $rev | wc -l} 7){
+if(~ `{ls $home/www/9front/*gz | grep $rev | wc -l} 8){
 	echo pass >$res
 	echo $rev >$home/www/9front/latest
 }