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
This commit is contained in:
Hector Palacios 2020-10-29 09:56:55 +01:00
parent 51319426f8
commit b74a8cee54
3 changed files with 6 additions and 6 deletions

View File

@ -24,11 +24,11 @@ if test -n "${module_ram}"; then
setexpr module_has_bt ${hwid_2} \& 20000 setexpr module_has_bt ${hwid_2} \& 20000
setexpr module_has_bt ${module_has_bt} / 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} setenv overlays _ov_som_bt_ccimx8mn.dtbo,${overlays}
fi 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} setenv overlays _ov_som_wifi_ccimx8mn.dtbo,${overlays}
fi fi

View File

@ -20,11 +20,11 @@ if test -n "${module_ram}"; then
setexpr module_has_bt ${hwid_3} \& 2 setexpr module_has_bt ${hwid_3} \& 2
setexpr module_has_bt ${module_has_bt} / 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} setenv overlays _ov_som_bt_ccimx8x.dtbo,${overlays}
fi 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} setenv overlays _ov_som_wifi_ccimx8x.dtbo,${overlays}
fi fi
else else

View File

@ -20,11 +20,11 @@ if test -n "${module_ram}"; then
setexpr module_has_bt ${hwid_3} \& 2 setexpr module_has_bt ${hwid_3} \& 2
setexpr module_has_bt ${module_has_bt} / 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} setenv overlays _ov_som_bt_ccimx8x.dtbo,${overlays}
fi 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} setenv overlays _ov_som_wifi_ccimx8x.dtbo,${overlays}
fi fi
else else