mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add first test for kernel 6.10 support
This commit is contained in:
parent
f735d6c75a
commit
f023e9c6e5
271 changed files with 57306 additions and 14 deletions
33
build.sh
33
build.sh
|
@ -129,7 +129,7 @@ if [ "$OMR_OPENWRT" = "default" ]; then
|
|||
_get_repo "$OMR_TARGET/${OMR_KERNEL}/source" https://github.com/openwrt/openwrt "acf40c022e3d8949c7bb1f9c5212eb91512ae8a9"
|
||||
_get_repo feeds/${OMR_KERNEL}/packages https://github.com/openwrt/packages "3ee7b46610e9dbd8fd2bba87bd06024cd0d9c08f"
|
||||
_get_repo feeds/${OMR_KERNEL}/luci https://github.com/openwrt/luci "ddda66aa8caa5e929cf7a542a79e2c3ce69eb66c"
|
||||
elif [ "$OMR_KERNEL" = "6.6" ] || [ "$OMR_KERNEL" = "6.7" ]; then
|
||||
elif [ "$OMR_KERNEL" = "6.6" ] || [ "$OMR_KERNEL" = "6.10" ]; then
|
||||
_get_repo "$OMR_TARGET/${OMR_KERNEL}/source" https://github.com/openwrt/openwrt "820823198d16f31dd59d88ed0d963eafd103111a"
|
||||
_get_repo feeds/${OMR_KERNEL}/packages https://github.com/openwrt/packages "2cc7cf3ca0aa6ad2cf5d67a66632ca5a516eb07b"
|
||||
_get_repo feeds/${OMR_KERNEL}/luci https://github.com/openwrt/luci "5a8917b149c9a248a6b5647e74761f7cc8c2a5c8"
|
||||
|
@ -181,7 +181,7 @@ if [ "${OMR_KERNEL}" = "5.4" ]; then
|
|||
fi
|
||||
echo "rm -rf $OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-mvebu"
|
||||
rm -rf "${OMR_TARGET}/${OMR_KERNEL}/source/package/boot/uboot-mvebu"
|
||||
[ "${OMR_KERNEL}" = "6.1" ] || [ "${OMR_KERNEL}" = "6.6" ] || [ "${OMR_KERNEL}" = "6.7" ] && {
|
||||
[ "${OMR_KERNEL}" = "6.1" ] || [ "${OMR_KERNEL}" = "6.6" ] || [ "${OMR_KERNEL}" = "6.10" ] && {
|
||||
echo "rm -rf $OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-ipq40xx"
|
||||
rm -rf "${OMR_TARGET}/${OMR_KERNEL}/source/package/boot/uboot-ipq40xx"
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ if [ "$OMR_KERNEL" != "5.4" ] && [ "$OMR_TARGET" != "x86_64" ] && [ "$OMR_TARGET
|
|||
echo "# CONFIG_PACKAGE_kmod-r8125 is not set" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||
echo "# CONFIG_PACKAGE_kmod-r8168 is not set" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||
fi
|
||||
if [ "$OMR_KERNEL" = "6.1" ] || [ "$OMR_KERNEL" = "6.6" ] || [ "$OMR_KERNEL" = "6.7" ]; then
|
||||
if [ "$OMR_KERNEL" = "6.1" ] || [ "$OMR_KERNEL" = "6.6" ] || [ "$OMR_KERNEL" = "6.10" ]; then
|
||||
echo "# CONFIG_PACKAGE_kmod-rtl8812au-ct is not set" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||
fi
|
||||
|
||||
|
@ -460,7 +460,7 @@ cd "$OMR_TARGET/${OMR_KERNEL}/source"
|
|||
# echo "Done"
|
||||
#fi
|
||||
|
||||
if [ "$OMR_KERNEL" != "6.6" ]; then
|
||||
if [ "$OMR_KERNEL" != "6.6" ] && [ "$OMR_KERNEL" != "6.10" ]; then
|
||||
echo "Checking if No check patch is set or not"
|
||||
if ! patch -Rf -N -p1 -s --dry-run < ../../../patches/nocheck.patch; then
|
||||
echo "apply..."
|
||||
|
@ -872,21 +872,24 @@ if [ "$OMR_KERNEL" = "6.6" ]; then
|
|||
NOT_SUPPORTED="1"
|
||||
fi
|
||||
fi
|
||||
if [ "$OMR_KERNEL" = "6.7" ]; then
|
||||
echo "Set to kernel 6.7 for x86 arch"
|
||||
find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=5.15%KERNEL_PATCHVER:=6.7%g' {} \;
|
||||
find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=6.1%KERNEL_PATCHVER:=6.7%g' {} \;
|
||||
if [ "$OMR_KERNEL" = "6.10" ]; then
|
||||
echo "Set to kernel 6.10 for x86 arch"
|
||||
find target/linux/x86 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=6.6%KERNEL_PATCHVER:=6.10%g' {} \;
|
||||
echo "Done"
|
||||
echo "Set to kernel 6.7 for mediatek"
|
||||
find target/linux/mediatek -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=6.1%KERNEL_PATCHVER:=6.7%g' {} \;
|
||||
echo "Set to kernel 6.10 for mediatek"
|
||||
find target/linux/mediatek -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=6.6%KERNEL_PATCHVER:=6.10%g' {} \;
|
||||
echo "Done"
|
||||
echo "CONFIG_VERSION_CODE=6.7" >> ".config"
|
||||
echo "CONFIG_VERSION_CODE=6.10" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-gpio-button-hotplug is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-meraki-mx100 is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-gpio-nct5104d is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-r8168 is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-button-hotplug is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-cryptodev is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-trelay is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_464xlat is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-nat46 is not set" >> ".config"
|
||||
echo "# CONFIG_PACKAGE_kmod-ath10k-ct-smallbuffers is not set" >> ".config"
|
||||
# Remove for now packages that doesn't compile
|
||||
rm -rf package/kernel/mt76
|
||||
rm -rf package/kernel/rtl8812au-ct
|
||||
|
@ -894,11 +897,13 @@ if [ "$OMR_KERNEL" = "6.7" ]; then
|
|||
rm -f package/kernel/mac80211/patches/build/200-Revert-wifi-iwlwifi-Use-generic-thermal_zone_get_tri.patch
|
||||
rm -f package/kernel/mac80211/patches/build/210-revert-split-op.patch
|
||||
rm -f package/kernel/mac80211/patches/subsys/301-mac80211-sta-randomize-BA-session-dialog-token-alloc.patch
|
||||
rm -f package/kernel/mac80211/patches/build/240-backport_genl_split_ops.patch
|
||||
rm -f package/kernel/mac80211/patches/build/250-backport_iwlwifi_thermal.patch
|
||||
rm -f package/kernel/rtl8812au-ct/patches/099-cut-linkid-linux-version-code-conditionals.patch
|
||||
rm -f package/kernel/rtl8812au-ct/patches/100-api_update.patch
|
||||
echo 'CONFIG_KERNEL_GIT_CLONE_URI="https://github.com/multipath-tcp/mptcp_net-next.git"' >> ".config"
|
||||
#echo 'CONFIG_KERNEL_GIT_REF="7377151edddb46e11f664e5709e594551a414fe3"' >> ".config"
|
||||
echo 'CONFIG_KERNEL_GIT_REF="3d1856db1e4d551bffe5987f57b84b62e245689b"' >> ".config"
|
||||
echo 'CONFIG_KERNEL_GIT_REF="9c4a82ff89bb16e8ca3cc993345c0122b7d4bfa0"' >> ".config"
|
||||
fi
|
||||
|
||||
#rm -rf feeds/packages/libs/libwebp
|
||||
|
@ -907,7 +912,7 @@ rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-network
|
|||
|
||||
if [ -d feeds/${OMR_KERNEL}/${OMR_DIST}/luci-mod-status ]; then
|
||||
rm -rf feeds/${OMR_KERNEL}/luci/modules/luci-mod-status
|
||||
elif [ "$OMR_KERNEL" = "6.6" ]; then
|
||||
elif [ "$OMR_KERNEL" = "6.6" ] || [ "$OMR_KERNEL" = "6.10" ]; then
|
||||
cd feeds/${OMR_KERNEL}
|
||||
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/luci-syslog-6.6.patch; then
|
||||
patch -N -p1 -s < ../../patches/luci-syslog-6.6.patch
|
||||
|
@ -931,7 +936,7 @@ fi
|
|||
[ -d ${OMR_FEED}/golang ] && rm -rf feeds/${OMR_KERNEL}/packages/lang/golang
|
||||
[ -d ${OMR_FEED}/openvpn ] && rm -rf feeds/${OMR_KERNEL}/packages/net/openvpn
|
||||
[ -d ${OMR_FEED}/iproute2 ] && rm -rf feeds/${OMR_KERNEL}/packages/network/utils/iproute2
|
||||
[ "$OMR_KERNEL" = "6.6" ] && [ -d ${OMR_FEED}/xtables-addons ] && rm -rf feeds/${OMR_KERNEL}/packages/net/xtables-addons
|
||||
([ "$OMR_KERNEL" = "6.6" ] || [ "$OMR_KERNEL" = "6.10" ]) && [ -d ${OMR_FEED}/xtables-addons ] && rm -rf feeds/${OMR_KERNEL}/packages/net/xtables-addons
|
||||
|
||||
echo "Add Occitan translation support"
|
||||
cd feeds/${OMR_KERNEL}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue