From 825a10d64f1ca03237e678f1edc82ef6622b1c53 Mon Sep 17 00:00:00 2001 From: Andy Nguyen Date: Thu, 30 Apr 2026 22:14:08 +0200 Subject: [PATCH] Use tag for ps5-linux-patches. --- build_image.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_image.sh b/build_image.sh index e229a57..a5bf7cf 100755 --- a/build_image.sh +++ b/build_image.sh @@ -37,6 +37,7 @@ LINUX_REPO="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git" LINUX_DEFAULT_DIR="$SCRIPT_DIR/work/linux" PATCHES_REPO="https://github.com/ps5-linux/ps5-linux-patches.git" +PATCHES_BRANCH="v1.0" PATCHES_DIR="$SCRIPT_DIR/work/ps5-linux-patches" PATCHES_CONFIG=".config" @@ -218,11 +219,12 @@ else mkdir -p "$PATCHES_DIR" if [ ! -d "$PATCHES_DIR/.git" ]; then run_stage "Clone ps5-linux-patches" \ - git clone --depth 1 "$PATCHES_REPO" "$PATCHES_DIR" + git clone --branch "$PATCHES_BRANCH" --depth 1 "$PATCHES_REPO" "$PATCHES_DIR" else run_stage "Update ps5-linux-patches" bash -c ' - git -C "'"$PATCHES_DIR"'" fetch --depth 1 origin - git -C "'"$PATCHES_DIR"'" reset --hard FETCH_HEAD' + git -C "'"$PATCHES_DIR"'" fetch --depth 1 origin tag "'"$PATCHES_BRANCH"'" + git -C "'"$PATCHES_DIR"'" checkout "'"$PATCHES_BRANCH"'" + git -C "'"$PATCHES_DIR"'" reset --hard "'"$PATCHES_BRANCH"'"' fi LINUX_BRANCH="v$(grep -m1 "^# Linux/" "$PATCHES_DIR/.config" | grep -oP '\d+\.\d+(\.\d+)?')"