diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-05-20 22:25:21 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-05-23 10:19:52 +0200 |
commit | 8a83f17b2407d44489e239f2bc2ab0a69286ce5c (patch) | |
tree | 9337bcc5a5672a76d4208a74c65226e68d30dde9 /target/linux/gemini/image | |
parent | 4bb9af48ca36605424c57b6af27dd5e5c827395f (diff) | |
download | upstream-8a83f17b2407d44489e239f2bc2ab0a69286ce5c.tar.gz upstream-8a83f17b2407d44489e239f2bc2ab0a69286ce5c.tar.bz2 upstream-8a83f17b2407d44489e239f2bc2ab0a69286ce5c.zip |
gemini: Support sysupgrade on DIR-685
This makes sysupgrade work on the D-Link DIR-685 after
initial factory install.
We create the platform.sh script to support sysupgrade
on more targets as we move on with sysupgrade support.
Cc: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
[cleanup in platform.sh, removed superfluous SUPPORTED_DEVICES]
Diffstat (limited to 'target/linux/gemini/image')
-rw-r--r-- | target/linux/gemini/image/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index 8fec250f18..ddc2fb9a13 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -115,6 +115,7 @@ define Device/Default KERNEL_NAME := zImage KERNEL := kernel-bin | append-dtb BLOCKSIZE := 128k + SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) endef # A reasonable set of default packages handling the NAS type @@ -143,9 +144,10 @@ define Device/dlink_dir-685 DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) \ kmod-switch-rtl8366rb swconfig \ kmod-rt2800-pci - IMAGES := factory.bin + IMAGES := factory.bin sysupgrade.bin # Pad to 128k erase blocks with 160 bytes WRGG header IMAGE/factory.bin := append-kernel | pad-offset 128k 160 | append-rootfs | dir685-pad-rootfs | dir685-image + IMAGE/sysupgrade.bin := append-kernel | pad-offset 128k 160 | dir685-image | append-rootfs | dir685-pad-rootfs | append-metadata endef TARGET_DEVICES += dlink_dir-685 |