openwrtv3/target/linux
Jo-Philipp Wich d7d10f2c1e 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>
2018-07-30 11:10:47 +02:00
..
adm5120 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
adm8668 kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
apm821xx apm821xx: clean up gpio-hogs 2018-07-30 08:12:32 +02:00
ar7 kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
ar71xx ar71xx:add support for E750G v8 2018-07-30 10:43:36 +02:00
arc770 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
archs38 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
armvirt arm64: enable harden branch predictor 2018-04-27 21:34:18 +02:00
at91 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ath25 ath25: drop 4.9 kernel support 2018-05-22 07:20:13 +02:00
ath79 ath79: Add switch reset definition in dts 2018-07-30 10:43:35 +02:00
au1000 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
bcm53xx bcm53xx: revert SPI controller commit breaking flash reads 2018-07-29 11:02:57 +02:00
brcm47xx brcm47xx: rework model detection 2018-07-30 11:10:47 +02:00
brcm63xx brcm63xx: drop linux,part-probe usage where possible 2018-07-29 15:38:33 +02:00
brcm2708 brcm2708: split sdcard.img.gz into a sysupgrade and factory image 2018-07-30 08:11:36 +02:00
cns3xxx kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
gemini kernel: remove DEVMEM and DEVKMEM from target's config 2018-07-07 18:19:39 +02:00
generic kernel: generic: fix problem with w1-gpio-custom 2018-07-30 10:43:37 +02:00
imx6 kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
ipq40xx ipq40xx: move essedma patches into same range 2018-07-25 12:13:19 +02:00
ipq806x ipq806x: dts: Remove device_type = "ethernet-phy" 2018-07-19 18:58:24 +02:00
ixp4xx kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
kirkwood kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
lantiq lantiq: add support for FritzBox 7312 2018-07-18 19:17:46 +02:00
layerscape layerscape: add Traverse LS1043-S support 2018-07-30 10:53:57 +02:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mcs814x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
mediatek mediatek: fix parallel build issues in image build code 2018-07-17 14:40:04 +02:00
mpc85xx WDR4900v1 remove dt node for absent hw crypto. 2018-07-07 18:19:39 +02:00
mvebu kernel: bump 4.14 to 4.14.51 2018-06-26 08:57:21 +02:00
mxs kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
octeon octeon: Add and set CPU type Octeon+ as default 2018-06-20 15:36:02 +02:00
octeontx kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
omap omap: disable ubifs 2018-07-30 11:03:02 +02:00
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 2018-01-15 13:13:34 +01:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas kernel: remove DEVMEM and DEVKMEM from target's config 2018-07-07 18:19:39 +02:00
pistachio kernel: bump 4.14 to 4.14.42 2018-05-22 20:49:08 +02:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips ramips: fix RBM11G name 2018-07-30 10:43:37 +02:00
rb532 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
sunxi sunxi: Enable SD block devices 2018-07-07 18:19:39 +02:00
uml kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
x86 kernel: bump 4.9 to 4.9.106 2018-06-07 09:04:46 +02:00
xburst kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
zynq zynq: remove config options handled by generic 2018-07-02 07:12:48 +02:00
Makefile