1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Fix Rockchip 6.1 compilation

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-06-25 08:24:35 +02:00
parent 948aebf05a
commit 747950fd6c
67 changed files with 16078 additions and 2 deletions

View file

@ -150,9 +150,10 @@ rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/files" "$OMR_TARGET/${OMR_KERNEL}/sourc
#rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/mediatek/patches-5.4"
#rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-mediatek"
#rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/package/boot/arm-trusted-firmware-mediatek"
[ "${OMR_KERNEL}" = "5.4" ] && rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/tools/firmware-utils"
echo "rm -rf $OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
rm -rf "${OMR_TARGET}/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
[ "${OMR_KERNEL}" = "5.4" ] && rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/tools/firmware-utils"
if [ "$OMR_TARGET" != "rutx" ]; then
# There is many customization to support rutx and this seems to break other ipq40xx, so dirty workaround for now
[ -d "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx" ] && mv -f "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx" "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx.old"
@ -601,6 +602,8 @@ if [ "$OMR_KERNEL" = "5.4" ]; then
if [ -f target/linux/mvebu/patches-5.4/022-arm64-dts-marvell-armada-37xx-Move-PCIe-max-link-spe.patch ]; then
rm -f target/linux/mvebu/patches-5.4/022-arm64-dts-marvell-armada-37xx-Move-PCIe-max-link-spe.patch
fi
echo "rm -rf $OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
rm -rf "${OMR_TARGET}/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
#rm -f target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts
echo "CONFIG_VERSION_CODE=5.4" >> ".config"
fi
@ -680,7 +683,7 @@ if [ "$OMR_KERNEL" = "6.1" ]; then
rm -f package/kernel/rtl8812au-ct/patches/003-*
rm -f package/kernel/rtl8812au-ct/patches/004-*
rm -f package/kernel/rtl8812au-ct/patches/100-api_update.patch
rm -f target/linux/bcm27xx/modules/sound.mk
#rm -f target/linux/bcm27xx/modules/sound.mk
rm -f package/libs/elfutils/patches/101-no-fts.patch
rm -f package/kernel/mwlwifi/patches/001-*
rm -f package/kernel/mwlwifi/patches/002-*