Skip to content

Conversation

@abrender
Copy link
Contributor

@abrender abrender commented Sep 25, 2025

Context: #798

Users are reporting that it's difficult to use the arduino-esp32 repo when building with esp-idf because of the size of that repo. The repo contains over 2GB of revision data in the .git directory.

This PR updates the instructions to add --depth 1 into the git clone command so that the resulting cloned repo is less than 100MB instead of 2GB.

Context: mrcodetastic#798

Users are reporting that it's difficult to use the arduino-esp32 repo when building with esp-idf because of the size of that repo.  The repo contains over 2GB of revision data in the .git directory.

This PR updates the instructions to add `--depth 1` into the `git clone` command so that the resulting cloned repo is < 100MB instead of 2GB.
@Jason2866
Copy link
Contributor

To have a reproducable build AND reduce download size it would be even better to use the Arduino released zip files

@mrcodetastic
Copy link
Owner

@Jason2866 What are your thoughts then on whether I should merge this? I'll take your expertise on this one.

@Jason2866
Copy link
Contributor

Jason2866 commented Oct 25, 2025

@mrcodetastic I would recommend to download actual release of Arduino core source code.
https://github.com/espressif/arduino-esp32/releases/download/3.3.2/esp32-3.3.2.zip and extract the content to folder components/arduino
The zip is <30MB in size

@Jason2866
Copy link
Contributor

Had a look at the example. The manual setup step can be avoided completely by using the idf component manager. Not at home currently. Give me time until Thursday, will provide a PR where a simple idf.py build will do the job.

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.

3 participants