common.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. define Device/cameo-fw
  3. CAMEO_BOARD_MODEL = $$(DEVICE_MODEL)
  4. KERNEL := \
  5. kernel-bin | \
  6. append-dtb | \
  7. libdeflate-gzip | \
  8. uImage gzip | \
  9. cameo-tag
  10. IMAGES += factory_image1.bin
  11. IMAGE/factory_image1.bin := \
  12. append-kernel | \
  13. pad-to 64k | \
  14. append-rootfs | \
  15. pad-rootfs | \
  16. pad-to 16 | \
  17. check-size | \
  18. cameo-version | \
  19. cameo-headers
  20. endef
  21. define Device/d-link_dgs-1210
  22. $(Device/cameo-fw)
  23. IMAGE_SIZE := 13824k
  24. DEVICE_VENDOR := D-Link
  25. CAMEO_KERNEL_PART_SIZE := 1572864
  26. CAMEO_KERNEL_PART := 2
  27. CAMEO_ROOTFS_PART := 3
  28. CAMEO_CUSTOMER_SIGNATURE := 2
  29. CAMEO_BOARD_VERSION := 32
  30. endef
  31. define Device/hpe_1920
  32. DEVICE_VENDOR := HPE
  33. IMAGE_SIZE := 29632k
  34. BLOCKSIZE := 64k
  35. H3C_PRODUCT_ID := 0x3c010501
  36. KERNEL := \
  37. kernel-bin | \
  38. append-dtb | \
  39. 7z | \
  40. h3c-image | \
  41. h3c-vfs
  42. KERNEL_INITRAMFS := \
  43. kernel-bin | \
  44. append-dtb | \
  45. 7z | \
  46. h3c-image
  47. IMAGE/sysupgrade.bin := \
  48. append-kernel | \
  49. pad-to $$$$(BLOCKSIZE) | \
  50. append-rootfs | \
  51. pad-rootfs | \
  52. check-size | \
  53. append-metadata
  54. endef
  55. define Device/hwmon-fan-migration
  56. DEVICE_COMPAT_VERSION := 1.1
  57. DEVICE_COMPAT_MESSAGE := Fan control switched to hwmon. Your fans will retain \
  58. bootloader speed unless another control scheme is in place. \
  59. Config cannot be kept due to conflict in gpio_switch config 'fan_ctrl' under \
  60. /etc/config/system.
  61. endef
  62. define Device/zyxel_gs1900
  63. DEVICE_COMPAT_VERSION := 2.0
  64. DEVICE_COMPAT_MESSAGE := Dual firmware paritition merged due to size constraints. \
  65. Upgrade requires a new factory install. Regular sysupgrade is not possible.
  66. DEVICE_VENDOR := Zyxel
  67. IMAGE_SIZE := 13952k
  68. UIMAGE_MAGIC := 0x83800000
  69. KERNEL_INITRAMFS := \
  70. kernel-bin | \
  71. append-dtb | \
  72. libdeflate-gzip | \
  73. zyxel-vers | \
  74. uImage gzip | \
  75. check-size 6976k
  76. endef