From 6dbf4d214143f522d1773f37cd7df5bf8a716757 Mon Sep 17 00:00:00 2001 From: Aristo Chen Date: Fri, 7 Jul 2023 11:11:15 +0800 Subject: [PATCH] Get default branch for RPi kernel --- configs/raspberry_pi_4_32bit.conf | 2 +- configs/raspberry_pi_4_64bit.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/raspberry_pi_4_32bit.conf b/configs/raspberry_pi_4_32bit.conf index 7231c03..001c93f 100644 --- a/configs/raspberry_pi_4_32bit.conf +++ b/configs/raspberry_pi_4_32bit.conf @@ -22,5 +22,5 @@ ITS_KERNEL_COMPRESSION="none" ITS_FDT_NAME=bcm2711-rpi-4-b.dtb KERNEL_GIT_SOURCE=https://github.com/raspberrypi/linux.git -KERNEL_GIT_BRANCH=rpi-6.1.y +KERNEL_GIT_BRANCH=$(git ls-remote --symref "${KERNEL_GIT_SOURCE}" HEAD | head -n1 | sed 's/ref: refs\/heads\/\(rpi.*\)\t*HEAD/\1/' | tr -d " \t") KERNEL_DEFCONFIG=bcm2711_defconfig diff --git a/configs/raspberry_pi_4_64bit.conf b/configs/raspberry_pi_4_64bit.conf index bc943a6..86104d4 100644 --- a/configs/raspberry_pi_4_64bit.conf +++ b/configs/raspberry_pi_4_64bit.conf @@ -22,5 +22,5 @@ ITS_KERNEL_COMPRESSION="gzip" ITS_FDT_NAME=bcm2711-rpi-4-b.dtb KERNEL_GIT_SOURCE=https://github.com/raspberrypi/linux.git -KERNEL_GIT_BRANCH=rpi-6.1.y +KERNEL_GIT_BRANCH=$(git ls-remote --symref "${KERNEL_GIT_SOURCE}" HEAD | head -n1 | sed 's/ref: refs\/heads\/\(rpi.*\)\t*HEAD/\1/' | tr -d " \t") KERNEL_DEFCONFIG=bcm2711_defconfig