-
Notifications
You must be signed in to change notification settings - Fork 1.5k
tools: fix make host_info flag parsing and config string escaping
#18299
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
base: master
Are you sure you want to change the base?
Conversation
|
@adwait-godbole I don't know if you need to add quotes to every lines, my ideas was to fix just: from: to: @raiden00pl @xiaoxiang781216 what do you think? |
|
Hi @acassis. Thanks for the quick feedback. From the screenshots I’ve attached in the PR description, I’ve already been able to achieve this: before: CONFIG_APPS_DIR=\../apps\after (this PR): “CONFIG_APPS_DIR=“../apps””So removing those wrapping double quotes won’t be much of an issue. I’ll do that fix. Just wanted to confirm one thing. Do we only want to do this (remove wrapping double quotes) for My current PR changes: NuttX LDFLAGS:
“-Wl—gc-sections”Your Requirement: NuttX LDFLAGS:
-Wl—gc-sections? Let me know. |
Hi @adwait-godbole I think everything should have these double quote, only some strings after CONFIG_XXX..= should include "yyyy". So basically remote the initial and the ending quote of each line will fix the issue |
|
Hi @adwait-godbole please fix |
7a41efc to
fece44c
Compare
|
@simbit18. Please let me know if you're still facing the same failure. |
|
Hi @adwait-godbole, you need to run the tests with this configuration esp32-devkitc:nxdiag |
d3d44b8 to
058621b
Compare
|
@simbit18 the |
|
@simbit18 good to go? |
|
@adwait-godbole Thank you so much ! Did @acassis resolve your request? @fdcavalcanti @tmedicci @eren-terzioglu Is this acceptable for your internal tests? |
Hi, |
|
esp32-devkitc:nxdiag built fine but |
|
@eren-terzioglu I'll look into this. Thanks. |
058621b to
781b417
Compare
92332e7 to
989238f
Compare
Fix incorrect flag handling and string escaping in the `make host_info` diagnostic target. Previously, CFLAGS, CXXFLAGS, and LDFLAGS were passed in a form that caused improper splitting and quoting, which resulted in malformed output and incorrectly escaped configuration values such as CONFIG_APPS_DIR. This change ensures that: - Compilation flags are passed as proper shell strings - Flags are split correctly using shlex - Configuration values are escaped exactly once when generating sysinfo.h - Parsed output matches the contents of the .config file This change affects diagnostic output only and does not modify the NuttX build process or generated binaries. Signed-off-by: Adwait Godbole <adwaitngodbole@gmail.com>
989238f to
061c4c7
Compare
This PR fixes incorrect flag handling and string escaping in the
make host_infodiagnostic target.The previous implementation passed compilation flags in a way that caused incorrect splitting and over-escaping, leading to malformed diagnostic output and incorrectly quoted configuration values.
The fixes ensure that:
CFLAGS,CXXFLAGS, andLDFLAGSare passed and parsed correctlysysinfo.h.configfileThis is a diagnostic-only change and does not affect the NuttX build output.
Fixes #16696
cc: @acassis