Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. NAND_BLOCKSIZE := 2048-128k
  8. include $(TOPDIR)/rules.mk
  9. include $(INCLUDE_DIR)/image.mk
  10. KERNEL_LOADADDR:=0x8000
  11. TARGET_DEVICES = linksys-audi linksys-viper dockstar goflexnet goflexhome iconnect pogo_e02 ib62x0
  12. UBI_OPTS := -m 2048 -p 128KiB -s 512
  13. UBIFS_OPTS := -m 2048 -e 126KiB -c 4096
  14. define Device/Default
  15. PROFILES := Default
  16. KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
  17. KERNEL := kernel-bin | append-dtb | uImage none
  18. KERNEL_NAME := zImage
  19. KERNEL_SUFFIX := -uImage
  20. KERNEL_INSTALL := 1
  21. PAGESIZE := 2048
  22. SUBPAGESIZE := 512
  23. BLOCKSIZE := 128k
  24. IMAGES := sysupgrade.tar
  25. IMAGE/sysupgrade.tar := sysupgrade-tar
  26. endef
  27. define Device/dockstar
  28. DEVICE_DTS := kirkwood-dockstar
  29. FILESYSTEMS := squashfs
  30. DEVICE_TITLE := Seagate FreeAgent Dockstar
  31. IMAGES += factory.bin
  32. IMAGE/factory.bin := append-ubi
  33. KERNEL_IN_UBI := 1
  34. endef
  35. define Device/goflexnet
  36. $(Device/dockstar)
  37. DEVICE_TITLE := Seagate GoFlexNet
  38. DEVICE_DTS := kirkwood-goflexnet
  39. endef
  40. define Device/goflexhome
  41. $(Device/dockstar)
  42. DEVICE_TITLE := Seagate GoFlexHome
  43. DEVICE_DTS := kirkwood-goflexhome
  44. endef
  45. define Device/linksys-audi
  46. DEVICE_TITLE := Linksys EA3500 (Audi)
  47. DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
  48. DEVICE_DTS := kirkwood-linksys-audi
  49. KERNEL_SIZE := 2624k
  50. FILESYSTEMS := squashfs
  51. IMAGES += factory.bin
  52. UBINIZE_OPTS := -E 5
  53. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  54. endef
  55. define Device/linksys-viper
  56. DEVICE_TITLE := Linksys E4200v2 / EA4500 (Viper)
  57. DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-mini
  58. DEVICE_DTS := kirkwood-linksys-viper
  59. KERNEL_SIZE := 2688k
  60. FILESYSTEMS := squashfs
  61. IMAGES += factory.bin
  62. UBINIZE_OPTS := -E 5
  63. IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  64. endef
  65. define Device/iconnect
  66. $(Device/dockstar)
  67. DEVICE_TITLE := Iomega Iconnect
  68. DEVICE_DTS := kirkwood-iconnect
  69. endef
  70. define Device/pogo_e02
  71. $(Device/dockstar)
  72. DEVICE_TITLE := Cloud Engines Pogoplug E02
  73. DEVICE_DTS := kirkwood-pogo_e02
  74. endef
  75. define Device/ib62x0
  76. $(Device/dockstar)
  77. DEVICE_TITLE := RaidSonic ICY BOX IB-NAS62x0
  78. DEVICE_DTS := kirkwood-ib62x0
  79. endef
  80. $(eval $(call BuildImage))