diy.sh 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. SHELL_FOLDER=$(dirname $(readlink -f "$0"))
  3. bash $SHELL_FOLDER/../common/kernel_5.15.sh
  4. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/x86/files target/linux/x86/files
  5. rm -rf target/linux/x86/files/.svn
  6. svn co https://github.com/coolsnowwolf/lede/trunk/target/linux/x86/patches-5.15 target/linux/x86/patches-5.15
  7. rm -rf target/linux/x86/patches-5.15/.svn
  8. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/package/kernel/linux/modules/video.mk -o package/kernel/linux/modules/video.mk
  9. curl -sfL https://raw.githubusercontent.com/coolsnowwolf/lede/master/target/linux/x86/base-files/etc/board.d/02_network -o target/linux/x86/base-files/etc/board.d/02_network
  10. sed -i "s/ +PACKAGE_kmod-backlight:kmod-backlight//" package/kernel/linux/modules/video.mk
  11. sed -i 's/DEFAULT_PACKAGES +=/DEFAULT_PACKAGES += autocore-x86 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 kmod-phy-broadcom/' target/linux/x86/Makefile
  12. svn co https://github.com/openwrt/openwrt/trunk/package/kernel/mt76 package/feeds/kiddin9/mt76
  13. 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
  14. svn co https://github.com/openwrt/openwrt/trunk/package/network/services/hostapd package/feeds/kiddin9/hostapd
  15. mv -f tmp/r81* feeds/kiddin9/
  16. sed -i 's,kmod-r8169,kmod-r8168,g' target/linux/x86/image/64.mk
  17. sed -i 's/256/1024/g' target/linux/x86/image/Makefile
  18. echo '
  19. CONFIG_ACPI=y
  20. CONFIG_X86_ACPI_CPUFREQ=y
  21. CONFIG_NR_CPUS=512
  22. CONFIG_MMC=y
  23. CONFIG_MMC_BLOCK=y
  24. CONFIG_SDIO_UART=y
  25. CONFIG_MMC_TEST=y
  26. CONFIG_MMC_DEBUG=y
  27. CONFIG_MMC_SDHCI=y
  28. CONFIG_MMC_SDHCI_ACPI=y
  29. CONFIG_MMC_SDHCI_PCI=y
  30. ' >> ./target/linux/x86/config-5.15
  31. sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config