aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/qoriq/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/qoriq/base-files/lib/upgrade/platform.sh')
-rwxr-xr-xtarget/linux/qoriq/base-files/lib/upgrade/platform.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/qoriq/base-files/lib/upgrade/platform.sh b/target/linux/qoriq/base-files/lib/upgrade/platform.sh
new file mode 100755
index 0000000000..1392d5eb22
--- /dev/null
+++ b/target/linux/qoriq/base-files/lib/upgrade/platform.sh
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+PART_NAME=firmware
+REQUIRE_IMAGE_METADATA=1
+
+platform_check_image() {
+ case "$(board_name)" in
+ watchguard,firebox-m300)
+ legacy_sdcard_check_image "$1"
+ ;;
+ *)
+ return 0
+ ;;
+ esac
+}
+
+platform_copy_config() {
+ case "$(board_name)" in
+ watchguard,firebox-m300)
+ legacy_sdcard_copy_config "$1"
+ ;;
+ *)
+ return 0
+ esac
+}
+
+platform_do_upgrade() {
+ case "$(board_name)" in
+ watchguard,firebox-m300)
+ legacy_sdcard_do_upgrade "$1"
+ ;;
+ *)
+ default_do_upgrade "$1"
+ ;;
+ esac
+}