esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
478 stars 117 forks source link

Allow specification of metadata depending on target #504

Closed Natureshadow closed 7 months ago

Natureshadow commented 10 months ago

For specifying a different partition table depending on the target (i.e. depending on a feature flag), it would be helpful to be able to define package metadata for espflash depending on a feature.

I don't know whether cargo allows that. If not, some other way to make partition tables, and other things that change depending on the target chip, configurable for these specific targets would also work.

jessebraham commented 10 months ago

Thanks for this issue! I am planning to do some related work next week so I will try to evaluate whether or not this is possible and get back to you with the results.

SergioGasquez commented 7 months ago

I'll be closing this issue as we've removed the Cargo package metadata configuration method. You could now use one espflash.toml file per target, see https://github.com/esp-rs/espflash/tree/main/espflash#configuration-file