u-boot: boot script: allow to disable Wi-Fi/BT overlays
Check a U-Boot env variable (disable_wifi/disable_bt) for easily
disabling Wi-Fi and/or Bluetooth overlays.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>ç
https://jira.digi.com/browse/DEL-7297
(cherry picked from commit b74a8cee54)
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
parent
306f0c2d43
commit
4685664d07
|
|
@ -24,11 +24,11 @@ if test -n "${module_ram}"; then
|
|||
setexpr module_has_bt ${hwid_2} \& 20000
|
||||
setexpr module_has_bt ${module_has_bt} / 20000
|
||||
|
||||
if test "${module_has_bt}" = "1"; then
|
||||
if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then
|
||||
setenv overlays _ov_som_bt_ccimx8mn.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
if test "${module_has_wifi}" = "1"; then
|
||||
if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
|
||||
setenv overlays _ov_som_wifi_ccimx8mn.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ if test -n "${module_ram}"; then
|
|||
setexpr module_has_bt ${hwid_3} \& 2
|
||||
setexpr module_has_bt ${module_has_bt} / 2
|
||||
|
||||
if test "${module_has_bt}" = "1"; then
|
||||
if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then
|
||||
setenv overlays _ov_som_bt_ccimx8x.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
if test "${module_has_wifi}" = "1"; then
|
||||
if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
|
||||
setenv overlays _ov_som_wifi_ccimx8x.dtbo,${overlays}
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ if test -n "${module_ram}"; then
|
|||
setexpr module_has_bt ${hwid_3} \& 2
|
||||
setexpr module_has_bt ${module_has_bt} / 2
|
||||
|
||||
if test "${module_has_bt}" = "1"; then
|
||||
if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then
|
||||
setenv overlays _ov_som_bt_ccimx8x.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
if test "${module_has_wifi}" = "1"; then
|
||||
if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
|
||||
setenv overlays _ov_som_wifi_ccimx8x.dtbo,${overlays}
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue