From 4b6c1db46bac864b9f6d29057c7cea99ba35ef04 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 28 Sep 2021 19:26:46 +0200 Subject: [PATCH] Fix kernel support --- build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index f509cc57..0348b1ac 100755 --- a/build.sh +++ b/build.sh @@ -439,6 +439,7 @@ fi if [ "$OMR_KERNEL" = "5.4" ]; then echo "Set to kernel 5.4 for rpi arch" + find target/linux/bcm27xx -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER=5.10%KERNEL_PATCHVER:=5.4%g' {} \; find target/linux/bcm27xx -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=5.10%KERNEL_PATCHVER:=5.4%g' {} \; echo "Done" echo "Set to kernel 5.4 for x86 arch" @@ -456,13 +457,13 @@ if [ "$OMR_KERNEL" = "5.10" ]; then find target/linux/bcm27xx -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=5.4%KERNEL_PATCHVER:=5.10%g' {} \; find target/linux/bcm27xx -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER=5.4%KERNEL_PATCHVER:=5.10%g' {} \; echo "Done" - echo "Set to kernel 5.14 for x86 arch" + echo "Set to kernel 5.10 for x86 arch" find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=5.4%KERNEL_PATCHVER:=5.10%g' {} \; echo "Done" - echo "Set to kernel 5.14 for mvebu arch (WRT)" + echo "Set to kernel 5.10 for mvebu arch (WRT)" find target/linux/mvebu -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=5.4%KERNEL_PATCHVER:=5.10%g' {} \; echo "Done" - echo "Set to kernel 5.14 for mediatek arch (BPI-R2)" + echo "Set to kernel 5.10 for mediatek arch (BPI-R2)" find target/linux/mediatek -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=5.4%KERNEL_PATCHVER:=5.10%g' {} \; echo "Done" fi @@ -532,7 +533,7 @@ if [ ! -f "../../$OMR_TARGET_CONFIG" ]; then exit 1 fi -echo "Building $OMR_DIST for the target $OMR_TARGET" +echo "Building $OMR_DIST for the target $OMR_TARGET with kernel $OMR_KERNEL" make defconfig make IGNORE_ERRORS=m "$@" echo "Done"