We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3957373 commit 884225eCopy full SHA for 884225e
1 file changed
build.sh
@@ -24,6 +24,7 @@ fi
24
25
#KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
26
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
28
29
REPO_PATH=$(pwd)
30
WORKING_PATH=/root/work
@@ -56,7 +57,9 @@ apt-get install -y build-essential fakeroot libncurses-dev bison flex libssl-dev
56
57
58
### get Kernel and Drivers
59
git clone --depth 1 --single-branch --branch "v${KERNEL_VERSION}" \
- "${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}"
63
64
cd "${KERNEL_PATH}" || exit
65
0 commit comments