-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools/Unix.mk: Add debug_info target to print nxdiag output #15304
base: master
Are you sure you want to change the base?
tools/Unix.mk: Add debug_info target to print nxdiag output #15304
Conversation
[Experimental Bot, please feedback here] Fill In The Commit Message: This PR contains a Commit with an Empty Commit Message. Please fill in the Commit Message with the PR Summary. Yes, this PR appears to mostly meet the NuttX requirements, but some sections need more detail. Here's a breakdown of what's good and what needs improvement: Good:
Needs Improvement:
Example of Improved Testing Section:
make debug_info
make debug_info
|
# debug_info: Parse nxdiag example output file (sysinfo.h) and print | ||
|
||
debug_info: checkpython3 | ||
@if [[ ! -f "$(CONFIG_APPS_DIR)/system/nxdiag/sysinfo.h" ]]; then \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but why generate apps specific info from nuttx build script? it's better to generate this info inside system/nxdiag's scripts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not only apps specific info, it gives info from build system.I used it because it was already implemented for fetching system information (e.g Compilation flags, Configuration(defconfig), Toolchain info, ...).
Also I tried to implement target in apps/system/nxdiag scripts but it didn't work.
Summary
Related to apache/nuttx-apps#2911
Add debug_info target support to parse and print
sysinfo.h
file which is output file of nxdiag application without flashing it to the device or even enablingSYSTEM_NXDIAG
option. We can use this feature to have more information about user system environment when we are investigating issue. Users only need to run make debug_info on their problematic code.Impact
Common layer change
Testing
esp32c6-devkitc:nsh
config selected and then runmake debug_info
command