-
Notifications
You must be signed in to change notification settings - Fork 125
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
Tracking issue to use native build strategy as default #10
Comments
IMO, we should try to unify these.
IMO we do need at least the Second priority (but still very useful) would be support for the ESP-IDF monitor, as it is capable of properly decrypting panic backtraces even for RiscV chips. |
Small status update for this issue
|
I agree with that plan. |
Configuration of
|
How would you copy and track the custom partition table when there is one? The PlatformIO mechanism is generic for these reasons precisely - as there might be multiple things you might want to shuffle into the native PlatformIO project prior to building. |
That is indeed a good question. If it's just the partition table, which as far as I know, is only used at the end of the build for size checking and then to flash its binary version. And since we have a dummy project which doesn't actually use anything from the esp-idf, the compiled size is almost zero, so the size check should really always pass. But besides that, are there other things other than the sdkconfig and partition table that the esp-idf needs and that are critical for the compilation of the esp-idf? |
Well, if the partition table CSV file is really only used (in our case) for size check comparisons, then the partition table problem is solved. The PIO builder does use the generic But we can always layer your set of variables on top of my PIO glob patterns and this way achieve parity between the two builders. One annoying complication is that regarding As for other files that we might have to contribute to the ESP-IDF build... not sure. I couldn't find others, but I could've missed something. |
I agree we shouldn't remove the glob functionality. Maybe in the future, the esp-idf needs some other custom files why by that mechanism can easily be added to its build. (So lets add this mechanism to the native build too)
Does the esp-idf pio platform not support giving the If it doesn't support this: Because the I think for the
Wouldn't this feature also be nice to have in the But also the whole build type opens another can of worms that we should really address before setting the
So, my idea would be to use the cargo profile settings to determine the |
@ivmarkov Any comments on this? If not, I'll whip up an implementation of this. |
+1
Not that I'm aware of. Maybe I'm missing something, but unlikely. FYI, the black magic PlatformIO does on top of ESP-IDF is here, in their "espressif32" "platform".
I'm fine with that. In fact, you might re-use the glob mechanism to copy the files as well, but actually up to you.
My only concern is that it is not very "ESP-IDFy". And, I don't see a similar mechanism in PIO for
I'm OK with that too. |
I don't have strong feelings/disagreements with any of your statements from above, so by all means - go ahead. |
573bcc6 made |
This issue tries to list everything that has to be done for us to switch to the native
esp-idf
build strategy.native
uses<workspace-dir>/.espressif
andpio
uses theplatformio
default.idf_tools.py
as that version is outdatedpython3
should remain a user requirement (Consider installing embedded Python on Windows #18)idf_tools.py
and roll our own install logic. (see Tracking issue to use native build strategy as default #10 (comment))idf_tools.py
.cmake
anyway.idf_tools.py
requires workaround for windows when usingmsys
orgit-bash
.The text was updated successfully, but these errors were encountered: