Kernel: upgrade to 5.10

This commit is contained in:
John Doe
2021-12-29 03:17:17 +08:00
parent f708ee5568
commit 50cfb9c757
3 changed files with 12 additions and 5 deletions

View File

@@ -26,14 +26,13 @@ if [ $BRANCH == 'master' ]; then
git checkout target/linux/rockchip
git checkout target/linux/x86
sed -i 's/5.10/5.4/' target/linux/rockchip/Makefile
git revert --no-commit -X theirs 91eed5d9fb74e6c740291362ba12e11a2222a9fd
echo '# CONFIG_KCSAN is not set' >> target/linux/x86/config-5.10
echo '# CONFIG_CRYPTO_GHASH_ARM_CE is not set' >> target/linux/sunxi/cortexa7/config-5.10
echo '# CONFIG_CRYPTO_CRCT10DIF_ARM_CE is not set' >> target/linux/sunxi/cortexa7/config-5.10
echo '# CONFIG_SUN50I_IOMMU is not set' >> target/linux/sunxi/cortexa7/config-5.10
echo '# CONFIG_UCLAMP_TASK is not set' >> target/linux/sunxi/config-5.4
echo '# CONFIG_UCLAMP_TASK is not set' >> target/linux/sunxi/config-5.10
sed -i '/LINUX_5_4/d' package/kernel/r8168/Makefile
# fix po path for snapshot
@@ -49,7 +48,7 @@ if [ $BRANCH == 'master' ]; then
sed -i 's/r8169/r8168/' target/linux/rockchip/image/armv8.mk
# change the voltage value for over-clock stablization
sed -i 's/1400000/1450000/' target/linux/rockchip/patches-5.4/991-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch
sed -i 's/1400000/1450000/' target/linux/rockchip/patches-5.10/991-arm64-dts-rockchip-add-more-cpu-operating-points-for.patch
config_file_cpufreq=`find package/ -follow -type f -path '*/luci-app-cpufreq/root/etc/config/cpufreq'`
truncate -s-1 $config_file_cpufreq
echo -e "\toption governor0 'schedutil'" >> $config_file_cpufreq
@@ -60,6 +59,7 @@ if [ $BRANCH == 'master' ]; then
# enable the gpu for device 'r2s'|'r2c'|'r4s'|'r1p'
wget https://github.com/coolsnowwolf/lede/raw/757e42d70727fe6b937bb31794a9ad4f5ce98081/target/linux/rockchip/config-default -NP target/linux/rockchip/
wget https://github.com/coolsnowwolf/lede/commit/f341ef96fe4b509a728ba1281281da96bac23673.patch
sed -i 's/config-5.4/config-5.10/g' f341ef96fe4b509a728ba1281281da96bac23673.patch
git apply f341ef96fe4b509a728ba1281281da96bac23673.patch
rm f341ef96fe4b509a728ba1281281da96bac23673.patch
@@ -69,6 +69,11 @@ if [ $BRANCH == 'master' ]; then
rm cebdc1f94dcd6363da3a5d7e1e69fd741b8b718e.patch
sed -i 's/pwmchip1/pwmchip0/' target/linux/rockchip/armv8/base-files/usr/bin/fa-fancontrol.sh target/linux/rockchip/armv8/base-files/usr/bin/fa-fancontrol-direct.sh
# add ntfs3
wget https://github.com/coolsnowwolf/lede/commit/772c5d2c8beac50ed5140c3d494f0806c64edc29.patch
git apply 772c5d2c8beac50ed5140c3d494f0806c64edc29.patch
rm 772c5d2c8beac50ed5140c3d494f0806c64edc29.patch
#this is a ugly fix
sed -i '/procd-ujail/d' include/target.mk
echo 'CONFIG_PACKAGE_procd-seccomp=y' >> $GITHUB_WORKSPACE/common.seed