ath79: get rid of BOARD_NAME for Mikrotik RouterBOARD
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 26 Feb 2020 14:53:30 +0000 (15:53 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 17 Mar 2020 11:05:45 +0000 (12:05 +0100)
commit3d8be08939a6492c223887582948a106d343c5ba
tree844f11fda13f6deb492f0978fbfbd7ef2b282310
parent281785d74fcc70153c0741be36ee1f9d05e74f6f
ath79: get rid of BOARD_NAME for Mikrotik RouterBOARD

So far, specifying "BOARD_NAME := routerboard" is required by the
upgrade code of Mikrotik NAND devices, as "sysupgrade-routerboard"
is hardcoded in platform_do_upgrade_mikrotik_nand().

This patch replaces the latter with a grep for the name like it
is already done in nand_upgrade_tar() in /lib/upgrade/nand.sh.

By that, BOARD_NAME is obsolete now for this device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/image/mikrotik.mk
target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh