nuttx-apps/tools
Alan Carvalho de Assis cc8a6c8b85 cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR)
This companion change updates the nuttx-apps CMake build to use
NuttX’s NUTTX_DIR and NUTTX_BINARY_DIR instead of CMAKE_SOURCE_DIR
and CMAKE_BINARY_DIR, which incorrectly refer to the outermost project
when NuttX is embedded via add_subdirectory(). Since apps/ is itself
included from NuttX’s top-level CMakeLists.txt, these variables were
effectively being used as references to NuttX’s root and inherited
the same bug fixed in the matching NuttX change for #19697. All
self-referencing uses are replaced while intentionally preserving
standalone projects and unrelated custom variables or hardcoded paths.
The change affects only the CMake build system, preserves normal
standalone behavior, and was tested with sim:nsh both standalone and
embedded, with apps such as hello and ostest successfully built and
available in NSH.

Fixes #19697.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
2026-08-09 10:43:01 -03:00
..
Wasm cmake(bugfix):fix NuttX CMake Wasm build multi dirs cannot be identified 2025-01-23 14:26:08 +08:00
bitmap_converter.py tools: format bitmap converter 2026-07-06 16:31:47 +08:00
check-hash.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
CMakeLists.txt cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
export_pkg_repo.py system/nxpkg: add local package lifecycle helper 2026-06-20 15:05:28 -03:00
Kconfig Fix Kconfig style 2024-04-09 08:16:40 +02:00
mkimport.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mkkconfig.bat tools: update licenses to Apache 2021-06-10 08:49:24 -05:00
mkkconfig.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mkromfsimg.sh tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
mksymtab.sh elf:avoid interference between different ELFs generated by symtab 2026-01-16 21:07:56 +08:00
pre-commit tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Rust.mk examples/rust: Avoid the infinite loop on sim for hello_rust_cargo 2026-06-20 10:33:46 -03:00
WASI-SDK.defs tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Wasm.mk tools: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00