diff options
author | Mathias Kresin <dev@kresin.me> | 2017-04-07 18:09:08 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-07-15 23:13:34 +0200 |
commit | ac3e05c5d757334944fbf1f14583164cd1d69172 (patch) | |
tree | 3eb292a1b367affc29977ff0f2b59801ab3fdf28 | |
parent | c7f8bcede6be73d0c07e058d57b55e4efc746440 (diff) | |
download | mtk-20170518-ac3e05c5d757334944fbf1f14583164cd1d69172.zip mtk-20170518-ac3e05c5d757334944fbf1f14583164cd1d69172.tar.gz mtk-20170518-ac3e05c5d757334944fbf1f14583164cd1d69172.tar.bz2 |
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>
-rw-r--r-- | package/base-files/files/lib/preinit/02_sysinfo (renamed from package/base-files/files/lib/preinit/10_sysinfo) | 0 | ||||
-rw-r--r-- | target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh (renamed from target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh) | 0 | ||||
-rw-r--r-- | target/linux/apm821xx/base-files/lib/preinit/01_preinit_do_apm821xx.sh (renamed from target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/base-files/lib/preinit/01_preinit_do_ar71xx.sh (renamed from target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh) | 0 | ||||
-rw-r--r-- | target/linux/at91/base-files/lib/preinit/01_preinit_do_at91.sh (renamed from target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh) | 0 | ||||
-rw-r--r-- | target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh (renamed from target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh) | 0 | ||||
-rw-r--r-- | target/linux/brcm63xx/base-files/lib/preinit/01_do_brcm63xx.sh (renamed from target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh) | 0 | ||||
-rw-r--r-- | target/linux/ipq806x/base-files/lib/preinit/01_preinit_do_ipq806x.sh (renamed from target/linux/ipq806x/base-files/lib/preinit/03_preinit_do_ipq806x.sh) | 0 | ||||
-rwxr-xr-x | target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh (renamed from target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh) | 0 | ||||
-rwxr-xr-x | target/linux/mcs814x/base-files/lib/preinit/01_preinit_do_mcs814x.sh (renamed from target/linux/mcs814x/base-files/lib/preinit/03_preinit_do_mcs814x.sh) | 0 | ||||
-rw-r--r-- | target/linux/mpc85xx/base-files/lib/preinit/01_preinit_do_mpc85xx.sh (renamed from target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh) | 0 | ||||
-rw-r--r-- | target/linux/mxs/base-files/lib/preinit/01_preinit_do_mxs.sh (renamed from target/linux/mxs/base-files/lib/preinit/03_preinit_do_mxs.sh) | 0 | ||||
-rw-r--r-- | target/linux/octeon/base-files/lib/preinit/01_sysinfo (renamed from target/linux/octeon/base-files/lib/preinit/20_sysinfo) | 0 | ||||
-rw-r--r-- | target/linux/oxnas/base-files/lib/preinit/01_preinit_do_oxnas.sh (renamed from target/linux/oxnas/base-files/lib/preinit/03_preinit_do_oxnas.sh) | 0 | ||||
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh (renamed from target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh) | 0 | ||||
-rw-r--r-- | target/linux/rb532/base-files/lib/preinit/01_sysinfo (renamed from target/linux/rb532/base-files/lib/preinit/10_sysinfo) | 0 | ||||
-rw-r--r-- | target/linux/x86/base-files/lib/preinit/01_sysinfo (renamed from target/linux/x86/base-files/lib/preinit/20_sysinfo) | 0 |
17 files changed, 0 insertions, 0 deletions
diff --git a/package/base-files/files/lib/preinit/10_sysinfo b/package/base-files/files/lib/preinit/02_sysinfo index 65b5096..65b5096 100644 --- a/package/base-files/files/lib/preinit/10_sysinfo +++ b/package/base-files/files/lib/preinit/02_sysinfo diff --git a/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh b/target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh index 4fca1e7..4fca1e7 100644 --- a/target/linux/adm5120/base-files/lib/preinit/05_preinit_do_adm5120.sh +++ b/target/linux/adm5120/base-files/lib/preinit/01_preinit_do_adm5120.sh diff --git a/target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh b/target/linux/apm821xx/base-files/lib/preinit/01_preinit_do_apm821xx.sh index 5675357..5675357 100644 --- a/target/linux/apm821xx/base-files/lib/preinit/03_preinit_do_apm821xx.sh +++ b/target/linux/apm821xx/base-files/lib/preinit/01_preinit_do_apm821xx.sh diff --git a/target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh b/target/linux/ar71xx/base-files/lib/preinit/01_preinit_do_ar71xx.sh index ff5407a..ff5407a 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/03_preinit_do_ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/preinit/01_preinit_do_ar71xx.sh diff --git a/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh b/target/linux/at91/base-files/lib/preinit/01_preinit_do_at91.sh index 5c98101..5c98101 100644 --- a/target/linux/at91/base-files/lib/preinit/03_preinit_do_at91.sh +++ b/target/linux/at91/base-files/lib/preinit/01_preinit_do_at91.sh diff --git a/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh b/target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh index 2943648..2943648 100644 --- a/target/linux/brcm2708/base-files/lib/preinit/03_preinit_do_brcm2708.sh +++ b/target/linux/brcm2708/base-files/lib/preinit/01_preinit_do_brcm2708.sh diff --git a/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/preinit/01_do_brcm63xx.sh index 4179695..4179695 100644 --- a/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/preinit/01_do_brcm63xx.sh diff --git a/target/linux/ipq806x/base-files/lib/preinit/03_preinit_do_ipq806x.sh b/target/linux/ipq806x/base-files/lib/preinit/01_preinit_do_ipq806x.sh index 785f1eb..785f1eb 100644 --- a/target/linux/ipq806x/base-files/lib/preinit/03_preinit_do_ipq806x.sh +++ b/target/linux/ipq806x/base-files/lib/preinit/01_preinit_do_ipq806x.sh diff --git a/target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh index aef9460..aef9460 100755 --- a/target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh +++ b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh diff --git a/target/linux/mcs814x/base-files/lib/preinit/03_preinit_do_mcs814x.sh b/target/linux/mcs814x/base-files/lib/preinit/01_preinit_do_mcs814x.sh index d509770..d509770 100755 --- a/target/linux/mcs814x/base-files/lib/preinit/03_preinit_do_mcs814x.sh +++ b/target/linux/mcs814x/base-files/lib/preinit/01_preinit_do_mcs814x.sh diff --git a/target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh b/target/linux/mpc85xx/base-files/lib/preinit/01_preinit_do_mpc85xx.sh index 88ba608..88ba608 100644 --- a/target/linux/mpc85xx/base-files/lib/preinit/03_preinit_do_mpc85xx.sh +++ b/target/linux/mpc85xx/base-files/lib/preinit/01_preinit_do_mpc85xx.sh diff --git a/target/linux/mxs/base-files/lib/preinit/03_preinit_do_mxs.sh b/target/linux/mxs/base-files/lib/preinit/01_preinit_do_mxs.sh index 692078d..692078d 100644 --- a/target/linux/mxs/base-files/lib/preinit/03_preinit_do_mxs.sh +++ b/target/linux/mxs/base-files/lib/preinit/01_preinit_do_mxs.sh diff --git a/target/linux/octeon/base-files/lib/preinit/20_sysinfo b/target/linux/octeon/base-files/lib/preinit/01_sysinfo index d8f467e..d8f467e 100644 --- a/target/linux/octeon/base-files/lib/preinit/20_sysinfo +++ b/target/linux/octeon/base-files/lib/preinit/01_sysinfo diff --git a/target/linux/oxnas/base-files/lib/preinit/03_preinit_do_oxnas.sh b/target/linux/oxnas/base-files/lib/preinit/01_preinit_do_oxnas.sh index ca7bce1..ca7bce1 100644 --- a/target/linux/oxnas/base-files/lib/preinit/03_preinit_do_oxnas.sh +++ b/target/linux/oxnas/base-files/lib/preinit/01_preinit_do_oxnas.sh diff --git a/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh b/target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh index 31ef5f8..31ef5f8 100644 --- a/target/linux/ramips/base-files/lib/preinit/03_preinit_do_ramips.sh +++ b/target/linux/ramips/base-files/lib/preinit/01_preinit_do_ramips.sh diff --git a/target/linux/rb532/base-files/lib/preinit/10_sysinfo b/target/linux/rb532/base-files/lib/preinit/01_sysinfo index 4c932fd..4c932fd 100644 --- a/target/linux/rb532/base-files/lib/preinit/10_sysinfo +++ b/target/linux/rb532/base-files/lib/preinit/01_sysinfo diff --git a/target/linux/x86/base-files/lib/preinit/20_sysinfo b/target/linux/x86/base-files/lib/preinit/01_sysinfo index cb63a04..cb63a04 100644 --- a/target/linux/x86/base-files/lib/preinit/20_sysinfo +++ b/target/linux/x86/base-files/lib/preinit/01_sysinfo |