Skip to content

armgit / PS5LM

Public Imported from GitHub
0

llama.cpp on a jailbroken PS5: run any GGUF model natively on the console, starting with Qwen 3.8

CI: fetch the ps5-opengl SDK from PS5LM's own release (#50)

Mert Cobanov9fc42edd414c
diff --git a/docs/BUILDING.md b/docs/BUILDING.md
index bb4673f..f7fde78 100644
--- a/docs/BUILDING.md
+++ b/docs/BUILDING.md
@@ -58,11 +58,20 @@ scripts/release-app.sh # build/release/ps5lm-app-vX.Y.Z.zip and its .sha256
BlackBearReloaded's repositories, ps5-homebrew-ui and ps5-opengl, are no longer on GitHub. The
submodule comes from a mirror at the same commit. `build-app.sh` gets the ps5-opengl SDK through
-ps5-homebrew-ui's `tools/fetch-opengl-sdk.sh`, whose download now fails: put
-`ps5-opengl-sdk-1.0.0.tar.gz` from a mirror (one is
-[here](https://github.com/MyLuxy/overdrive-deps/releases/tag/ps5-opengl-v1.0.0)) in
-`third_party/ps5-homebrew-ui/.deps/ps5-opengl/`, and the script checks it against its pinned
-sha256 before using it.
+ps5-homebrew-ui's `tools/fetch-opengl-sdk.sh`, whose download now fails, and so does the mirror
+this page used to name. The
+[deps-ps5-opengl-1.0.0](https://github.com/cobanov/PS5LM/releases/tag/deps-ps5-opengl-1.0.0)
+release holds the SDK as that script extracts it; unpack it into
+`third_party/ps5-homebrew-ui/.deps/ps5-opengl/`:
+
+```sh
+mkdir -p third_party/ps5-homebrew-ui/.deps/ps5-opengl
+curl -fL https://github.com/cobanov/PS5LM/releases/download/deps-ps5-opengl-1.0.0/ps5-opengl-sdk-1.0.0.tar.gz \
+ | tar -xz -C third_party/ps5-homebrew-ui/.deps/ps5-opengl
+```
+
+The archive is a repack, so its own hash is not the original's; the script still checks the SDK
+manifest against its pinned sha256 and every file against the manifest.
`make app` builds PS5_Vulkan's host tool and `libc.prx`, which `build-app.sh` uses; its own demo title
may fail to link at PS5_Vulkan's HEAD, which does not matter here.
diff --git a/scripts/test-native-build.sh b/scripts/test-native-build.sh
index 93a6335..a656ec6 100755
--- a/scripts/test-native-build.sh
+++ b/scripts/test-native-build.sh
@@ -96,17 +96,19 @@ timeout 1800 bash "$vk/tools/build-radv.sh" release
# make libc already built this exact host tool, without the unrelated demo title.
mkdir -p "$vk/build/host"
cp "$vk/build/runtime-shim/ps5-native-tool" "$vk/build/host/ps5-native-tool"
-# The original OpenGL release was removed. Use the mirror documented in BUILDING.md,
-# with the original archive hash; the pinned UI fetcher also verifies every SDK file.
+# The original OpenGL release and its mirror were removed. PS5LM's deps-ps5-opengl-1.0.0
+# release holds the extracted SDK, repacked (see BUILDING.md); the pinned UI fetcher
+# below checks the SDK manifest's hash and every file against it.
glcache="$ui/.deps/ps5-opengl"
-glarchive="$glcache/ps5-opengl-sdk-1.0.0.tar.gz"
+glarchive="$glcache/ps5-opengl-sdk-1.0.0-extracted.tar.gz"
if [[ ! -f "$glcache/ps5-opengl-sdk-1.0.0/sdk/manifest.sha256" ]]; then
mkdir -p "$glcache"
curl -fL --retry 2 --max-time 300 \
- https://github.com/MyLuxy/overdrive-deps/releases/download/ps5-opengl-v1.0.0/ps5-opengl-sdk-1.0.0.tar.gz \
+ https://github.com/cobanov/PS5LM/releases/download/deps-ps5-opengl-1.0.0/ps5-opengl-sdk-1.0.0.tar.gz \
-o "$glarchive.part"
- echo "f93643c04c843d56143b00951df1f8042ea7706ae9f19e4e9abf158e1ead77c5 $glarchive.part" | sha256sum --check --status
- mv "$glarchive.part" "$glarchive"
+ echo "a3ce70a1d3278a2367c3135f034d4925dc85cc4bda30916f44aa474d37241053 $glarchive.part" | sha256sum --check --status
+ tar -xzf "$glarchive.part" -C "$glcache"
+ rm -f "$glarchive.part"
fi
glsdk=$(bash "$ui/tools/fetch-opengl-sdk.sh")
export PS5_OPENGL_SDK="$glsdk"