diy.sh 1.5 KB

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