-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Two small patches for build system and fatfs (IDFGH-10849) #12052
Conversation
jendo42
commented
Aug 10, 2023
- idf.py gdb action incorrectly generated EOL in gdbinit
- fatfs routines incorrectly report state for read-only filesystem
radek.tandler seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
87a7dd2
to
5220b0d
Compare
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.
Thank you for the PR! Fatfs change looks good to me, just one question about the gdbinit part.
@@ -270,7 +270,7 @@ def generate_gdbinit_rom_add_symbols(target: str) -> str: | |||
r.append('set confirm on') | |||
r.append('end') | |||
r.append('') | |||
return os.linesep.join(r) | |||
return '\n'.join(r) |
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.
Did os.linesep
cause any issue when you used it? According to the docs it should be the correct line ending depending on the host OS.
@jendo42 One more request, could you please target |
GDB on Windows incorrectly reads EOL in the script files causing 'gdb' action to fail. (gdb) source .../build/gdbinit/py_extensions (gdb) source .../build\gdbinit\symbols add symbol table from file "...\build\bootloader\bootloader.elf" .../build\gdbinit\symbols:6: Error in sourced command file: Undefined command: "". Try "help". Forcing line separator to '\n' resolved the issue Signed-off-by: Michal Jenikovsky <[email protected]>
ff_ routines incorrectly reported disk state and caused whole fatfs to lock-up when trying to write to read-only device. Signed-off-by: Michal Jenikovsky <[email protected]>
sha=bcda40fcf22746f91f301bfcbba768d4a1747922 |