Skip to content

Commit 884225e

Browse files
authored
Add alternative kernel repository for cloning
Add an alternative kernel repository for cloning.
1 parent 3957373 commit 884225e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fi
2424

2525
#KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
2626
KERNEL_REPOSITORY=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
27+
KERNEL_REPOSITORY_ALT=https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux.git
2728

2829
REPO_PATH=$(pwd)
2930
WORKING_PATH=/root/work
@@ -56,7 +57,9 @@ apt-get install -y build-essential fakeroot libncurses-dev bison flex libssl-dev
5657

5758
### get Kernel and Drivers
5859
git clone --depth 1 --single-branch --branch "v${KERNEL_VERSION}" \
59-
"${KERNEL_REPOSITORY}" "${KERNEL_PATH}"
60+
"${KERNEL_REPOSITORY}" "${KERNEL_PATH}" || \
61+
git clone --depth 1 --single-branch --branch "v${KERNEL_VERSION}" \
62+
"${KERNEL_REPOSITORY_ALT}" "${KERNEL_PATH}"
6063

6164
cd "${KERNEL_PATH}" || exit
6265

0 commit comments

Comments
 (0)