2 # Copyright (C) 2013-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/image.mk
11 Default_UBIFS_OPTS
= -m
2048 -e
126KiB
-c
4096
12 STG212_UBIFS_OPTS
= -m
2048 -e
126KiB
-c
4096
13 KD20_UBIFS_OPTS
= -m
2048 -e
126KiB
-c
4096
14 POGOPLUG_PRO_UBIFS_OPTS
= -m
2048 -e
126KiB
-c
4096
15 POGOPLUG_V3_UBIFS_OPTS
= -m
2048 -e
126KiB
-c
4096
17 DEVICE_VARS
+= DTS KERNEL_SIZE PAGESIZE BLOCKSIZE SUBPAGESIZE
18 DEVICE_VARS
+= KERNEL_IN_UBI UBOOTENV_IN_UBI UBIFS_OPTS
20 KERNEL_LOADADDR
:= 0x60008000
22 define Build
/ubootable
23 (dd if
="$(KDIR)/u-boot.bin" bs
=128k conv
=sync
; \
24 dd if
="$@" bs
=128k conv
=sync
) >> $@.new
29 KERNEL_DEPENDS
= $$(wildcard $$(DTS_DIR
)/ox820-
$$(DTS
).dts
)
30 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/ox820-
$$(DTS
).dtb
32 KERNEL_INITRAMFS
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/ox820-
$$(DTS
).dtb | ubootable
33 KERNEL_INITRAMFS_PREFIX
= $$(IMAGE_PREFIX
)-u-boot-initramfs
37 FILESYSTEMS
:= squashfs ubifs
38 PROFILES
= Default
$$(DTS
)
39 IMAGES
:= ubinized.bin sysupgrade.
tar
40 IMAGE
/ubinized.bin
:= append-ubi
41 IMAGE
/sysupgrade.
tar := sysupgrade-nand
48 DEVICE_TITLE
:= Akitio MyCloud mini
/ Silverstone DC01
49 DEVICE_PACKAGES
:= kmod-i2c-gpio kmod-rtc-ds1307
51 TARGET_DEVICES
+= akitio
55 DEVICE_TITLE
:= Shuttle KD20
56 DEVICE_PACKAGES
:= kmod-usb3 kmod-i2c-gpio kmod-rtc-pcf8563 kmod-gpio-beeper \
57 kmod-hwmon-core kmod-hwmon-gpiofan
59 TARGET_DEVICES
+= kd20
61 define Device
/pogoplug-pro
63 DEVICE_TITLE
:= Cloud Engines Pogoplug Pro
(with mPCIe
)
65 TARGET_DEVICES
+= pogoplug-pro
67 define Device
/pogoplug-v3
69 DEVICE_TITLE
:= Cloud Engines Pogoplug V3
(no mPCIe
)
71 TARGET_DEVICES
+= pogoplug-v3
75 DEVICE_TITLE
:= MitraStar STG-212
77 TARGET_DEVICES
+= stg212
79 VMLINUX
:=$(BIN_DIR
)/$(IMG_PREFIX
)-vmlinux
80 UIMAGE
:=$(BIN_DIR
)/$(IMG_PREFIX
)-uImage
82 $(eval
$(call BuildImage
))