bmips: add subtargets for each SoC
[openwrt/staging/jow.git] / target / linux / bmips / bcm63268 / base-files / lib / upgrade / platform.sh
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 . /lib/upgrade/cfe-jffs2-nand.sh
4
5 PART_NAME=firmware
6 REQUIRE_IMAGE_METADATA=1
7
8 platform_check_image() {
9 return 0
10 }
11
12 platform_do_upgrade() {
13 case "$(board_name)" in
14 comtrend,vr-3032u)
15 cfe_jffs2_nand_upgrade "$1"
16 ;;
17 sercomm,h500-s-lowi |\
18 sercomm,h500-s-vfes |\
19 sercomm,shg2500)
20 nand_do_upgrade "$1"
21 ;;
22 *)
23 default_do_upgrade "$1"
24 ;;
25 esac
26 }