imx6: add sysupgrade support
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 19 Jun 2014 14:13:38 +0000 (14:13 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 19 Jun 2014 14:13:38 +0000 (14:13 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41277 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/imx6/base-files/lib/upgrade/platform.sh [new file with mode: 0755]

diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh
new file mode 100755 (executable)
index 0000000..7f8733a
--- /dev/null
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+. /lib/functions/imx6.sh
+
+platform_check_image() {
+       local board=$(imx6_board_name)
+
+       case "$board" in
+       gw54xx)
+               nand_do_platform_check $board $1
+               return $?;
+               ;;
+       esac
+
+       echo "Sysupgrade is not yet supported on $board."
+       return 1
+}