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:
parent
51319426f8
commit
b74a8cee54
|
|
@ -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