csanchezdll opened a new pull request, #20367:
URL: https://github.com/apache/nuttx/pull/20367

   ## Summary
   
   This puts an extra constraint when building the different NuttX libraries, so
   `libapps.a is always built at the end.
   
   This is required to support using external build systems in some apps,
   which can use a configure script to test for the existence of certain 
functions
   on the OS and adapt the code accordingly. Notably, it is required for the 
sibling PR
   for `apps/interpreters/jimtcl` in XXX.
   
   ## Impact
   
   No code changes so no functional changes are caused by this PR. It might have
   a small impact on build type in parallel builds, because `libapps.a` can no 
longer be
   built at the same time as the other libraries.
   
   ## Testing
   
   ```
   $ tools/configure.sh nucleo-h563zi:nsh
   [...]
   $ make menuconfig
   Enable: Application Configuration -> Interpreters -> The Jim (TCL) 
Interpreter
   Enable: Build Setup -> Customize Header Files -> setjmp.h
   $ make
   ```
   
   You will see the `jimtcl` build system (easily recognizable because it uses 
a different printout format to the NuttX build system)
   now runs at the end of the build process, when the system libraries have 
already been built.
   
   Also, the file modification times show `libapps.a`was built last:
   ```
   nuttx/staging$ ls -lrt --time-style=full-iso     
   total 10708
   -rw-r--r-- 1 xxx xxx 2733616 2026-09-25 15:45:30.815080503 +0200 libsched.a
   -rw-r--r-- 1 xxx xxx  177084 2026-09-25 15:45:31.695063349 +0200 libdrivers.a
   -rw-r--r-- 1 xxx xxx    7948 2026-09-25 15:45:31.836060600 +0200 libboards.a
   -rw-r--r-- 1 xxx xxx 3413882 2026-09-25 15:46:01.188488357 +0200 libc.a
   -rw-r--r-- 1 xxx xxx  297192 2026-09-25 15:46:02.961453790 +0200 libmm.a
   -rw-r--r-- 1 xxx xxx  475954 2026-09-25 15:46:05.893396627 +0200 libarch.a
   -rw-r--r-- 1 xxx xxx   59332 2026-09-25 15:46:06.233389999 +0200 libxx.a
   -rw-r--r-- 1 xxx xxx 1286604 2026-09-25 15:46:10.620304469 +0200 libfs.a
   -rw-r--r-- 1 xxx xxx   68154 2026-09-25 15:46:11.253292127 +0200 libbinfmt.a
   -rw-r--r-- 1 xxx xxx 2423014 2026-09-25 15:46:26.796989063 +0200 libapps.a
   ```


-- 
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]

Reply via email to