generic.mk 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. define Device/FitImage
  2. KERNEL_SUFFIX := -uImage.itb
  3. KERNEL = kernel-bin | libdeflate-gzip | fit gzip $$(KDIR)/image-$$(DEVICE_DTS).dtb
  4. KERNEL_NAME := Image
  5. endef
  6. define Device/FitImageLzma
  7. KERNEL_SUFFIX := -uImage.itb
  8. KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
  9. KERNEL_NAME := Image
  10. endef
  11. define Device/UbiFit
  12. KERNEL_IN_UBI := 1
  13. IMAGES := factory.ubi sysupgrade.bin
  14. IMAGE/factory.ubi := append-ubi
  15. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  16. endef
  17. define Device/dynalink_dl-wrx36
  18. $(call Device/FitImage)
  19. $(call Device/UbiFit)
  20. DEVICE_VENDOR := Dynalink
  21. DEVICE_MODEL := DL-WRX36
  22. BLOCKSIZE := 128k
  23. PAGESIZE := 2048
  24. DEVICE_DTS_CONFIG := config@rt5010w-d350-rev0
  25. SOC := ipq8072
  26. DEVICE_PACKAGES := ipq-wifi-dynalink_dl-wrx36
  27. endef
  28. TARGET_DEVICES += dynalink_dl-wrx36
  29. define Device/edgecore_eap102
  30. $(call Device/FitImage)
  31. $(call Device/UbiFit)
  32. DEVICE_VENDOR := Edgecore
  33. DEVICE_MODEL := EAP102
  34. BLOCKSIZE := 128k
  35. PAGESIZE := 2048
  36. DEVICE_DTS_CONFIG := config@ac02
  37. SOC := ipq8071
  38. DEVICE_PACKAGES := ipq-wifi-edgecore_eap102
  39. IMAGE/factory.ubi := append-ubi | qsdk-ipq-factory-nand
  40. endef
  41. TARGET_DEVICES += edgecore_eap102
  42. define Device/edimax_cax1800
  43. $(call Device/FitImage)
  44. $(call Device/UbiFit)
  45. DEVICE_VENDOR := Edimax
  46. DEVICE_MODEL := CAX1800
  47. BLOCKSIZE := 128k
  48. PAGESIZE := 2048
  49. DEVICE_DTS_CONFIG := config@ac03
  50. SOC := ipq8070
  51. DEVICE_PACKAGES := ipq-wifi-edimax_cax1800
  52. endef
  53. TARGET_DEVICES += edimax_cax1800
  54. define Device/qnap_301w
  55. $(call Device/FitImage)
  56. DEVICE_VENDOR := QNAP
  57. DEVICE_MODEL := 301w
  58. DEVICE_DTS_CONFIG := config@hk01
  59. KERNEL_SIZE := 16384k
  60. BLOCKSIZE := 512k
  61. SOC := ipq8072
  62. IMAGES += factory.bin sysupgrade.bin
  63. IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k
  64. IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-to 64k | sysupgrade-tar rootfs=$$$$@ | append-metadata
  65. DEVICE_PACKAGES := ipq-wifi-qnap_301w e2fsprogs kmod-fs-ext4 losetup
  66. endef
  67. TARGET_DEVICES += qnap_301w
  68. define Device/redmi_ax6
  69. $(call Device/xiaomi_ax3600)
  70. DEVICE_VENDOR := Redmi
  71. DEVICE_MODEL := AX6
  72. DEVICE_PACKAGES := ipq-wifi-redmi_ax6
  73. endef
  74. TARGET_DEVICES += redmi_ax6
  75. define Device/xiaomi_ax3600
  76. $(call Device/FitImage)
  77. $(call Device/UbiFit)
  78. DEVICE_VENDOR := Xiaomi
  79. DEVICE_MODEL := AX3600
  80. BLOCKSIZE := 128k
  81. PAGESIZE := 2048
  82. DEVICE_DTS_CONFIG := config@ac04
  83. SOC := ipq8071
  84. KERNEL_SIZE := 36608k
  85. DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
  86. ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
  87. ARTIFACTS := initramfs-factory.ubi
  88. ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
  89. endif
  90. endef
  91. TARGET_DEVICES += xiaomi_ax3600
  92. define Device/xiaomi_ax9000
  93. $(call Device/FitImage)
  94. $(call Device/UbiFit)
  95. DEVICE_VENDOR := Xiaomi
  96. DEVICE_MODEL := AX9000
  97. BLOCKSIZE := 128k
  98. PAGESIZE := 2048
  99. DEVICE_DTS_CONFIG := config@hk14
  100. SOC := ipq8072
  101. KERNEL_SIZE := 57344k
  102. DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
  103. kmod-ath10k-ct ath10k-firmware-qca9887-ct
  104. ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
  105. ARTIFACTS := initramfs-factory.ubi
  106. ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
  107. endif
  108. endef
  109. TARGET_DEVICES += xiaomi_ax9000