mediatek: replace multiple fw_setenv calls by the bulk one
authorMikhail Zhilkin <csharper2005@gmail.com>
Sat, 11 Jan 2025 14:46:05 +0000 (14:46 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 20 Jan 2025 23:39:33 +0000 (00:39 +0100)
commitf5fd378e849e20823ce663351977f6f6d0a7dbac
tree15a8d28586251c7e77a6ea6e950bb42ae2d57782
parent4081bc3f6cb61df7b9608d6bdc0a103ab0c06d35
mediatek: replace multiple fw_setenv calls by the bulk one

This commit replaces multiple fw_setenv calls by the bulk one to reduce
flash writes.

Thanks @Linaro1985 for the idea.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17580
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit a6b0abf4661e4dc1449494e46340f75c44df81de)
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh