From 273643b21a855e774cdab6b8ef0f4bc77665c266 Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 10 Jun 2022 22:23:12 +0800 Subject: [PATCH] use 5.4 --- scripts/patches.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/patches.sh b/scripts/patches.sh index a0959cd..becea76 100644 --- a/scripts/patches.sh +++ b/scripts/patches.sh @@ -99,11 +99,8 @@ if [[ $DEVICE == 'r1s' ]]; then merge_package https://github.com/immortalwrt/immortalwrt/branches/openwrt-18.06-k5.4/package/emortal/autocore fi -if [[ $DEVICE == 'r2s' || $DEVICE == 'r2c' || $DEVICE == 'r1p' || $DEVICE == 'r1p-lts' ]]; then - sed -i 's/5.10/5.4/g' target/linux/rockchip/Makefile -fi - if [[ $DEVICE == 'r4s' || $DEVICE == 'r2s' || $DEVICE == 'r2c' || $DEVICE == 'r1p' || $DEVICE == 'r1p-lts' ]]; then + sed -i 's/5.10/5.4/g' target/linux/rockchip/Makefile line_number_CONFIG_CRYPTO_LIB_BLAKE2S=$[`grep -n 'CONFIG_CRYPTO_LIB_BLAKE2S' package/kernel/linux/modules/crypto.mk | cut -d: -f 1`+1] sed -i $line_number_CONFIG_CRYPTO_LIB_BLAKE2S' s/HIDDEN:=1/DEPENDS:=@(LINUX_5_4||LINUX_5_10)/' package/kernel/linux/modules/crypto.mk sed -i 's/libblake2s.ko@lt5.9/libblake2s.ko/;s/libblake2s-generic.ko@lt5.9/libblake2s-generic.ko/' package/kernel/linux/modules/crypto.mk