diy.sh 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. shopt -s extglob
  3. SHELL_FOLDER=$(dirname $(readlink -f "$0"))
  4. rm -rf package/boot/uboot-rockchip
  5. svn export --force https://github.com/coolsnowwolf/lede/trunk/package/boot/uboot-rockchip package/boot/uboot-rockchip
  6. svn export --force https://github.com/coolsnowwolf/lede/trunk/package/boot/arm-trusted-firmware-rockchip-vendor package/boot/arm-trusted-firmware-rockchip-vendor
  7. rm -rf target/linux/rockchip/!(Makefile|patches-5.15)
  8. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/rockchip target/linux/rockchip
  9. rm -rf target/linux/rockchip/{.svn,patches-5.15/.svn}
  10. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/rockchip/patches-5.15 target/linux/rockchip/patches-5.15
  11. rm -rf target/linux/rockchip/patches-5.15/{002-net-usb*,204-rockchip-rk3328*,003-dt-bindings*,006-rockchip-rk3399*,072-v6.2-net-phy*,073-v6.2-net-phy*,074-v6.3-net-phy*,075-v6.3-net-phy*,076-v6.3-net-phy*,077-v6.3-net-phy*,078-v6.3-net-phy*,079-v6.3-net-phy*}
  12. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
  13. svn co https://github.com/openwrt/openwrt/trunk/package/kernel/mt76 package/feeds/kiddin9/mt76
  14. curl -sfL https://raw.githubusercontent.com/immortalwrt/immortalwrt/master/package/kernel/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch -o package/feeds/kiddin9/mt76/patches/0001-mt76-allow-VHT-rate-on-2.4GHz.patch
  15. sed -i "/KernelPackage,ptp/d" package/kernel/linux/modules/other.mk
  16. mv -f tmp/r8125 feeds/kiddin9/
  17. rm -rf target/linux/rockchip/armv8/base-files/etc/uci-defaults/13_opkg_update
  18. sed -i -e 's,kmod-r8168,kmod-r8169,g' target/linux/rockchip/image/armv8.mk
  19. sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-drm-rockchip/' target/linux/rockchip/Makefile
  20. sed -i 's/Ariaboard/光影猫/' target/linux/rockchip/image/armv8.mk
  21. echo '
  22. CONFIG_SENSORS_PWM_FAN=y
  23. ' >> ./target/linux/rockchip/armv8/config-5.15