Skip to content

out-of-tree serial driver get No SOURCES warning #71734

Answered by gramsay0
foxriver1025 asked this question in General
Discussion options

You must be logged in to vote

Try using zephyr_library_amend() rather than zephyr_library() in out-of-tree cmake.
This amends the Zephyr drivers__serial library with your out-of-tree additions, rather than creating a new library.
Otherwise one of the two libraries will likely be empty and raise that warning.
https://github.com/zephyrproject-rtos/zephyr/blob/main/cmake/modules/extensions.cmake#L461

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Comment options

You must be logged in to vote
2 replies
@gramsay0
Comment options

@foxriver1025
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #71653 on April 21, 2024 17:47.