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

     ## Summary
   
     Make `nuttx_generate_preprocess_target()` emit depfiles for GNU/Clang
     Ninja/Makefile builds.
   
     This fixes stale generated outputs when a preprocessed source includes
     other files via `#include`. One practical case is board ROMFS init
     scripts like `rc.sysinit` including `rc.sysinit.ap`.
   
     Before this change, editing the included fragment might not regenerate
     the generated `rc.sysinit` and final ROMFS image.
   
     ## Impact
   
     Build system only.
   
     Improves dependency tracking for preprocess-generated files and avoids
     stale ROMFS/script outputs.
   
     ## Testing
   
     - Reviewed the ROMFS preprocess flow in:
       - `cmake/nuttx_toolchain.cmake`
       - `cmake/nuttx_add_romfs.cmake`
     - Verified the issue against a NuttX-based downstream board build that
       uses preprocessed `rc.sysinit` fragments
     - Confirmed that after the change, modifying an included init fragment
       regenerates:
       - generated `rc.sysinit`
       - `romfs_etc.c`
       - final image
   


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