Skip to content
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

flasher_stub: Makefile changes for clarity and modularity (ESPTOOL-647) #858

Merged
merged 4 commits into from
Mar 17, 2023

Conversation

paravoid
Copy link
Contributor

Description of change

As promised in #856, here are some flasher_stub Makefile changes that clean up the make code a little bit, and build up on 94f29a5 to remove some legacy code from wrap_stub.py.

I've split the changes into multiple incremental commits that are hopefully self-explanatory.

This PR is on top of "master" for ease of review, but can be rebased cleanly over #856.

I have tested this change with the following hardware & software combinations:

Debian sid with upstream toolchain as set up by ci/setup_ci_build_env.sh.

The built stubs (under esptool/targets/stub_flasher do not change), and so no hardware testing is required.

@github-actions github-actions bot changed the title flasher_stub: Makefile changes for clarity and modularity flasher_stub: Makefile changes for clarity and modularity (ESPTOOL-647) Mar 13, 2023
Rather than a special "make esp32", create WITHOUT_* variables to
selectively disable chip families. Currently, WITHOUT_ESP8266,
WITHOUT_ESP32_XTENSA and WITHOUT_ESP32_RISCV32 are defined, but the code
can be easily adjusted to allow for all kinds of other
sets/combinations.
Since commit 94f29a5 the flasher stub is not embedded in the Python
source, but rather included as simple json files.

As such, wrap_stub.py --embed was converted to basically just vary the
build dir. Rather than keep this indirection and for better clarity,
remove that piece of code and replace it by a simple "cp" in the
Makefile.

While at it, replace the target name from "embed" to "install", as this
more akin to a "make install" step.
@dobairoland
Copy link
Collaborator

@paravoid Thank you for taking the time and making these nice improvements. We will handle it soon.

@espressif-bot espressif-bot merged commit 6cd442e into espressif:master Mar 17, 2023
@radimkarnis
Copy link
Collaborator

@paravoid thanks for contributing!

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.

4 participants