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

Commit

Permalink
Update kernel 5.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosfad committed Aug 21, 2020
1 parent f38f4c6 commit a40c6cc
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 931 deletions.
34 changes: 18 additions & 16 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu -o pipefail

## Update docker image tag, because kernel build is using `uname -r` when defining package version variable
# KERNEL_VERSION=$(curl -s https://www.kernel.org | grep '<strong>' | head -3 | tail -1 | cut -d'>' -f3 | cut -d'<' -f1)
KERNEL_VERSION=5.7.15
KERNEL_VERSION=5.8.1
#KERNEL_REPOSITORY=git://kernel.ubuntu.com/virgin/linux-stable.git
KERNEL_REPOSITORY=https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
REPO_PATH=$(pwd)
Expand Down Expand Up @@ -63,10 +63,12 @@ echo >&2 "===]> Info: Applying patches... "
echo 'Patches directory not found!'
exit 1
}


while IFS= read -r file; do
echo "==> Adding $file"
patch -p1 <"$file"
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep -vE '[2]00[0-9]' | sort)
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | sort)

chmod a+x "${KERNEL_PATH}"/debian/rules
chmod a+x "${KERNEL_PATH}"/debian/scripts/*
Expand All @@ -85,20 +87,20 @@ echo "" >"${KERNEL_PATH}"/.scmversion
# Build Deb packages
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp)"

# Create alternative Kernel
echo >&2 "===]> Info: Create alternative kernel ... "
make distclean
make clean
while IFS= read -r file; do
echo "==> Adding $file"
patch -p1 <"$file"
done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep -E '[2]00[0-9]' | sort)
cp "${WORKING_PATH}/templates/default-config" "${KERNEL_PATH}/.config"
make olddefconfig
echo "" >"${KERNEL_PATH}"/.scmversion

# Build Deb packages
make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-alt KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp-alt)"
## Create alternative Kernel
#echo >&2 "===]> Info: Create alternative kernel ... "
#make distclean
#make clean
#while IFS= read -r file; do
# echo "==> Adding $file"
# patch -p1 <"$file"
#done < <(find "${WORKING_PATH}/patches" -type f -name "*.patch" | grep -E '[2]00[0-9]' | sort)
#cp "${WORKING_PATH}/templates/default-config" "${KERNEL_PATH}/.config"
#make olddefconfig
#echo "" >"${KERNEL_PATH}"/.scmversion
#
## Build Deb packages
#make -j "$(getconf _NPROCESSORS_ONLN)" deb-pkg LOCALVERSION=-mbp-alt KDEB_PKGVERSION="$(make kernelversion)-$(get_next_version mbp-alt)"

#### Copy artifacts to shared volume
echo >&2 "===]> Info: Copying debs and calculating SHA256 ... "
Expand Down
8 changes: 4 additions & 4 deletions patch_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ BUILD_PATH=/tmp/build-kernel

### Apple T2 drivers commit hashes
# Patches
APPLE_SMC_DRIVER_GIT_URL=https://github.com/aunali1/linux-mbp-arch
APPLE_SMC_DRIVER_BRANCH_NAME=master
APPLE_SMC_DRIVER_COMMIT_HASH=aa8d8579b88f67cc21592a439937f73d174e836f
APPLE_SMC_DRIVER_GIT_URL=https://github.com/marcosfad/linux-mbp-arch.git
APPLE_SMC_DRIVER_BRANCH_NAME=feature/kernel-5.8
APPLE_SMC_DRIVER_COMMIT_HASH=13a0aff189d5c70a9b570e69cbf8b13b2887ba19
## BCE
#APPLE_BCE_DRIVER_GIT_URL=https://github.com/aunali1/mbp2018-bridge-drv.git
#APPLE_BCE_DRIVER_BRANCH_NAME=aur
Expand All @@ -31,7 +31,7 @@ git checkout ${APPLE_SMC_DRIVER_COMMIT_HASH}
while IFS= read -r file; do
echo "==> Adding ${file}"
cp -rfv "${file}" "${WORKING_PATH}"/patches/"${file##*/}"
done < <(find "${BUILD_PATH}/linux-mbp-arch" -type f -name "*.patch" | grep -E '[235]00[0-9]' | sort)
done < <(find "${BUILD_PATH}/linux-mbp-arch" -type f -name "*.patch" | grep -vE '000[0-9]' | sort)

#### Add custom drivers to kernel
#echo -e "From: \"Kernel Builder (sita)\" <[email protected]>\nSubject: patch custom drivers\n" >"${WORKING_PATH}/patches/custom-drivers.patch"
Expand Down
297 changes: 0 additions & 297 deletions patches/0005-configs-based-on-Ubuntu-5.7.0-6.7.patch

This file was deleted.

Loading

0 comments on commit a40c6cc

Please sign in to comment.