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

xnuloader/mkidentity.sh: lzfse built by its default target, which is the only one it has

yehorkaaa2ea25d0868e
diff --git a/xnuloader/mkidentity.sh b/xnuloader/mkidentity.sh
index 30a109b..5c2c670 100755
--- a/xnuloader/mkidentity.sh
+++ b/xnuloader/mkidentity.sh
@@ -46,7 +46,7 @@ decode() {
elif [ -x "$TOP/xnu-deps/host/bin/lzfse" ]; then "$TOP/xnu-deps/host/bin/lzfse" -decode -i "$1" -o "$2"
else
echo "mkidentity.sh: no LZFSE decoder: building lzfse (BSD, github.com/lzfse/lzfse) into xnu-deps/host/bin" >&2
- git clone -q --depth 1 https://github.com/lzfse/lzfse "$WORK/lzfse" && make -s -C "$WORK/lzfse" lzfse >/dev/null &&
+ git clone -q --depth 1 https://github.com/lzfse/lzfse "$WORK/lzfse" && make -s -C "$WORK/lzfse" >/dev/null &&
mkdir -p "$TOP/xnu-deps/host/bin" && cp "$WORK/lzfse/build/bin/lzfse" "$TOP/xnu-deps/host/bin/lzfse" &&
"$TOP/xnu-deps/host/bin/lzfse" -decode -i "$1" -o "$2"
fi