treewide: use only board_name function to get name
authorMathias Kresin <dev@kresin.me>
Sun, 9 Jul 2017 11:00:36 +0000 (13:00 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 15 Jul 2017 21:13:34 +0000 (23:13 +0200)
commite4e984f2a07d2cd96d8e5e90955bc268eb5d4e5a
treea4534355402283a176866ce6b03f774d8cf98769
parente0b9ec8e969e1c37c284cfa2f252e9b0a71157db
treewide: use only board_name function to get name

Do not parse /tmp/sysinfo/board_name, /proc/cpuinfo or the device tree
compatible string directly. Always use the board_name function to get
the board name.

The admswconfig package still reads /proc/cpuinfo directly. The code
looks somehow broken and the whole adm5120 which uses this package
looks unmaintained. Leave it as it is for now.

Signed-off-by: Mathias Kresin <dev@kresin.me>
20 files changed:
target/linux/apm821xx/base-files/lib/preinit/79_move_config
target/linux/apm821xx/base-files/lib/upgrade/merakinand.sh
target/linux/ar71xx/base-files/lib/upgrade/merakinand.sh
target/linux/bcm53xx/base-files/etc/board.d/01_leds
target/linux/bcm53xx/base-files/etc/board.d/02_network
target/linux/brcm47xx/base-files/etc/board.d/01_detect
target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh
target/linux/mediatek/base-files/lib/upgrade/platform.sh
target/linux/octeon/base-files/etc/board.d/01_network
target/linux/octeon/base-files/lib/preinit/79_move_config
target/linux/octeon/base-files/lib/upgrade/platform.sh
target/linux/omap24xx/base-files/etc/hotplug.d/firmware/10-bme-pmm-image
target/linux/omap24xx/base-files/etc/hotplug.d/firmware/20-p54spi-eeprom
target/linux/orion/base-files/etc/hotplug.d/usb/10-usb
target/linux/orion/generic/base-files/etc/uci-defaults/09_hardware
target/linux/orion/generic/base-files/lib/upgrade/platform.sh
target/linux/rb532/base-files/lib/upgrade/platform.sh
target/linux/x86/base-files/etc/board.d/01_leds
target/linux/x86/base-files/etc/board.d/02_network
target/linux/zynq/base-files/etc/board.d/02_network