ox820.mk 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. UBIFS_OPTS = -m 2048 -e 126KiB -c 4096
  2. DEVICE_VARS += DTS UBIFS_OPTS
  3. KERNEL_LOADADDR := 0x60008000
  4. define Device/Default
  5. KERNEL_NAME := zImage
  6. KERNEL_SUFFIX := -uImage
  7. KERNEL_INSTALL := 1
  8. BLOCKSIZE := 128k
  9. PAGESIZE := 2048
  10. SUBPAGESIZE := 512
  11. FILESYSTEMS := squashfs ubifs
  12. PROFILES = Default $$(DTS)
  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_DTS := ox820-akitio-mycloud
  37. DEVICE_TITLE := Akition myCloud (mini) / SilverStone DC01
  38. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ata-oxnas-sata kmod-ledtrig-usbdev \
  39. kmod-i2c-gpio kmod-rtc-ds1307
  40. endef
  41. TARGET_DEVICES += akitio-mycloud
  42. define Device/cloudengines-pogoplug-pro
  43. DEVICE_DTS := ox820-cloudengines-pogoplug-pro
  44. DEVICE_TITLE := Cloud Engines PogoPlug Pro (with mPCIe)
  45. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ledtrig-usbdev
  46. endef
  47. TARGET_DEVICES += cloudengines-pogoplug-pro
  48. define Device/cloudengines-pogoplug-series-3
  49. DEVICE_DTS := ox820-cloudengines-pogoplug-series-3
  50. DEVICE_TITLE := Cloud Engines PogoPlug Series V3 (without mPCIe)
  51. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ledtrig-usbdev
  52. endef
  53. TARGET_DEVICES += cloudengines-pogoplug-series-3
  54. define Device/shuttle-kd20
  55. DEVICE_DTS := ox820-shuttle-kd20
  56. DEVICE_TITLE := Shuttle KD20
  57. KERNEL := kernel-bin | append-dtb | uImage none
  58. KERNEL_INITRAMFS_PREFIX = $$(IMAGE_PREFIX)-factory
  59. KERNEL_INITRAMFS_SUFFIX := .tar.gz
  60. KERNEL_INITRAMFS = kernel-bin | append-dtb | uImage none | omninas-factory | encrypt-3des sohmuntitnlaes
  61. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ata-oxnas-sata kmod-ledtrig-usbdev \
  62. kmod-usb3 kmod-i2c-gpio kmod-rtc-pcf8563 kmod-gpio-beeper \
  63. kmod-hwmon-core kmod-hwmon-gpiofan \
  64. kmod-md-mod kmod-md-raid0 kmod-md-raid1 kmod-fs-ext4 kmod-fs-xfs
  65. endef
  66. TARGET_DEVICES += shuttle-kd20
  67. define Device/mitrastar-stg212
  68. DEVICE_DTS := ox820-mitrastar-stg212
  69. DEVICE_TITLE := MitraStar STG-212
  70. KERNEL := kernel-bin | append-dtb | uImage none
  71. DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ata-oxnas-sata kmod-ledtrig-usbdev
  72. endef
  73. TARGET_DEVICES += mitrastar-stg212