Skip to content

Commit

Permalink
Bluetooth: Shell: Fix native shell build
Browse files Browse the repository at this point in the history
Following changes in HCI drivers
(#72323) the build for
the snippet allowing to have the Bluetooth shell run with BabbleSim was
broken.

Fix the snippet by disabling the HCI UART driver.

Add a twister test case that will build the snippet in CI to avoid
silent breaking.

Signed-off-by: Théo Battrel <[email protected]>
  • Loading branch information
theob-pro authored and nashif committed Jul 10, 2024
1 parent 9b68230 commit 96d8682
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
/delete-property/ pinctrl-0;
/delete-property/ pinctrl-1;
/delete-property/ pinctrl-names;

bt_hci_uart: bt_hci_uart {
compatible = "zephyr,bt-hci-uart";
status = "disabled";
};
};

&uart0 {
Expand Down
9 changes: 9 additions & 0 deletions tests/bluetooth/shell/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,12 @@ tests:
- CONFIG_RING_BUFFER=n
- CONFIG_USB_DEVICE_STACK=n
- CONFIG_USB_DEVICE_AUDIO=n
bluetooth.native_shell:
build_only: true
extra_args:
- EXTRA_CONF_FILE=snippets/xterm-native-shell/xterm-native-shell.conf
- EXTRA_DTC_OVERLAY_FILE=snippets/xterm-native-shell/xterm-native-shell.overlay
platform_allow:
- nrf52_bsim
integration_platforms:
- nrf52_bsim

0 comments on commit 96d8682

Please sign in to comment.