mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Update build.sh
This commit is contained in:
parent
30924fe702
commit
0780782826
1 changed files with 9 additions and 6 deletions
15
build.sh
15
build.sh
|
@ -207,9 +207,6 @@ fi
|
|||
if [ "$OMR_PACKAGES" = "mini" ]; then
|
||||
echo "CONFIG_PACKAGE_${OMR_DIST}-mini=y" >> "$OMR_TARGET/source/.config"
|
||||
fi
|
||||
if [ "$OMR_PACKAGES" = "zuixiao" ]; then
|
||||
echo "CONFIG_PACKAGE_${OMR_DIST}-zuixiao=y" >> "$OMR_TARGET/source/.config"
|
||||
fi
|
||||
|
||||
if [ "$OMR_TARGET" = "bpi-r1" -a "$OMR_OPENWRT" = "master" ]; then
|
||||
# We disable mc in master, because it leads to unknown compilation errors on bpi-r1 target
|
||||
|
@ -339,6 +336,13 @@ if ! patch -Rf -N -p1 -s --dry-run < ../../patches/nanqinlang.patch; then
|
|||
fi
|
||||
echo "Done"
|
||||
|
||||
echo "Checking if remove_abi patch is set or not"
|
||||
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/remove_abi.patch; then
|
||||
echo "apply..."
|
||||
patch -N -p1 -s < ../../patches/remove_abi.patch
|
||||
fi
|
||||
echo "Done"
|
||||
|
||||
# Add BBR2 patch, only working on 64bits images for now
|
||||
if [ "$OMR_TARGET" = "x86_64" ] || [ "$OMR_TARGET" = "bpi-r64" ] || [ "$OMR_TARGET" = "rpi4" ] || [ "$OMR_TARGET" = "espressobin" ] || [ "$OMR_TARGET" = "r2s" ] || [ "$OMR_TARGET" = "rpi3" ]; then
|
||||
echo "Checking if BBRv2 patch is set or not"
|
||||
|
@ -420,7 +424,7 @@ if [ "$OMR_KERNEL" = "5.4" ]; then
|
|||
echo "Set to kernel 5.4 for mediatek arch (BPI-R2)"
|
||||
find target/linux/mediatek -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=5.4%g' {} \;
|
||||
echo "Done"
|
||||
echo "Set to kernel 5.4 for IPQ (4019)"
|
||||
echo "Set to kernel 5.4 for IPQ (4019)"
|
||||
find target/linux/ipq40xx -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.19%KERNEL_PATCHVER:=5.4%g' {} \;
|
||||
echo "Done"
|
||||
fi
|
||||
|
@ -443,7 +447,6 @@ cd "$OMR_TARGET/source"
|
|||
echo "Update feeds index"
|
||||
cp .config .config.keep
|
||||
scripts/feeds clean
|
||||
scripts/feeds install -a
|
||||
scripts/feeds update -a
|
||||
|
||||
#cd -
|
||||
|
@ -476,4 +479,4 @@ fi
|
|||
echo "Building $OMR_DIST for the target $OMR_TARGET"
|
||||
make defconfig
|
||||
make IGNORE_ERRORS=m "$@"
|
||||
echo "Done"
|
||||
echo "Done"
|
Loading…
Add table
Add a link
Reference in a new issue