openwrt/target/linux/brcm47xx
Jo-Philipp Wich c8e8ff1c9f brcm47xx: rework model detection
On brcm47xx boards, the model ID is the combination of the "boardtype" nvram
variable and an optional supplemental "boardnum" variable while the human
readable model name is usually exposed in the "machine" field of the
/proc/cpuinfo file.

Move the extraction of the board nvram variables and model name string into
the 01_sysinfo file and rework the 01_detect board configuration script to
solely use the prepared sysinfo values without performing own detection
logic.

As a consequence, we can drop the ucidef_set_board_id() and
ucidef_set_model_name() invocations in favor to the generic behaviour
which copies the /tmp/sysinfo/{board_name,model} values into the board.json
"id" and "name" fields respectively.

Since "01_detect" only contains network configuration logic after this
change, move it to "01_network" and rename the contained "detect_by_xxx"
functions to "configure_by_xxx" instead, to avoid potential confusion.

Fixes FS#1576
Acked-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>

(cherry picked from commit d7d10f2c1e)
2018-07-30 11:11:21 +02:00
..
base-files brcm47xx: rework model detection 2018-07-30 11:11:21 +02:00
generic brcm47xx: drop some personal profiles 2017-01-04 12:24:01 +01:00
image brcm47xx: image: build firmware for Asus WL-500g Deluxe 2017-12-29 23:18:19 +01:00
legacy brcm47xx: drop some personal profiles 2017-01-04 12:24:01 +01:00
mips74k build: remove mips16 feature flag from target makefiles 2017-01-24 13:15:01 +01:00
patches-4.9 kernel: bump 4.9 to 4.9.111 for 18.06 2018-07-12 13:54:24 +02:00
patches-4.14 brcm47xx: revert upstream commit breaking BCM4718A1 2018-07-27 16:00:31 +02:00
config-4.9 brcm47xx: Add support for kernel 4.9 2017-07-02 23:10:06 +02:00
config-4.14 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
Makefile brcm47xx: switch to the kernel 4.14 2018-05-08 09:55:10 +02:00
modules.mk brcm47xx: fix bgmac package 2017-01-04 11:55:39 +01:00