-
Notifications
You must be signed in to change notification settings - Fork 1.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
Espressif build environment confusing setup docs #9552
Comments
Did you look at https://learn.adafruit.com/building-circuitpython ? We don't really try to keep the README's up to date, and should probably remvoe most of them. |
Yes, I eventually found your guide and have been working through its instructions. That's where I ran into the order of operations trouble with fetching submodules relative to installing the esp-idf with |
If it would be helpful, I could make a PR with some edits (maybe CONTRIBUTING.md and ports/espressif/README.md). Not sure which branch the PR should be made against though. |
Thanks - I would like to have the info in the guide, rather than in the README's, because it's easier to maintain. But I know this goes against the grain of having build info in the source code. Nevertheless, the build setup is complicated enough that I'd rather just cross-reference to the guide. It can go against |
@samblenny: You should also have a look at the Readme and scripts in |
@samblenny Would you say this issue is fixed now, by #9554, or would you like some additions to the Building CircuitPython guide? |
For this issue, from my perspective, yeah it's fixed. There might be some opportunity to revise the guide by arranging things into a more linear sequence, with less need to follow cross-reference links. But, I don't feel like I have enough experience with the build system to say much about that. I'm sure there are lots of edge cases to consider. |
CircuitPython version
Code/REPL
Behavior
n/a
Description
I'm trying to set up an Espressif build environment from scratch, and I hit a couple documentation snags.
Looking at the main CircuitPython README, I had a hard time locating where I should start looking for build documentation. Eventually I realized there's a BUILDING.md file, which was helpful, but that file is hard to notice amidst many other top level files. Before that, I found the CONTRIBUTING.md file, but initially missed its link to the Building CircuitPython learn guide. The link text to the guide that I overlooked was just the word "here", so I didn't realize what it was until I went back and did a text search on the Markdown source code. It would be handy if there was a more prominent link to Dan's guide with link text along the lines of, "Building CircuitPython Learn Guide".
The Building CircuitPython learn guide instructions on the Install Build Tools on Ubuntu section of the Linux Setup page links to the Espressif Builds page. The Espressif Builds page starts with a request to go read ports/espressif/README.md. So, at that point, you have to choose between jumping to the README or continuing with the Learn guide. If you take the README route first, under the Building and Flashing subheading, it says to do,
But, that doesn't work unless you've first followed the Learn Guide instructions to fetch submodules with
For a freshly cloned adafruit/circuitpython repo, the ports/espressif/esp-idf directory is empty, so the install script doesn't exist. If the espressif/ports/README.md file mentioned the need to run
make fetch-port-submodules
, it would be less confusing.Additional information
No response
The text was updated successfully, but these errors were encountered: