Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 18a47b4

Browse files
committed
Update Kernel 5.6.10
1 parent a5feadb commit 18a47b4

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

build.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ set -eu -o pipefail
44

55
## Update docker image tag, because kernel build is using `uname -r` when defining package version variable
66
# KERNEL_VERSION=$(curl -s https://www.kernel.org | grep '<strong>' | head -3 | tail -1 | cut -d'>' -f3 | cut -d'<' -f1)
7-
KERNEL_VERSION=5.6.7
7+
KERNEL_VERSION=5.6.10
8+
#KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
9+
KERNEL_REPOSITORY=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
810
REPO_PATH=$(pwd)
911
WORKING_PATH=/root/work
1012
KERNEL_PATH="${WORKING_PATH}/linux-kernel"
@@ -31,8 +33,8 @@ apt install -y build-essential fakeroot libncurses-dev bison flex libssl-dev lib
3133
bc rsync cpio dh-modaliases debhelper kernel-wedge curl
3234

3335
### get Kernel
34-
git clone --depth 1 --single-branch --branch v"${KERNEL_VERSION}" \
35-
git://kernel.ubuntu.com/virgin/linux-stable.git "${KERNEL_PATH}"
36+
git clone --depth 1 --single-branch --branch "v${KERNEL_VERSION}" \
37+
"${KERNEL_REPOSITORY}" "${KERNEL_PATH}"
3638
cd ./linux-kernel || exit
3739

3840
#### Create patch file with custom drivers
@@ -52,13 +54,13 @@ while IFS= read -r file; do
5254
patch -p1 <"$file"
5355
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | sort)
5456

55-
echo >&2 "===]> Info: Add drivers default configuration... "
57+
#echo >&2 "===]> Info: Add drivers default configuration... "
5658
### Add new drivers. This config files comes on the one of the patches...
57-
echo "CONFIG_APPLE_BCE_DRIVER=m" >>"${KERNEL_PATH}/debian.master/config/amd64/config.common.ubuntu"
58-
echo "CONFIG_APPLE_TOUCHBAR_DRIVER=m" >>"${KERNEL_PATH}/debian.master/config/amd64/config.common.ubuntu"
59-
find "${KERNEL_PATH}/debian.master/config/" -type f -name "generic.modules" -exec sh -c '
60-
echo -e "apple-bce.ko\napple-ib-als.ko\napple-ib-tb.ko\napple-ibridge.ko" >> $1
61-
' sh {} \;
59+
#echo "CONFIG_APPLE_BCE_DRIVER=m" >>"${KERNEL_PATH}/debian.master/config/amd64/config.common.ubuntu"
60+
#echo "CONFIG_APPLE_TOUCHBAR_DRIVER=m" >>"${KERNEL_PATH}/debian.master/config/amd64/config.common.ubuntu"
61+
#find "${KERNEL_PATH}/debian.master/config/" -type f -name "generic.modules" -exec sh -c '
62+
# echo -e "apple-bce.ko\napple-ib-als.ko\napple-ib-tb.ko\napple-ibridge.ko" >> $1
63+
#' sh {} \;
6264

6365
chmod a+x "${KERNEL_PATH}"/debian/rules
6466
chmod a+x "${KERNEL_PATH}"/debian/scripts/*

0 commit comments

Comments
 (0)