Skip to content

fix: respect build directory in idf extension #55

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

fhrbata
Copy link
Collaborator

@fhrbata fhrbata commented Apr 17, 2025

Description

Currently, the idf.py reconfigure command is executed using only the build directory's basename, ignoring the -B argument provided by the user when running idf.py clang-check. For instance, executing idf.py -B builds/mybuild clang-check results in the reconfigure command being called as idf.py -B mybuild reconfigure.

Since the basename appears to have no impact on the outcome, this update removes it.

idf.py -D IDF_TOOLCHAIN=clang -B build/mybuild set-target esp32
idf.py -B build/mybuild clang-check

Related

Fixes #54

Testing

idf.py -D IDF_TOOLCHAIN=clang -B build/mybuild set-target esp32
idf.py -B build/mybuild clang-check

Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

Currently, the idf.py reconfigure command is executed using only the
build directory's basename, ignoring the -B argument provided by the
user when running idf.py clang-check. For instance, executing `idf.py -B
builds/mybuild clang-check` results in the reconfigure command being
called as `idf.py -B mybuild reconfigure`.

Since the basename appears to have no impact on the outcome, this update
removes it.

```
idf.py -D IDF_TOOLCHAIN=clang -B build/mybuild set-target esp32
idf.py -B build/mybuild clang-check
```

Closes espressif#54

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Collaborator

@peterdragun peterdragun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the fix.

Copy link
Collaborator

@mfialaf mfialaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@dobairoland
Copy link
Collaborator

Thank you for the fix and the reviews!

@dobairoland dobairoland merged commit d732c5b into espressif:master Apr 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

idf.py -B build/SubBuildFolder clang-check results in the reconfigure command idf.py -B SubBuildFolder reconfigure (IDFGH-15128)
4 participants