Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C

mk-mesa: the non-reproducibility is Mesa's, not the build system's

vcvkk856ab8ed2f85
diff --git a/tools/mk-mesa.sh b/tools/mk-mesa.sh
index 1cbe463..f944572 100755
--- a/tools/mk-mesa.sh
+++ b/tools/mk-mesa.sh
@@ -28,6 +28,11 @@
# air_run, with 5 of the 6 named text symbols at new addresses. So the layout moves between builds.
# What moves it was not established; it is not source filenames, which -Db_ndebug=true compiles out.
#
+# This is Mesa's property and not the build system's, which is worth knowing before anyone
+# distrusts every hash here: the userland programs reproduce exactly. prebuilt/userland/init built
+# in one working copy came out byte for byte identical to the same source built in another, at a
+# different time -- so there a hash does compare builds, and only for Mesa it does not.
+#
# The practical consequence: a hash answers whether this is the same FILE, never whether it holds
# the same CODE, and the size answers neither -- the one-line ir3 rounding patch
# (tools/mesa/ir3-round-default.patch) produced a library of exactly the same 14 855 048 bytes as