Skip to content
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

build: CMake fix for sim:btuart #15702

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

Jasinsky
Copy link
Contributor

Summary

CMake build was broken with undefined reference to bt_bridge_register function.

[9/11] Linking C executable nuttx
FAILED: nuttx 
: && /usr/bin/cc  -Wl,--gc-sections -Wl,-no-pie -Wl,-Ttext-segment=0x40000000 -Wl,-z,noexecstack -T nuttx.ld @CMakeFiles/nuttx.rsp -o nuttx && :
/usr/bin/ld: nuttx.rel: in function `bt_driver_register_with_id':
/home/dan/priv/nuttx/nuttx/drivers/wireless/bluetooth/bt_driver.c:100: undefined reference to `bt_bridge_register'

It was because bt_bridge.c file is missing in drivers/wireless/bluetooth/CMakeLists.txt.

Impact

Minor impact, makefile based build worked fine, CMake based build is fixed now.

Testing

Host used:

Linux 6.8.0-51-generic #52~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Dec  9 15:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Target:

cmake .. -G Ninja -DBOARD_CONFIG=sim:btuart

bt_bridge.c file was missing in nuttx/drivers/wireless/bluetooth.

Signed-off-by: Daniel Jasinski <[email protected]>
@github-actions github-actions bot added Area: Bluetooth Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small labels Jan 26, 2025
@anchao anchao merged commit 9e64505 into apache:master Jan 27, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Bluetooth Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants