-
Couldn't load subscription status.
- Fork 22
softdevice: Move all SoftDevice files to separate folder #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,16 +16,19 @@ add_compile_definitions( | |
| CONFIG_BLE_QWR_MAX_ATTR=2 | ||
| ) | ||
|
|
||
| cmock_handle(${ZEPHYR_NRF_BM_MODULE_DIR}/include/s115/ble.h) | ||
| cmock_handle(${ZEPHYR_NRF_BM_MODULE_DIR}/include/s115/ble_gatts.h | ||
| set(SOFTDEVICE_VARIANT "s115") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and should not duplicate variables unless there's a good reason There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kconfigs dont work for unittests since the dependencies are not satisfied. Kept it as is |
||
| set(SOFTDEVICE_INCLUDE_DIR "${ZEPHYR_NRF_BM_MODULE_DIR}/components/softdevice/${SOFTDEVICE_VARIANT}/${SOFTDEVICE_VARIANT}_API/include") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will it be easier to put API to components/softdevice/s115/API There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We still need to know the variant to choose the correct include folder, so no big difference. But it might look nicer to not have the variant repeated as many times. |
||
|
|
||
| cmock_handle(${SOFTDEVICE_INCLUDE_DIR}/ble.h) | ||
| cmock_handle(${SOFTDEVICE_INCLUDE_DIR}/ble_gatts.h | ||
| WORD_EXCLUDE | ||
| "__STATIC_INLINE") | ||
| cmock_handle(${ZEPHYR_NRF_BM_MODULE_DIR}/include/s115/ble_gattc.h | ||
| cmock_handle(${SOFTDEVICE_INCLUDE_DIR}/ble_gattc.h | ||
| WORD_EXCLUDE | ||
| "__STATIC_INLINE") | ||
|
|
||
| target_include_directories(app PRIVATE ${ZEPHYR_NRF_BM_MODULE_DIR}/include) | ||
| target_include_directories(app PRIVATE ${ZEPHYR_NRF_BM_MODULE_DIR}/include/s115) | ||
| target_include_directories(app PRIVATE ${SOFTDEVICE_INCLUDE_DIR}) | ||
| target_include_directories(app PRIVATE ${ZEPHYR_HAL_NORDIC_MODULE_DIR}/nrfx/mdk) | ||
| target_include_directories(app PRIVATE ${ZEPHYR_CMSIS_MODULE_DIR}/CMSIS/Core/Include) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be moved to components/softdevice as well?
(together with Kconfig file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to keep it outside of the
componentsdirectory since all of it will be replaced on each update of the SoftDevice.That said, there might be a better place to put the files than
subsys/softdevice. I just kept them where they were for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why replace the entire directory? Is it not enough to touch the
componentes/softdevice/s115directory? At least you should not touch more thancomponentes/softdevice, but if we stick to touch only the variant folders we can keep the Kconfig and CMake files here as well. I find it a bit strange and less intuitive to the user that those are insubsyswhile the rest is in components.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will just replace
components/softdevice, other components should not be touched. I want to replace the entire folder in case of future variants in addition to s115. It is possible to work around additional files incomponents/softdevicethat shouldnt be replaced, replacing the whole thing is just simpler.My idea for the
componentsfolder was that it is just a copy of external components and anything sdk-nrf-bm specific should be outside of it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a workaround to not replace
CMakeLists.txtorKconfigfiles for https://github.com/nrfconnect/sdk-nrfxlib/blob/main/softdevice_controller/CMakeLists.txt, so it is possible to keep the files incomponents/softdevice.