JianyuWang0623 opened a new pull request, #4117: URL: https://github.com/apache/nuttx-apps/pull/4117
## Summary Follow-up to #4109, which moved toybox's `.config` into the CMake binary directory and left `generated/` and the fetched source in the apps tree ([review](https://github.com/apache/nuttx-apps/pull/4109#discussion_r4661290923)). Fetch, unpack and generate under the build directory instead, and pin the tarball SHA256 in Kconfig so a pre-downloaded copy is verified and reused. ## Impact CMake build layout only: the apps tree stays clean and each build directory has its own toybox copy. The image and the Make build are unchanged. ## Testing Build Host: Ubuntu 22.04.5 LTS, host gcc 13.4.0 (CROSSDEV empty), CMake 3.23.0, Ninja 1.10.1. Target: sim:toybox (NuttX 960459c6503), CMake and Make builds. CMake build and run, applet subset {uname, usleep}: ``` $ cmake -S nuttx -B build-s1 -GNinja -DBOARD_CONFIG=sim:toybox $ ninja -C build-s1 $ ./build-s1/nuttx toybox> help uname usleep toybox> uname -a NuttX 13.1.1 960459c6503 Nov 23 2026 22:53:45 sim Toybox ``` Two build directories with different applet picks coexist; rebuilding the first after the second was configured links fine (before this change: `undefined reference to 'ls_main'`): ``` $ ninja -C build-s1 # after build-s2 (subset {ls}) was configured $ ./build-s1/nuttx toybox> help ls uname usleep $ ./build-s2/nuttx toybox> help ls ``` Pre-downloaded tarball in a fresh build directory is verified and reused without network access: ``` -- File already exists and hash match (skip download): toybox> help uname ``` Make build regression: ``` $ ./tools/configure.sh -l sim:toybox && make -j8 $ ./nuttx toybox> uname -a NuttX 13.1.1-RC0 960459c6503-dirty Nov 23 2026 22:57:19 sim Toybox $ make distclean ``` -- 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]
