Junbo-Zheng opened a new pull request, #4009:
URL: https://github.com/apache/nuttx-apps/pull/4009
## Summary
system/toybox: add CMake build support
## Impact
None. Add toybox CMake build support
## Testing:
Verified with the existing in-tree toybox configuration:
```bash
/home/mi/local/apache/nuttx [26-11-10_21:09:04] git:(m5stickc-plus) cmake -B
build -DBOARD_CONFIG=sim:toybox -G Ninja
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Initializing NuttX
Select HOST_LINUX=y
Select HOST_X86_64=y
Loaded configuration '/home/mi/local/apache/nuttx/build/.config.compressed'
Minimal configuration saved to
'/home/mi/local/apache/nuttx/build/defconfig.tmp'
-- CMake: 3.27.1
-- Ninja: 1.10.1
-- Board: sim
-- Config: toybox
-- Appdir: /home/mi/local/apache/apps
-- The C compiler identification is GNU 13.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- CMake C compiler: GNU
-- CMake system name: Linux
-- CMake host system processor: x86_64
TOOLS_DIR path is "/home/mi/local/apache/nuttx"
HOST = Linux
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to:
/home/mi/local/apache/nuttx/build/bin_host
-- The C compiler identification is GNU 13.4.0
-- The CXX compiler identification is GNU 13.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- nuttx_add_subdirectory: Skipping cxx-oot-build
-- Configuring done (4.9s)
-- Generating done (0.2s)
-- Build files have been written to: /home/mi/local/apache/nuttx/build
/home/mi/local/apache/nuttx [26-11-10_21:09:10] git:(m5stickc-plus) cmake
--build build -j 22
[1362/1362] Pac SIM with dynamic libs in nuttx.tgz
'/lib/x86_64-linux-gnu/libz.so.1' -> 'sim-pac/libs/libz.so.1'
'/lib/x86_64-linux-gnu/libm.so.6' -> 'sim-pac/libs/libm.so.6'
'/lib/x86_64-linux-gnu/libc.so.6' -> 'sim-pac/libs/libc.so.6'
'/lib64/ld-linux-x86-64.so.2' -> 'sim-pac/ld-linux-x86-64.so.2'
/home/mi/local/apache/nuttx [26-11-10_21:09:17] git:(m5stickc-plus)
./build/nuttx
Toybox 0.8.14-nuttx for NuttX -- 'help' lists commands, 'exit' leaves the
prompt.
toybox>
toybox>
toybox>
toybox> help
[ base64 basename cal cat chgrp chmod chown cksum clear cmp comm cp
cpio cut date dd df diff dirname dos2unix du echo egrep env expand
expr fallocate false fgrep file find fmt free fsync getopt grep groups
gunzip gzip head help hostname id kill killall ln logname ls md5sum
mkdir mkfifo mktemp mv nice nl nohup nproc od paste pgrep pidof pkill
printenv printf prlimit ps pwd readlink realpath renice rev rm rmdir
sed seq setsid sha1sum sha224sum sha256sum sha384sum sha512sum sleep
sort split stat strings sync tac tail tar tee test time timeout touch
tr true truncate ulimit uname uniq unix2dos unlink uptime usleep uudecode
uuencode uuidgen wc which whoami xargs xxd yes zcat
toybox> uptime
13:09:27 up 0 min, 0 users, load average: *float*, *float*, *float*
toybox> date
Tue Nov 10 13:09:27 UTC 2026
toybox>
toybox> uname -a
NuttX 12.13.0 39687064ae8-dirty Nov 10 2026 21:09:14 sim Toybox
toybox>
```
Signed-off-by: Junbo Zheng <[email protected]>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]