-
Notifications
You must be signed in to change notification settings - Fork 124
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
Move esp-idf bootloader and partition table to known location after build #97
Comments
You can actually build the crate with I actually use that approach in my (very long) WIP |
That's a good point! Definitely useful for the cases where the tool is invoking the cargo build process. In the case of espflash (note, not cargo-espflash, the wrapper) it is typically used as a cargo runner, and has no sway over cargo's build process. Hypothetical usage I am picturing. [target.xtensa-esp32s2-espidf]
runner = "espflash --bootloader target/bootloader.bin --monitor" I suppose it be possible to write a build script that could find the esp-idf-sys directory inside |
Currently, they are tucked away in the build folder of esp-idf-sys, in which a unique fingerprint is appended to the folder name. E.g
target/xtensa-esp32-espidf/debug/build/esp-idf-sys-1d1212f75c9bfd7a/out/build/bootloader/bootloader.bin
Because of the fingerprint, it's not possible for tooling (like espflash) to grab the bootloader and partition table automatically. If we moved it to a known location in the target directory we could allow tooling to automatically pick up bootload and partition table changes.
I think moving them to the
$TARGET/$PROFILE/
makes sense. E.gtarget/xtensa-esp32-espidf/debug/build/esp-idf-sys-1d1212f75c9bfd7a/out/build/bootloader/bootloader.bin
would get copied totarget/xtensa-esp32-espidf/debug/bootloader.bin
.The text was updated successfully, but these errors were encountered: