esp32/README: Describe how to select compatible version of existing IDF.

This commit is contained in:
IhorNehrutsa 2021-06-11 02:20:22 +03:00 committed by Damien George
parent f314cac604
commit da8aad18a4

View File

@ -50,10 +50,19 @@ To check out a copy of the IDF use git clone:
$ git clone -b v4.0.2 --recursive https://github.com/espressif/esp-idf.git
```
You can replace `v4.0.2` with `v4.1.1` or any other supported version.
You can replace `v4.0.2` with `v4.1.1` or `v4.2` or any other supported version.
(You don't need a full recursive clone; see the `ci_esp32_setup` function in
`tools/ci.sh` in this repository for more detailed set-up commands.)
If you already have a copy of the IDF then checkout a version compatible with
MicroPython and update the submodules using:
```bash
$ cd esp-idf
$ git checkout v4.2
$ git submodule update --init --recursive
```
After you've cloned and checked out the IDF to the correct version, run the
`install.sh` script: