1 UBIFS_OPTS = -m 2048 -e 126KiB -c 4096
2 DEVICE_VARS += DTS UBIFS_OPTS
3 KERNEL_LOADADDR := 0x60008000
7 KERNEL_SUFFIX := -uImage
12 FILESYSTEMS := squashfs ubifs
13 PROFILES = Default $$(DTS)
14 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
15 DEVICE_DTS := ox820-$(subst _,-,$(1))
16 KERNEL := kernel-bin | append-dtb | uImage none
17 IMAGES := ubinized.bin sysupgrade.tar
18 IMAGE/ubinized.bin := append-ubi
19 IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
22 define Build/omninas-factory
23 rm -rf $@.tmp $@.dummy $@.dummy.gz
25 $(CP) $@ $@.tmp/uImage
26 dd if=/dev/zero bs=64k count=4 of=$@.dummy
28 mkimage -A arm -T ramdisk -C gzip -n "dummy" \
31 echo 2.35.20140102 > $@.tmp/version ; echo >> $@.tmp/version
33 $(TAR) -C $@.tmp -czvf $@ \
34 $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") .
37 define Build/encrypt-3des
38 openssl enc -des3 -a -k $(1) -in $@ -out $@.new && mv $@.new $@
41 define Device/akitio_mycloud
42 DEVICE_TITLE := Akition myCloud (mini) / SilverStone DC01
43 SUPPORTED_DEVICES += akitio
44 DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ata-oxnas-sata kmod-usb-ledtrig-usbport \
45 kmod-i2c-gpio kmod-rtc-ds1307
47 TARGET_DEVICES += akitio_mycloud
49 define Device/cloudengines_pogoplugpro
50 DEVICE_TITLE := Cloud Engines PogoPlug Pro (with mPCIe)
51 SUPPORTED_DEVICES += pogoplug-pro
52 DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport kmod-rt2800-pci wpad-basic
54 TARGET_DEVICES += cloudengines_pogoplugpro
56 define Device/cloudengines_pogoplug-series-3
57 DEVICE_TITLE := Cloud Engines PogoPlug Series V3 (without mPCIe)
58 SUPPORTED_DEVICES += cloudengines,pogoplugv3 pogoplug-v3
59 DEVICE_PACKAGES := kmod-usb2-oxnas kmod-usb-ledtrig-usbport
61 TARGET_DEVICES += cloudengines_pogoplug-series-3
63 define Device/shuttle_kd20
64 DEVICE_TITLE := Shuttle KD20
65 SUPPORTED_DEVICES += kd20
66 KERNEL := kernel-bin | append-dtb | uImage none
67 KERNEL_INITRAMFS_PREFIX = $$(IMAGE_PREFIX)-factory
68 KERNEL_INITRAMFS_SUFFIX := .tar.gz
69 KERNEL_INITRAMFS = kernel-bin | append-dtb | uImage none | omninas-factory | encrypt-3des sohmuntitnlaes
70 DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ata-oxnas-sata kmod-usb-ledtrig-usbport \
71 kmod-usb3 kmod-i2c-gpio kmod-rtc-pcf8563 kmod-gpio-beeper \
72 kmod-hwmon-core kmod-hwmon-gpiofan \
73 kmod-md-mod kmod-md-raid0 kmod-md-raid1 kmod-fs-ext4 kmod-fs-xfs
75 TARGET_DEVICES += shuttle_kd20
77 define Device/mitrastar_stg-212
78 DEVICE_TITLE := MitraStar STG-212
79 SUPPORTED_DEVICES += stg212
80 KERNEL := kernel-bin | append-dtb | uImage none
81 DEVICE_PACKAGES := kmod-usb2-oxnas kmod-ata-oxnas-sata kmod-fs-ext4 kmod-fs-xfs \
82 kmod-usb-ledtrig-usbport
84 TARGET_DEVICES += mitrastar_stg-212