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/base-files/lib | |
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/base-files/lib')
-rw-r--r-- | target/linux/gemini/base-files/lib/upgrade/platform.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/gemini/base-files/lib/upgrade/platform.sh b/target/linux/gemini/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000000..4fd169d0de --- /dev/null +++ b/target/linux/gemini/base-files/lib/upgrade/platform.sh @@ -0,0 +1,25 @@ +REQUIRE_IMAGE_METADATA=1 + +platform_check_image() { + local board=$(board_name) + + case "$board" in + dlink,dir-685) + return 0 + ;; + esac + + echo "Sysupgrade is not yet supported on $board." + return 1 +} + +platform_do_upgrade() { + local board=$(board_name) + + case "$board" in + dlink,dir-685) + PART_NAME=firmware + default_do_upgrade "$ARGV" + ;; + esac +} |