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
tools/macos-bin/sha256sum: GNU's sha256sum (with --quiet) on macOS, for tools/mk-mesa.sh's check of the Mesa archive
shimokuf7bbcbc63ac9
diff --git a/tools/macos-bin/README.md b/tools/macos-bin/README.mdindex 78656e4..03dfba2 100755--- a/tools/macos-bin/README.md+++ b/tools/macos-bin/README.md@@ -1,4 +1,4 @@What `xl` needs of Linux on a Mac: `flock`, GNU `timeout` and `stat` (MacPorts' gtimeout and gstat),-and Android's `fastboot` and `adb` (platform-tools, which `xl` finds here or in $PATH). Put the+`sha256sum` with GNU's `--quiet` (for tools/mk-mesa.sh; it is `shasum -a 256` underneath), and Android's `fastboot` and `adb` (platform-tools, which `xl` finds here or in $PATH). Put theplatform-tools directory next to this file as `platform-tools/` (not in the repository).r34 platform-tools (adb 34.0.5): the newer 37.0.1 adb server is killed within seconds on this Macdiff --git a/tools/macos-bin/sha256sum b/tools/macos-bin/sha256sumnew file mode 100755index 0000000..08a2771--- /dev/null+++ b/tools/macos-bin/sha256sum@@ -0,0 +1,11 @@+#!/bin/bash+# sha256sum as GNU coreutils has it, on macOS (whose own has no --quiet): shasum -a 256, which reads and checks the same+# "HASH FILE" lines. --quiet: the checks print nothing on success (shasum's are not quiet of themselves).+quiet= args=()+for a in "$@"; do+ if [ "$a" = --quiet ]; then quiet=1; else args+=("$a"); fi+done+if [ -n "$quiet" ]; then+ exec shasum -a 256 "${args[@]}" > /dev/null+fi+exec shasum -a 256 "${args[@]}"