treewide: populate boardname and model earlier
authorMathias Kresin <dev@kresin.me>
Fri, 7 Apr 2017 16:09:08 +0000 (18:09 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 15 Jul 2017 21:13:34 +0000 (23:13 +0200)
commitac3e05c5d757334944fbf1f14583164cd1d69172
tree3eb292a1b367affc29977ff0f2b59801ab3fdf28
parentc7f8bcede6be73d0c07e058d57b55e4efc746440
treewide: populate boardname and model earlier

For targets using the generic board detection and board specific
settings in diag.sh, the board name is still unset at the time the
set_state() provided by diag.sh is called by 10_indicate_preinit.

Change the execution order to ensure the boardname is populated before
required the first time. Do the target specific board detection as
early as possible, directly followed by the generic one to allow a
seamless switch to the generic function for populating /tmp/sysinfo/.

Signed-off-by: Mathias Kresin <dev@kresin.me>
34 files changed:
package/base-files/files/lib/preinit/02_sysinfo [new file with mode: 0644]
package/base-files/files/lib/preinit/10_sysinfo [deleted file]
target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh [new file with mode: 0644]
target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh [deleted file]
target/linux/apm821xx/base-files/lib/preinit/01_preinit_do_apm821xx.sh [new file with mode: 0644]
target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh [deleted file]
target/linux/ar71xx/base-files/lib/preinit/01_preinit_do_ar71xx.sh [new file with mode: 0644]
target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh [deleted file]
target/linux/at91/base-files/lib/preinit/01_preinit_do_at91.sh [new file with mode: 0644]
target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh [deleted file]
target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh [new file with mode: 0644]
target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh [deleted file]
target/linux/brcm63xx/base-files/lib/preinit/01_do_brcm63xx.sh [new file with mode: 0644]
target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh [deleted file]
target/linux/ipq806x/base-files/lib/preinit/01_preinit_do_ipq806x.sh [new file with mode: 0644]
target/linux/ipq806x/base-files/lib/preinit/03_preinit_do_ipq806x.sh [deleted file]
target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh [new file with mode: 0755]
target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh [deleted file]
target/linux/mcs814x/base-files/lib/preinit/01_preinit_do_mcs814x.sh [new file with mode: 0755]
target/linux/mcs814x/base-files/lib/preinit/03_preinit_do_mcs814x.sh [deleted file]
target/linux/mpc85xx/base-files/lib/preinit/01_preinit_do_mpc85xx.sh [new file with mode: 0644]
target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh [deleted file]
target/linux/mxs/base-files/lib/preinit/01_preinit_do_mxs.sh [new file with mode: 0644]
target/linux/mxs/base-files/lib/preinit/03_preinit_do_mxs.sh [deleted file]
target/linux/octeon/base-files/lib/preinit/01_sysinfo [new file with mode: 0644]
target/linux/octeon/base-files/lib/preinit/20_sysinfo [deleted file]
target/linux/oxnas/base-files/lib/preinit/01_preinit_do_oxnas.sh [new file with mode: 0644]
target/linux/oxnas/base-files/lib/preinit/03_preinit_do_oxnas.sh [deleted file]
target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh [new file with mode: 0644]
target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh [deleted file]
target/linux/rb532/base-files/lib/preinit/01_sysinfo [new file with mode: 0644]
target/linux/rb532/base-files/lib/preinit/10_sysinfo [deleted file]
target/linux/x86/base-files/lib/preinit/01_sysinfo [new file with mode: 0644]
target/linux/x86/base-files/lib/preinit/20_sysinfo [deleted file]