diy.sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. svn co https://github.com/openwrt/openwrt/trunk/package/kernel/mt76 package/feeds/kiddin9/mt76
  10. 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
  11. svn co https://github.com/openwrt/openwrt/trunk/package/network/services/hostapd package/feeds/kiddin9/hostapd
  12. sed -i "s/ +PACKAGE_kmod-backlight:kmod-backlight//" package/kernel/linux/modules/video.mk
  13. 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/' target/linux/x86/Makefile
  14. mv -f tmp/r81* feeds/kiddin9/
  15. sed -i 's,kmod-r8169,kmod-r8168,g' target/linux/x86/image/*.mk
  16. sed -i 's/256/1024/g' target/linux/x86/image/Makefile
  17. echo '
  18. CONFIG_ACPI=y
  19. CONFIG_X86_ACPI_CPUFREQ=y
  20. CONFIG_NR_CPUS=512
  21. CONFIG_MMC=y
  22. CONFIG_MMC_BLOCK=y
  23. CONFIG_SDIO_UART=y
  24. CONFIG_MMC_TEST=y
  25. CONFIG_MMC_DEBUG=y
  26. CONFIG_MMC_SDHCI=y
  27. CONFIG_MMC_SDHCI_ACPI=y
  28. CONFIG_MMC_SDHCI_PCI=y
  29. ' >> ./target/linux/x86/config-5.15
  30. sed -i "s/DEVICE_MODEL := x86/DEVICE_MODEL := x86\/32/" target/linux/x86/image/generic.mk
  31. sed -i "s/enabled '0'/enabled '1'/g" feeds/packages/utils/irqbalance/files/irqbalance.config