Add idf.py --version option

Update docs on how to check IDF version
Show dependencies check information only in verbose mode
This commit is contained in:
Sergei Silnov
2019-08-15 15:42:15 +02:00
parent a70c3367e8
commit 2d03af30ab
3 changed files with 101 additions and 14 deletions

View File

@@ -59,10 +59,9 @@ ESP-IDF uses `Semantic Versioning <http://semver.org/>`_. This means that:
Checking the Current Version
----------------------------
The local ESP-IDF version can be checked by using git::
The local ESP-IDF version can be checked by using idf.py::
cd $IDF_PATH
git describe --tags --dirty
idf.py --version
The ESP-IDF version is also compiled into the firmware and can be accessed (as a string) via the macro ``IDF_VER``. The default ESP-IDF bootloader will print the version on boot (the version information is not always updated in code, it only changes if that particular source file is recompiled).

View File

@@ -57,10 +57,9 @@ ESP-IDF 采用了 `语义版本管理方法 <http://semver.org/>`_即您可
查看当前版本
----------------------------
查看 ESP-IDF 本地副本的版本,请使用 git 命令::
查看 ESP-IDF 本地副本的版本,请使用 idf.py 命令::
cd $IDF_PATH
git describe --tags --dirty
idf.py --version
此外,由于 ESP-IDF 的版本也已编译至固件中,因此您也可以使用宏 ``IDF_VER`` 查看 ESP-IDF 的版本以字符串的格式。ESP-IDF 默认引导程序可以在设备启动时打印 ESP-IDF 的版本,但注意代码中的版本信息仅会在源代码重新编译时才会更新,因此打印出来的版本可能并不是最新的。