Skip to content

netutils/dropbear: fix CMake build target names, scp includes, and main alias. - #3841

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
Sarthak-Pandey:fix/dropbear-cmake-build
Oct 13, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
Sarthak-Pandey:fix/dropbear-cmake-build

Conversation

@Sarthak-Pandey

Copy link
Copy Markdown

Summary

Fixes CMake build failures for Dropbear and SCP applications described in #3834:

  • Use apps_${PROGNAME} and apps_scp target names for target_include_directories, target_compile_definitions, and target_compile_options.
  • Add missing libtomcrypt/src/headers and libtommath include paths and crypto definitions for apps_scp.
  • Use set_property(... APPEND ...) on dropbear/src/scp.c so the main=scp_main alias is preserved.
  • Place dropbear_main.c as the first source in SRCS so nuttx_add_application assigns the main alias to it.
  • Remove duplicate target_sources(apps PRIVATE ${DROPBEAR_SRCS}).

Impact

Enables building Dropbear and SCP using CMake (previously only Make worked).

Testing

Tested with CMake:

  • cmake -B build -DBOARD_CONFIG=esp32c3-devkit:dropbear -GNinja
  • cmake --build build

Fixes #3834

…in alias

- Use apps_<name> target names for target_include_directories,
  target_compile_definitions, and target_compile_options.
- Add missing libtomcrypt and libtommath include directories and
  definitions for apps_scp.
- Use set_property(... APPEND ...) on dropbear/src/scp.c so the
  main=scp_main alias is preserved.
- Place dropbear_main.c as the first source in SRCS so nuttx_add_application
  assigns the main alias to it.
- Remove duplicate target_sources(apps PRIVATE).
Fixes apache#3834

Signed-off-by: Sarthak Pandey <sarthak@email.com>
@Sarthak-Pandey
Sarthak-Pandey force-pushed the fix/dropbear-cmake-build branch from 750cf3a to e09fe73 Compare October 12, 2026 18:38
@cederom cederom changed the title git push -u myfork fix/dropbear-cmake-build netutils/dropbear: fix CMake build target names, scp includes, and main alias. Oct 13, 2026
@cederom

cederom commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@acassis could you please take a look + the initial dopbear dev from gsoc? :-)

@xiaoxiang781216
xiaoxiang781216 merged commit 7691b5a into apache:master Oct 13, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] netutils/dropbear: CMake build fails (target names, scp includes, main alias, duplicate sources)

4 participants