brcm63xx: use compatible instead of manually setting board name
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 30 Dec 2019 20:58:34 +0000 (21:58 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 8 Feb 2020 17:40:47 +0000 (18:40 +0100)
commit0a3350d908ec466206f58b9e6b300c49e4fb3b13
treee38687d0bbc3833ed84fb78228e7704ae6642f81
parent78b422ad79a6798d9557f0dd6113b2d6f07ae451
brcm63xx: use compatible instead of manually setting board name

This patch removes the translation of device model name into a
board name in lib/brcm63xx.sh. The latter has been actually totally
useless as we have the compatible which can be used instead of
the board name (and actually is at other targets like ath79 or ramips).

The change requires updating the base-files with the new
identifiers based on compatible.

With all "board names" replaced by the compatible, we do not need
the old scripts to detect board name anymore and can also remove
the obsolete treatment of "legacy" devices without DTS, as there
are none of those left. So, this patch removes the target-specific
board detection and uses the standard procedure in
package/base-files/files/lib/preinit/02_sysinfo

This also fixes several cases where the board name was not set or
evaluated correctly:
- asmax,ar1004g in 02_network
- telsey,magic in 09_fix_crc/02_network
- brcm,bcm96338gw in 02_network
- brcm,bcm96338w in 02_network
- brcm,bcm96348gw in 02_network
- dynalink,rta1025w in 02_network
- huawei,echolife-hg520v in 02_network
- several cases in diag.sh

The following orphaned identifiers are removed from board.d files:
- dmv-s0

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/brcm63xx/base-files/etc/board.d/01_leds
target/linux/brcm63xx/base-files/etc/board.d/02_network
target/linux/brcm63xx/base-files/etc/diag.sh
target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
target/linux/brcm63xx/base-files/etc/uci-defaults/09_fix_crc
target/linux/brcm63xx/base-files/lib/brcm63xx.sh [deleted file]
target/linux/brcm63xx/base-files/lib/preinit/01_do_brcm63xx.sh [deleted file]