From 1d9102a2c7086ded09cbd8a7d72e5d0de53b963e Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Thu, 4 Apr 2024 14:17:50 +0200 Subject: [PATCH] Fix build script when package exist in custom overlay --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 4c0a2279..66bff62f 100755 --- a/build.sh +++ b/build.sh @@ -781,6 +781,9 @@ if [ "$OMR_KERNEL" = "6.6" ]; then echo "Set to kernel 6.6 for qualcommmax" find target/linux/qualcommax -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=6.1%KERNEL_PATCHVER:=6.6%g' {} \; echo "Done" + echo "Set to kernel 6.1 for bcm27xx" + find target/linux/bcm27xx -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=6.1%KERNEL_PATCHVER:=6.6%g' {} \; + echo "Done" #echo "CONFIG_VERSION_CODE=6.6" >> ".config" #echo "# CONFIG_PACKAGE_kmod-gpio-button-hotplug is not set" >> ".config" #echo "# CONFIG_PACKAGE_kmod-meraki-mx100 is not set" >> ".config" @@ -833,8 +836,8 @@ fi #rm -rf feeds/packages/libs/libwebp cd "../../.." rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-network -[ -d feeds/${OMR_DIST}/luci-mod-status ] && rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status -[ -d feeds/${OMR_DIST}/luci-app-statistics ] && rm -rf feeds/${OMR_KERNEL}/luci/applications/luci-app-statistics +[ -d feeds/${OMR_DIST}/${OMR_KERNEL}/luci-mod-status ] && rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status +[ -d feeds/${OMR_DIST}/${OMR_KERNEL}/luci-app-statistics ] && rm -rf feeds/${OMR_KERNEL}/luci/applications/luci-app-statistics #[ -d feeds/${OMR_DIST}/luci-proto-modemmanager ] && rm -rf feeds/${OMR_KERNEL}/luci/protocols/luci-proto-modemmanager #if [ -d ${OMR_FEED}/netifd ] && [ "${OMR_KERNEL}" != "5.4" ]; then # rm -rf ${OMR_TARGET}/${OMR_KERNEL}/source/package/network/config/netifd