diff --git a/openwrt-22.03/steps/02_prepare_openwrt_folder.sh b/openwrt-22.03/steps/02_prepare_openwrt_folder.sh index 2d64a60..36a01ce 100755 --- a/openwrt-22.03/steps/02_prepare_openwrt_folder.sh +++ b/openwrt-22.03/steps/02_prepare_openwrt_folder.sh @@ -18,6 +18,10 @@ echo "Current OpenWRT commit" git log -1 git describe +# fix packages for rrdtool1 not downloading +sed -i 's/38cb0129739bc71e0bb5a25ef1f6db70b7add04b/87c46fde91e743aea1704853a801e59a73ef47a2/' feeds.conf.default + + # install feeds # cd openwrt # ./scripts/feeds update -a && ./scripts/feeds install -a diff --git a/openwrt-22.03/steps/07-all_kmods.sh b/openwrt-22.03/steps/07-all_kmods.sh index 79f4ddb..288435b 100755 --- a/openwrt-22.03/steps/07-all_kmods.sh +++ b/openwrt-22.03/steps/07-all_kmods.sh @@ -19,6 +19,9 @@ rm -rf bin/ rm -rf files/ipks/ let make_process=$(nproc)+1 +# compile toolchain if not built yet +make toolchain/install -j${make_process} || { make toolchain/install -j 1 V=s ; exit 1 ; } + # compile kernel kmods and build packages make target/compile -j ${make_process} || { make target/compile -j 1 V=s ; exit 1 ; } make package/linux/compile -j ${make_process} || { make package/linux/compile -j 1 V=s ; exit 1 ; }