Skip to content

Conversation

@thomasstenersen
Copy link
Collaborator

This PR is a preview of the changes needed in upstream Zephyr for fully supporting the Nordic BLE controller library. It mainly adds support for out-of-tree drivers and some various fixes.

PavelVPV and others added 30 commits January 28, 2019 20:01
The default nRF5 Clock controller can't be used when ble_controller is
nabled (BT_LL_NRFXLIB). The choice is added to solve this.

Signed-off-by: Pavel Vasilyev <[email protected]>
…ock_driver

DRGN-11180: Deselect nRF5 Clock controller if BT_LL_NRFXLIB enabled
Signed-off-by: Pavel Vasilyev <[email protected]>
Signed-off-by: Pavel Vasilyev <[email protected]>
This is an ugly, but easy way to avoid the error when
entropy driver requires sources, but they are located
in the next repo.

Signed-off-by: Pavel Vasilyev <[email protected]>
Signed-off-by: Pavel Vasilyev <[email protected]>
Better way to avoid the problem when library has no sources

Signed-off-by: Pavel Vasilyev <[email protected]>
…g_driver

Develop/drgn 10805 create rng driver
- Change NET_L2_BT to use `depends on` instead
of `select`.
- Depend on `FLASH_HAS_*` defines instead of `FLASH_*`

Signed-off-by: Thomas Stenersen <[email protected]>
The nrfxlib BLE controller needs its own flash
driver, adding the `FLASH_NRF_DRIVER` choice
allows configuring the driver properly from
the nRF Connect repo.

Signed-off-by: Thomas Stenersen <[email protected]>
…pi' into develop/DRGN-10806_blectrl_flash_driver_glue
…_flash_driver_glue

Add BLE controller flash driver support
Select BT_HCI_VS_CUSTOM to switch off Zephyr's Vendor Specific
HCI commands if they are not supported by custom Link Layer

Signed-off-by: Pavel Vasilyev <[email protected]>
…RGN-0000_merge_in_upstream

Signed-off-by: Thomas Stenersen <[email protected]>
Increase the default BT_HCI_TX_STACK_SIZE and make it user
configurable. If there is a BT_CTRL controller out-of-tree
with different requirements to the stack size, the default
is at least sufficiently high and it's user configurable.

Signed-off-by: Thomas Stenersen <[email protected]>
…tx_stack_size

bluetooth: host: Use default HCI stack size if no BT_LL_SW
Signed-off-by: Pavel Vasilyev <[email protected]>
PavelVPV and others added 2 commits February 20, 2019 11:01
…api' into develop/disable_zephyr_vendor_specific_hci_features

Signed-off-by: Pavel Vasilyev <[email protected]>
…r_specific_hci_features

Move BT_HCI_VS out of common/Kconfig to configure it from controller
@@ -1,10 +1,8 @@
zephyr_library()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not nice. Is there another way of doing this? Otherwise CMake will complain about an empty library.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I saw 2 ways to avoid the empty library issue:

  1. Remove zephyr_library() and use zephyr_sources_ifdef() as it done here;
  2. Modify extensions.cmake in Zephyr to make out-of-tree drivers look like they are in the Zehpyr's tree;

Maybe the 3rd way is to do a trick with Kconfig by using another way to include driver/entropy folder even if CONFIG_ENTROPY_HAS_DRIVER is enabled.

@thomasstenersen
Copy link
Collaborator Author

PR is moved to zephyrproject-rtos/zephyr#13631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants