ox820.mk 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. UBIFS_OPTS := -m 2048 -e 126KiB -c 4096
  2. KERNEL_LOADADDR := 0x60008000
  3. define Device/Default
  4. KERNEL_NAME := zImage
  5. KERNEL_SUFFIX := -uImage
  6. KERNEL_INSTALL := 1
  7. BLOCKSIZE := 128k
  8. PAGESIZE := 2048
  9. SUBPAGESIZE := 512
  10. FILESYSTEMS := squashfs ubifs
  11. PROFILES := Default
  12. DEVICE_DTS := ox820-$(subst _,-,$(1))
  13. KERNEL := kernel-bin | append-dtb | uImage none
  14. IMAGES := ubinized.bin sysupgrade.tar
  15. IMAGE/ubinized.bin := append-ubi
  16. IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
  17. endef
  18. define Build/omninas-factory
  19. rm -rf [email protected] [email protected] [email protected]
  20. mkdir -p [email protected]
  21. $(CP) $@ [email protected]/uImage
  22. dd if=/dev/zero bs=64k count=4 [email protected]
  23. gzip [email protected]
  24. mkimage -A arm -T ramdisk -C gzip -n "dummy" \
  25. -d [email protected] \
  26. [email protected]/rdimg.gz
  27. echo 2.35.20140102 > [email protected]/version ; echo >> [email protected]/version
  28. chmod 0744 [email protected]/*
  29. $(TAR) -C [email protected] -czvf $@ \
  30. $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") .
  31. endef
  32. define Build/encrypt-3des
  33. openssl enc -des3 -a -k $(1) -in $@ -out [email protected] && mv [email protected] $@
  34. endef
  35. define Device/akitio_mycloud
  36. DEVICE_VENDOR := Akitio
  37. DEVICE_MODEL := MyCloud Mini
  38. SUPPORTED_DEVICES += akitio
  39. DEVICE_PACKAGES := kmod-ata-oxnas-sata kmod-i2c-gpio kmod-rtc-ds1307 \
  40. kmod-usb2-oxnas kmod-usb-ledtrig-usbport
  41. endef
  42. TARGET_DEVICES += akitio_mycloud
  43. define Device/cloudengines_pogoplugpro
  44. DEVICE_VENDOR := Cloud Engines
  45. DEVICE_MODEL := PogoPlug Pro (with mPCIe)
  46. SUPPORTED_DEVICES += pogoplug-pro
  47. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport \
  48. kmod-ata-oxnas-sata kmod-rt2800-pci wpad-basic-mbedtls
  49. endef
  50. TARGET_DEVICES += cloudengines_pogoplugpro
  51. define Device/cloudengines_pogoplug-series-3
  52. DEVICE_VENDOR := Cloud Engines
  53. DEVICE_MODEL := PogoPlug Series V3 (without mPCIe)
  54. SUPPORTED_DEVICES += cloudengines,pogoplugv3 pogoplug-v3
  55. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport \
  56. kmod-ata-oxnas-sata
  57. endef
  58. TARGET_DEVICES += cloudengines_pogoplug-series-3
  59. define Device/shuttle_kd20
  60. DEVICE_VENDOR := Shuttle
  61. DEVICE_MODEL := KD20
  62. SUPPORTED_DEVICES += kd20
  63. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb3 kmod-usb-ledtrig-usbport \
  64. kmod-i2c-gpio kmod-rtc-pcf8563 kmod-gpio-beeper kmod-hwmon-drivetemp \
  65. kmod-hwmon-gpiofan kmod-ata-oxnas-sata kmod-md-mod kmod-md-raid0 \
  66. kmod-md-raid1 kmod-fs-ext4 kmod-fs-xfs
  67. endef
  68. TARGET_DEVICES += shuttle_kd20
  69. define Device/mitrastar_stg-212
  70. DEVICE_VENDOR := MitraStar
  71. DEVICE_MODEL := STG-212
  72. SUPPORTED_DEVICES += stg212
  73. DEVICE_PACKAGES := kmod-ata-oxnas-sata kmod-fs-ext4 kmod-fs-xfs \
  74. kmod-usb2-oxnas kmod-usb-ledtrig-usbport
  75. endef
  76. TARGET_DEVICES += mitrastar_stg-212