0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2025-02-24 08:25:03 +00:00
Álvaro Fernández Rojas 70afa8e6b6 bmips: switch to standard nand_do_upgrade
Now that JFFS2 cleanmarkers are supported on the standard nand_do_upgrade
function we can start using it on bmips.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from 464dfac049daecad145184f8c2dd4a46a7fdd37c)
2023-06-15 11:49:13 +02:00

22 lines
318 B
Bash

# SPDX-License-Identifier: GPL-2.0-or-later
PART_NAME=firmware
REQUIRE_IMAGE_METADATA=1
platform_check_image() {
return 0
}
platform_do_upgrade() {
case "$(board_name)" in
huawei,hg253s-v2 |\
netgear,dgnd3700-v2)
CI_JFFS2_CLEAN_MARKERS=1
nand_do_upgrade "$1"
;;
*)
default_do_upgrade "$1"
;;
esac
}