nuttx-apps/benchmarks
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
..
cachespeed benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
coremark cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
coremark-pro cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
cyclictest !apps: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-22 13:38:25 +08:00
dhrystone cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
fio cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
iozone benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
mtd benchmarks/mtd: use uniform output style for numbers 2026-06-10 16:43:17 +08:00
osperf sched: inline enter_critical_section 2026-01-26 16:39:15 +08:00
ramspeed benchmarks/ramspeed: add cmake build support 2026-01-16 21:09:07 +08:00
rt-tests benchmarks: migrate license to ASF 2024-12-19 15:25:28 +08:00
sd_bench apps: Fix additional open() arguments. 2026-05-22 13:39:04 +08:00
spinlock_bench benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
superpi cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
tacle-bench cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
test-tlb cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
tinymembench cmake: Use NUTTX(_DIR/_BINARY_DIR) instead of CMAKE(_SOURCE_DIR/BINARY_DIR) 2026-08-09 10:43:01 -03:00
whetstone benchmarks/fpu: improve timing precision to milliseconds 2026-01-21 07:43:09 -03:00
.gitignore apps: Add benchmark applications 2023-01-23 13:15:56 -03:00
CMakeLists.txt benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
Make.defs benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
Makefile benchmarks: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00