diy.sh 1.2 KB

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. shopt -s extglob
  3. rm -rf package/boot/uboot-rockchip
  4. svn export --force https://github.com/coolsnowwolf/lede/trunk/package/boot/uboot-rockchip package/boot/uboot-rockchip
  5. svn export --force https://github.com/coolsnowwolf/lede/trunk/package/boot/arm-trusted-firmware-rockchip-vendor package/boot/arm-trusted-firmware-rockchip-vendor
  6. rm -rf target/linux/rockchip/!(Makefile|patches-5.10)
  7. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/rockchip target/linux/rockchip
  8. rm -rf target/linux/rockchip/{.svn,patches-5.10/.svn}
  9. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/rockchip/patches-5.10 target/linux/rockchip/patches-5.10
  10. rm -rf target/linux/rockchip/patches-5.10/{002-net-usb*,003-dt-bindings*,006-rockchip-rk3399*}
  11. svn export --force https://github.com/friendlyarm/friendlywrt/trunk/target/linux/rockchip/armv8/base-files/etc/modules.d target/linux/rockchip/armv8/base-files/etc/modules.d
  12. mv -f tmp/r8125 feeds/kiddin9/
  13. sed -i -e 's,kmod-r8168,kmod-r8169,g' target/linux/rockchip/image/armv8.mk
  14. sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-drm-rockchip kmod-gpu-lima/' target/linux/rockchip/Makefile
  15. echo '
  16. CONFIG_SENSORS_PWM_FAN=y
  17. ' >> ./target/linux/rockchip/armv8/config-5.10