Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. #
  2. # Copyright (C) 2009-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/image.mk
  9. KERNEL_LOADADDR:=0x8000
  10. define Device/Default
  11. PROFILES := Default
  12. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  13. KERNEL := kernel-bin | append-dtb | uImage none
  14. KERNEL_NAME := zImage
  15. KERNEL_SUFFIX := -uImage
  16. KERNEL_IN_UBI := 1
  17. PAGESIZE := 2048
  18. SUBPAGESIZE := 512
  19. BLOCKSIZE := 128k
  20. IMAGES := sysupgrade.bin factory.bin
  21. IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
  22. IMAGE/factory.bin := append-ubi
  23. SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
  24. endef
  25. define Device/cisco_on100
  26. DEVICE_TITLE := Cisco Systems ON100
  27. DEVICE_DTS := kirkwood-on100
  28. DEVICE_PACKAGES := kmod-i2c-mv64xxx
  29. KERNEL_SIZE := 5376k
  30. KERNEL_IN_UBI := 0
  31. UBINIZE_OPTS := -E 5
  32. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  33. BOARD_NAME := on100
  34. endef
  35. TARGET_DEVICES += cisco_on100
  36. define Device/cloudengines_pogoe02
  37. DEVICE_TITLE := Cloud Engines Pogoplug E02
  38. DEVICE_DTS := kirkwood-pogo_e02
  39. BOARD_NAME := pogo_e02
  40. SUPPORTED_DEVICES += pogo_e02
  41. endef
  42. TARGET_DEVICES += cloudengines_pogoe02
  43. define Device/cloudengines_pogoplugv4
  44. DEVICE_TITLE := Cloud Engines Pogoplug V4
  45. DEVICE_DTS := kirkwood-pogoplug-series-4
  46. DEVICE_PACKAGES := kmod-usb3
  47. endef
  48. TARGET_DEVICES += cloudengines_pogoplugv4
  49. define Device/iom_iconnect-1.1
  50. DEVICE_TITLE := Iomega Iconnect
  51. DEVICE_DTS := kirkwood-iconnect
  52. BOARD_NAME := iconnect
  53. SUPPORTED_DEVICES += iconnect
  54. endef
  55. TARGET_DEVICES += iom_iconnect-1.1
  56. define Device/iom_ix2_200
  57. DEVICE_TITLE := Iomega StorCenter ix2-200
  58. DEVICE_DTS := kirkwood-iomega_ix2_200
  59. DEVICE_PACKAGES += kmod-gpio-button-hotplug kmod-i2c-mv64xxx kmod-hwmon-lm63
  60. DEVICE_TYPE:=nas
  61. PAGESIZE := 512
  62. SUBPAGESIZE := 256
  63. BLOCKSIZE := 16KiB
  64. KERNEL_SIZE := 3072k
  65. KERNEL_IN_UBI := 0
  66. UBINIZE_OPTS := -E 5
  67. IMAGE_SIZE := 32505856
  68. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
  69. endef
  70. TARGET_DEVICES += iom_ix2_200
  71. define Device/linksys_audi
  72. DEVICE_TITLE := Linksys EA3500 (Audi)
  73. DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini kmod-gpio-button-hotplug
  74. DEVICE_DTS := kirkwood-linksys-audi
  75. KERNEL_SIZE := 2624k
  76. KERNEL_IN_UBI := 0
  77. UBINIZE_OPTS := -E 5
  78. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  79. BOARD_NAME := linksys-audi
  80. SUPPORTED_DEVICES += linksys-audi
  81. endef
  82. TARGET_DEVICES += linksys_audi
  83. define Device/linksys_viper
  84. DEVICE_TITLE := Linksys E4200v2 / EA4500 (Viper)
  85. DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini kmod-gpio-button-hotplug
  86. DEVICE_DTS := kirkwood-linksys-viper
  87. KERNEL_SIZE := 2688k
  88. KERNEL_IN_UBI := 0
  89. UBINIZE_OPTS := -E 5
  90. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  91. BOARD_NAME := linksys-viper
  92. SUPPORTED_DEVICES += linksys-viper
  93. endef
  94. TARGET_DEVICES += linksys_viper
  95. define Device/raidsonic_ib-nas62x0
  96. DEVICE_TITLE := RaidSonic ICY BOX IB-NAS62x0
  97. DEVICE_DTS := kirkwood-ib62x0
  98. BOARD_NAME := ib62x0
  99. SUPPORTED_DEVICES += ib62x0
  100. endef
  101. TARGET_DEVICES += raidsonic_ib-nas62x0
  102. define Device/seagate_dockstar
  103. DEVICE_DTS := kirkwood-dockstar
  104. DEVICE_TITLE := Seagate FreeAgent Dockstar
  105. BOARD_NAME := dockstar
  106. SUPPORTED_DEVICES += dockstar
  107. endef
  108. TARGET_DEVICES += seagate_dockstar
  109. define Device/seagate_goflexnet
  110. DEVICE_TITLE := Seagate GoFlexNet
  111. DEVICE_DTS := kirkwood-goflexnet
  112. BOARD_NAME := goflexnet
  113. SUPPORTED_DEVICES += goflexnet
  114. endef
  115. TARGET_DEVICES += seagate_goflexnet
  116. define Device/seagate_goflexhome
  117. DEVICE_TITLE := Seagate GoFlexHome
  118. DEVICE_DTS := kirkwood-goflexhome
  119. BOARD_NAME := goflexhome
  120. SUPPORTED_DEVICES += goflexhome
  121. endef
  122. TARGET_DEVICES += seagate_goflexhome
  123. define Device/zyxel_nsa310b
  124. DEVICE_TITLE := ZyXEL NSA310b
  125. DEVICE_DTS := kirkwood-nsa310b
  126. DEVICE_PACKAGES := kmod-r8169 kmod-gpio-button-hotplug kmod-hwmon-lm85
  127. BOARD_NAME := nsa310b
  128. endef
  129. TARGET_DEVICES += zyxel_nsa310b
  130. define Device/zyxel_nsa325
  131. DEVICE_TITLE := ZyXEL NSA325 (v1 and v2)
  132. DEVICE_DTS := kirkwood-nsa325
  133. DEVICE_PACKAGES := kmod-gpio-button-hotplug kmod-rtc-pcf8563 kmod-usb3
  134. BOARD_NAME := nsa325
  135. endef
  136. TARGET_DEVICES += zyxel_nsa325
  137. $(eval $(call BuildImage))