diy.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. SHELL_FOLDER=$(dirname $(readlink -f "$0"))
  3. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/x86/files target/linux/x86/files
  4. rm -rf target/linux/x86/files/.svn
  5. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/x86/patches-5.15 target/linux/x86/patches-5.15
  6. rm -rf target/linux/x86/patches-5.15/.svn
  7. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
  8. svn co https://github.com/openwrt/openwrt/trunk/package/kernel/mt76 package/feeds/kiddin9/mt76
  9. 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
  10. sed -i "s/ +PACKAGE_kmod-backlight:kmod-backlight//" package/kernel/linux/modules/video.mk
  11. sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += kmod-usb-hid kmod-mmc kmod-sdhci usbutils pciutils lm-sensors-detect kmod-alx kmod-vmxnet3 kmod-igbvf kmod-iavf kmod-bnx2x kmod-pcnet32 kmod-tulip kmod-r8125 kmod-8139cp kmod-8139too kmod-i40e kmod-drm-i915 kmod-drm-amdgpu kmod-mlx4-core kmod-mlx5-core fdisk lsblk/' target/linux/x86/Makefile
  12. mv -f tmp/r81* feeds/kiddin9/
  13. sed -i 's,kmod-r8169,kmod-r8168,g' target/linux/x86/image/*.mk
  14. sed -i 's/256/1024/g' target/linux/x86/image/Makefile
  15. echo '
  16. CONFIG_ACPI=y
  17. CONFIG_X86_ACPI_CPUFREQ=y
  18. CONFIG_NR_CPUS=512
  19. CONFIG_MMC=y
  20. CONFIG_MMC_BLOCK=y
  21. CONFIG_SDIO_UART=y
  22. CONFIG_MMC_TEST=y
  23. CONFIG_MMC_DEBUG=y
  24. CONFIG_MMC_SDHCI=y
  25. CONFIG_MMC_SDHCI_ACPI=y
  26. CONFIG_MMC_SDHCI_PCI=y
  27. ' >> ./target/linux/x86/config-5.15
  28. sed -i "s/DEVICE_MODEL := x86/DEVICE_MODEL := x86\/32/" target/linux/x86/image/generic.mk
  29. sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config