Skip to content

Remove esptool copy, add flasher stubs copy #462

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

Conversation

marekmatej
Copy link
Collaborator

@marekmatej marekmatej commented Jul 9, 2025

In this PR, we are removing the esptool copy because it is installed as a package in the Zephyr environment. File zephyr/requirements.txt is used to hold the hal_espressif requirements. zephyr/module.yml and its generator script are updated to use the package-managers entry.

The flasher_stubs copy from its current repository (https://github.com/espressif/esptool-legacy-flasher-stub) is added as well, as it was removed from the esptool, and its files are used in the hal_espressif.

@marekmatej marekmatej force-pushed the feature/esptool_flasher_stubs branch 2 times, most recently from 722b228 to 5b769fb Compare July 10, 2025 21:35
@marekmatej marekmatej force-pushed the feature/esptool_flasher_stubs branch from 5b769fb to db322e6 Compare July 15, 2025 19:29
@marekmatej marekmatej requested a review from wmrsouza July 15, 2025 20:58
@sylvioalves sylvioalves changed the base branch from zephyr to main July 22, 2025 01:53
Marek Matej added 3 commits July 23, 2025 15:05
Remove hard-copy of the esptool in the esptool_py folder and use the
esptool from Zephyr environment.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
Replace esptool hosted flasher_stub by the snapshot of the
https://github.com/espressif/esptool-legacy-flasher-stub
(sha256: bd267d361412dbbba410cc36c6e7aa58812fc1bd)

Signed-off-by: Marek Matej <marek.matej@espressif.com>
Use package-managers to provide hal requirements.txt.
Update the generator script accordingly and add the actual
`requirements.txt` file.
Fix the path used to access the flash_stub.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
@marekmatej marekmatej force-pushed the feature/esptool_flasher_stubs branch from db322e6 to f5096b5 Compare July 23, 2025 13:05
@marekmatej marekmatej merged commit 94b914c into zephyrproject-rtos:main Jul 23, 2025
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.

5 participants