-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
make include hierarchy consistent with expected usage #21974
Comments
In I don't mind switching to @aescolar Any comments? |
Actually it appears both paths are used. And our downstream use |
The path to include/drivers should not be in the compiler include path list, only include/. In order to make this possible, always explictly refer to hci_driver.h via the drivers/bluetooth/ path and not only bluetooth/. Fixes zephyrproject-rtos#21974. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
The path to include/drivers should not be in the compiler include path list, only include/. In order to make this possible, always explictly refer to hci_driver.h via the drivers/bluetooth/ path and not only bluetooth/. Fixes #21974. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
In response to a review comment I proposed #21776 which removed the implicit addition of
${ZEPHYR_BASE}/include/drivers
from the default include path, so that<drivers/sensor.h>
would be enforced. This breaks bluetooth, which wants to use<bluetooth/whatever.h>
but the location is${ZEPHYR_BASE}/include/drivers/bluetooth
.It would be nice if the two were consistent, which probably means
bluetooth
should move up one level.The text was updated successfully, but these errors were encountered: