kernel_6.1.sh 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. rm -rf target/linux package/kernel package/boot package/firmware package/network/config/wifi-scripts
  3. mkdir new; cp -rf .git new/.git
  4. cd new
  5. git reset --hard origin/master
  6. cp -rf --parents target/linux package/kernel package/boot package/firmware include/kernel* package/network/config/wifi-scripts config/Config-images.in include/image*.mk scripts/ubinize-image.sh package/utils/bcm27xx-utils ../
  7. cd -
  8. sed -i "s/^.*vermagic$/\techo '1' > \$(LINUX_DIR)\/.vermagic/" include/kernel-defaults.mk
  9. #sed -i "s/\$(PKG_VERSION)-\$(PKG_RELEASE)/\$(PKG_VERSION)-r\$(PKG_RELEASE)/" include/package-defaults.mk
  10. cp -rf devices/common/patches/rootfstargz.patch.b devices/common/patches/rootfstargz.patch
  11. git_clone_path master https://github.com/coolsnowwolf/lede target/linux/generic/hack-6.1
  12. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch -o target/linux/generic/pending-6.1/613-netfilter_optional_tcp_window_check.patch
  13. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
  14. rm -rf target/linux/generic/hack-6.1/{410-block-fit-partition-parser.patch,724-net-phy-aquantia*,720-net-phy-add-aqr-phys.patch}
  15. curl -sfL https://raw.githubusercontent.com/openwrt/openwrt/main/include/u-boot.mk -o include/u-boot.mk
  16. mkdir package/kernel/mt76/patches
  17. curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch
  18. rm -rf package/feeds/kiddin9/quectel_Gobinet
  19. cd feeds/packages
  20. rm -rf libs/xr_usb_serial_common net/coova-chilli net/xtables-addons
  21. git_clone_path master https://github.com/openwrt/packages libs/xr_usb_serial_common
  22. git_clone_path master https://github.com/openwrt/packages net/coova-chilli
  23. git_clone_path master https://github.com/openwrt/packages net/xtables-addons
  24. cd ../../
  25. sed -i 's/=bbr/=cubic/' package/kernel/linux/files/sysctl-tcp-bbr.conf
  26. sed -i "s/tty\(0\|1\)::askfirst/tty\1::respawn/g" target/linux/*/base-files/etc/inittab
  27. sed -i "s/no-lto,/no-lto no-mold,/" include/package.mk