diy.sh 903 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. shopt -s extglob
  3. sed -i "s/BOARD:=rockchip$/BOARD:=rockchip_rk3588/" target/linux/rockchip/Makefile
  4. sed -i -e 's,kmod-r8168,kmod-r8169,g' target/linux/rockchip/image/armv8.mk
  5. sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += fdisk lsblk kmod-drm-rockchip/' target/linux/rockchip/Makefile
  6. echo '
  7. CONFIG_SENSORS_PWM_FAN=y
  8. ' >> ./target/linux/rockchip/armv8/config-5.10
  9. sed -i "/KernelPackage,ptp/d" package/kernel/linux/modules/other.mk
  10. mv -f target/linux/rockchip target/linux/rockchip_rk3588
  11. rm -rf package/feeds/packages/glib2 package/devel/perf package/feeds/kiddin9/{shortcut-fe,fibocom_QMI_WWAN,oaf,fast-classifier,firewall,rtl88x2bu,rtl8821cu} package/feeds/packages/bluez package/kernel/ksmbd package/feeds/routing/batman-adv
  12. #curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk