wangchdo opened a new pull request, #16890:
URL: https://github.com/apache/nuttx/pull/16890
Add:
cmake/nuttx_process_config.cmake
tools/process_config.py
Update nuttx/CMakeLists.txt to call process_config defined in
nuttx_process_config.cmake to process defconfig before actually using it
*Note: Please adhere to [Contributing
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
## Summary
add defconfig preprocess capabilty to cmake build system
## Impact
Cmake build system will enjoy the same defconfig preprocess capability as
the make builld system
## Testing
**Split defconfig into two files as below:**
<img width="1449" height="563" alt="image"
src="https://github.com/user-attachments/assets/380ac538-d5f3-44c7-93cc-247d6b578de9"
/>
**After doing Cmake config generating:**
<img width="1252" height="783" alt="image"
src="https://github.com/user-attachments/assets/75eb28c9-1d0d-41c2-b188-7eecd8499199"
/>
**Cmake config gen log:**
-- Found Python3: /usr/bin/python3.9 (found version "3.9.23") found
components: Interpreter
-- Processing includes:
/home/lixiang/repos/nuttxspace/nuttx/boards/arm64/bcm2711/raspberrypi-4b/configs/nsh/defconfig
→ /home/lixiang/repos/nuttxspace/output/.config.processed
'/usr/bin/python3.9'
'/home/lixiang/repos/nuttxspace/nuttx/tools/process_config.py'
'/home/lixiang/repos/nuttxspace/output/.config.processed'
'/home/lixiang/repos/nuttxspace/nuttx/boards/arm64/bcm2711/raspberrypi-4b/configs/nsh/defconfig'
'/../../common/configs' '/../common'
-- Initializing NuttX
Select HOST_LINUX=y
-- CMake: 3.27.1
-- Board: raspberrypi-4b
-- Config: nsh
-- Appdir: /home/lixiang/repos/nuttxspace/nuttx-apps
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- The ASM compiler identification is GNU
--
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]