Makefile 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2009-2013 OpenWrt.org
  4. include $(TOPDIR)/rules.mk
  5. include $(INCLUDE_DIR)/image.mk
  6. KERNEL_LOADADDR:=0x8000
  7. define Device/dsa-migration
  8. DEVICE_COMPAT_VERSION := 1.1
  9. DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
  10. endef
  11. define Device/Default
  12. PROFILES := Default
  13. DEVICE_DTS = kirkwood-$(lastword $(subst _, ,$(1)))
  14. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  15. KERNEL := kernel-bin | append-dtb | uImage none
  16. KERNEL_NAME := zImage
  17. KERNEL_SUFFIX := -uImage
  18. KERNEL_IN_UBI := 1
  19. PAGESIZE := 2048
  20. SUBPAGESIZE := 512
  21. BLOCKSIZE := 128k
  22. IMAGES := sysupgrade.bin factory.bin
  23. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  24. IMAGE/factory.bin := append-ubi
  25. endef
  26. define Device/checkpoint_l-50
  27. DEVICE_VENDOR := Check Point
  28. DEVICE_MODEL := L-50
  29. DEVICE_PACKAGES := kmod-ath9k kmod-gpio-button-hotplug kmod-mvsdio \
  30. kmod-rtc-s35390a kmod-usb-ledtrig-usbport wpad-basic-wolfssl
  31. IMAGES := sysupgrade.bin
  32. endef
  33. TARGET_DEVICES += checkpoint_l-50
  34. define Device/cisco_on100
  35. DEVICE_VENDOR := Cisco Systems
  36. DEVICE_MODEL := ON100
  37. KERNEL_SIZE := 5376k
  38. KERNEL_IN_UBI :=
  39. UBINIZE_OPTS := -E 5
  40. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  41. DEVICE_PACKAGES := kmod-mvsdio
  42. SUPPORTED_DEVICES += on100
  43. endef
  44. TARGET_DEVICES += cisco_on100
  45. define Device/cloudengines_pogoe02
  46. DEVICE_VENDOR := Cloud Engines
  47. DEVICE_MODEL := Pogoplug E02
  48. DEVICE_DTS := kirkwood-pogo_e02
  49. SUPPORTED_DEVICES += pogo_e02
  50. endef
  51. TARGET_DEVICES += cloudengines_pogoe02
  52. define Device/cloudengines_pogoplugv4
  53. DEVICE_VENDOR := Cloud Engines
  54. DEVICE_MODEL := Pogoplug V4
  55. DEVICE_DTS := kirkwood-pogoplug-series-4
  56. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-mvsdio kmod-usb3 \
  57. kmod-gpio-button-hotplug
  58. endef
  59. TARGET_DEVICES += cloudengines_pogoplugv4
  60. define Device/iom_iconnect-1.1
  61. DEVICE_VENDOR := Iomega
  62. DEVICE_MODEL := Iconnect
  63. DEVICE_DTS := kirkwood-iconnect
  64. SUPPORTED_DEVICES += iconnect
  65. endef
  66. TARGET_DEVICES += iom_iconnect-1.1
  67. define Device/iom_ix2-200
  68. DEVICE_VENDOR := Iomega
  69. DEVICE_MODEL := StorCenter ix2-200
  70. DEVICE_DTS := kirkwood-iomega_ix2_200
  71. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
  72. kmod-gpio-button-hotplug kmod-hwmon-lm63
  73. PAGESIZE := 512
  74. SUBPAGESIZE := 256
  75. BLOCKSIZE := 16k
  76. KERNEL_SIZE := 3072k
  77. KERNEL_IN_UBI :=
  78. UBINIZE_OPTS := -E 5
  79. IMAGE_SIZE := 31744k
  80. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
  81. check-size
  82. endef
  83. TARGET_DEVICES += iom_ix2-200
  84. define Device/linksys
  85. DEVICE_VENDOR := Linksys
  86. DEVICE_PACKAGES := kmod-mwl8k wpad-basic-wolfssl kmod-gpio-button-hotplug
  87. KERNEL_IN_UBI :=
  88. UBINIZE_OPTS := -E 5
  89. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  90. endef
  91. define Device/linksys_e4200-v2
  92. $(Device/linksys)
  93. $(Device/dsa-migration)
  94. DEVICE_MODEL := E4200
  95. DEVICE_VARIANT := v2
  96. KERNEL_SIZE := 2688k
  97. SUPPORTED_DEVICES += linksys,viper linksys-viper
  98. endef
  99. TARGET_DEVICES += linksys_e4200-v2
  100. define Device/linksys_ea3500
  101. $(Device/linksys)
  102. $(Device/dsa-migration)
  103. DEVICE_MODEL := EA3500
  104. PAGESIZE := 512
  105. SUBPAGESIZE := 256
  106. BLOCKSIZE := 16k
  107. KERNEL_SIZE := 2624k
  108. SUPPORTED_DEVICES += linksys,audi linksys-audi
  109. endef
  110. TARGET_DEVICES += linksys_ea3500
  111. define Device/linksys_ea4500
  112. $(Device/linksys)
  113. $(Device/dsa-migration)
  114. DEVICE_MODEL := EA4500
  115. KERNEL_SIZE := 2688k
  116. SUPPORTED_DEVICES += linksys,viper linksys-viper
  117. endef
  118. TARGET_DEVICES += linksys_ea4500
  119. define Device/raidsonic_ib-nas62x0
  120. DEVICE_VENDOR := RaidSonic
  121. DEVICE_MODEL := ICY BOX IB-NAS62x0
  122. DEVICE_DTS := kirkwood-ib62x0
  123. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
  124. SUPPORTED_DEVICES += ib62x0
  125. endef
  126. TARGET_DEVICES += raidsonic_ib-nas62x0
  127. define Device/seagate_blackarmor-nas220
  128. DEVICE_VENDOR := Seagate
  129. DEVICE_MODEL := Blackarmor NAS220
  130. DEVICE_PACKAGES := kmod-hwmon-adt7475 kmod-fs-ext4 kmod-ata-marvell-sata \
  131. mdadm kmod-gpio-button-hotplug
  132. PAGESIZE := 512
  133. SUBPAGESIZE := 256
  134. BLOCKSIZE := 16k
  135. UBINIZE_OPTS := -e 1
  136. endef
  137. TARGET_DEVICES += seagate_blackarmor-nas220
  138. define Device/seagate_dockstar
  139. DEVICE_VENDOR := Seagate
  140. DEVICE_MODEL := FreeAgent Dockstar
  141. SUPPORTED_DEVICES += dockstar
  142. endef
  143. TARGET_DEVICES += seagate_dockstar
  144. define Device/seagate_goflexnet
  145. DEVICE_VENDOR := Seagate
  146. DEVICE_MODEL := GoFlexNet
  147. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
  148. SUPPORTED_DEVICES += goflexnet
  149. endef
  150. TARGET_DEVICES += seagate_goflexnet
  151. define Device/seagate_goflexhome
  152. DEVICE_VENDOR := Seagate
  153. DEVICE_MODEL := GoFlexHome
  154. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4
  155. SUPPORTED_DEVICES += goflexhome
  156. endef
  157. TARGET_DEVICES += seagate_goflexhome
  158. define Device/zyxel_nsa310b
  159. DEVICE_VENDOR := ZyXEL
  160. DEVICE_MODEL := NSA310b
  161. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-r8169 kmod-fs-ext4 \
  162. kmod-gpio-button-hotplug kmod-hwmon-lm85
  163. SUPPORTED_DEVICES += nsa310b
  164. endef
  165. TARGET_DEVICES += zyxel_nsa310b
  166. define Device/zyxel_nsa310s
  167. DEVICE_VENDOR := ZyXEL
  168. DEVICE_MODEL := NSA310S
  169. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 kmod-gpio-button-hotplug
  170. endef
  171. TARGET_DEVICES += zyxel_nsa310s
  172. define Device/zyxel_nsa325
  173. DEVICE_VENDOR := ZyXEL
  174. DEVICE_MODEL := NSA325
  175. DEVICE_VARIANT := v1/v2
  176. DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
  177. kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
  178. SUPPORTED_DEVICES += nsa325
  179. endef
  180. TARGET_DEVICES += zyxel_nsa325
  181. $(eval $(call BuildImage))