Skip to content

Commit 582a391

Browse files
committed
Merge branch 'feature/idfpy_dashes_replace' into 'master'
tools: replace _ with - in idf.py Closes IDFGH-3105 See merge request espressif/esp-idf!14752
2 parents eaa883d + ff18a96 commit 582a391

File tree

35 files changed

+202
-102
lines changed

35 files changed

+202
-102
lines changed

.gitlab/ci/host-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ test_idf_tools:
208208
script:
209209
- cd ${IDF_PATH}/components/efuse/
210210
- ./efuse_table_gen.py -t "${IDF_TARGET}" ${IDF_PATH}/components/efuse/${IDF_TARGET}/esp_efuse_table.csv
211-
- git diff --exit-code -- ${IDF_TARGET}/esp_efuse_table.c || { echo 'Differences found for ${IDF_TARGET} target. Please run make efuse_common_table or idf.py efuse_common_table and commit the changes.'; exit 1; }
211+
- git diff --exit-code -- ${IDF_TARGET}/esp_efuse_table.c || { echo 'Differences found for ${IDF_TARGET} target. Please run make efuse_common_table or idf.py efuse-common-table and commit the changes.'; exit 1; }
212212
- cd ${IDF_PATH}/components/efuse/test_efuse_host
213213
- ./efuse_tests.py
214214

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ After the initial flash, you may just want to build and flash just your app, not
103103

104104
## Erasing Flash
105105

106-
The `idf.py flash` target does not erase the entire flash contents. However it is sometimes useful to set the device back to a totally erased state, particularly when making partition table changes or OTA app updates. To erase the entire flash, run `idf.py erase_flash`.
106+
The `idf.py flash` target does not erase the entire flash contents. However it is sometimes useful to set the device back to a totally erased state, particularly when making partition table changes or OTA app updates. To erase the entire flash, run `idf.py erase-flash`.
107107

108-
This can be combined with other targets, ie `idf.py -p PORT erase_flash flash` will erase everything and then re-flash the new app, bootloader and partition table.
108+
This can be combined with other targets, ie `idf.py -p PORT erase-flash flash` will erase everything and then re-flash the new app, bootloader and partition table.
109109

110110
# Resources
111111

README_CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ESP-IDF 中的子模块采用相对路径([详见 .gitmodules 文件](.gitmodu
5656
* 在主机中安装入门指南中提到的构建所依赖的工具。
5757
* 运行安装脚本来设置构建环境。可为 Windows shell 选择 `install.bat``install.ps1`,为 Unix shell 选择 `install.sh``install.fish`
5858
* 在使用 ESP-IDF 之前,需要在 shell 中运行导出脚本。Windows 下可运行 `export.bat`,Unix 下可运行 `source export.sh`
59-
59+
6060
## 配置项目
6161

6262
* `idf.py set-target <chip_name>` 可将项目的目标芯片设置为 `<chip_name>`。运行 `idf.py set-target`,不用带任何参数,可查看所有支持的目标芯片列表。
@@ -103,9 +103,9 @@ ESP-IDF 中的子模块采用相对路径([详见 .gitmodules 文件](.gitmodu
103103

104104
## 擦除 Flash
105105

106-
`idf.py flash` 并不会擦除 flash 上所有的内容,但是有时候我们需要设备恢复到完全擦除的状态,尤其是分区表发生了变化或者 OTA 应用升级时。要擦除整块 flash 请运行 `idf.py erase_flash`
106+
`idf.py flash` 并不会擦除 flash 上所有的内容,但是有时候我们需要设备恢复到完全擦除的状态,尤其是分区表发生了变化或者 OTA 应用升级时。要擦除整块 flash 请运行 `idf.py erase-flash`
107107

108-
这条命令还可以和其余命令整合在一起,`idf.py -p PORT erase_flash flash` 会擦除一切然后重新烧写新的应用程序、引导程序和分区表。
108+
这条命令还可以和其余命令整合在一起,`idf.py -p PORT erase-flash flash` 会擦除一切然后重新烧写新的应用程序、引导程序和分区表。
109109

110110
# 其它参考资源
111111

components/app_update/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if(NOT BOOTLOADER_BUILD)
5555
"--partition-table-offset;${PARTITION_TABLE_OFFSET}")
5656
idf_component_get_property(esptool_py_dir esptool_py COMPONENT_DIR)
5757

58-
add_custom_target(read_otadata DEPENDS "${PARTITION_CSV_PATH}"
58+
add_custom_target(read-otadata DEPENDS "${PARTITION_CSV_PATH}"
5959
COMMAND ${CMAKE_COMMAND}
6060
-D IDF_PATH="${idf_path}"
6161
-D SERIAL_TOOL="${otatool_py}"
@@ -65,8 +65,9 @@ if(NOT BOOTLOADER_BUILD)
6565
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
6666
USES_TERMINAL
6767
)
68+
add_deprecated_target_alias(read_otadata read-otadata)
6869

69-
add_custom_target(erase_otadata DEPENDS "${PARTITION_CSV_PATH}"
70+
add_custom_target(erase-otadata DEPENDS "${PARTITION_CSV_PATH}"
7071
COMMAND ${CMAKE_COMMAND}
7172
-D IDF_PATH="${idf_path}"
7273
-D SERIAL_TOOL="${otatool_py}"
@@ -76,6 +77,7 @@ if(NOT BOOTLOADER_BUILD)
7677
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
7778
USES_TERMINAL
7879
)
80+
add_deprecated_target_alias(erase_otadata erase-otadata)
7981

8082
idf_component_get_property(main_args esptool_py FLASH_ARGS)
8183
idf_component_get_property(sub_args esptool_py FLASH_SUB_ARGS)

components/efuse/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ idf_build_get_property(python PYTHON)
3939
# Make common files esp_efuse_table.c and include/esp_efuse_table.h files.
4040
set(EFUSE_COMMON_TABLE_CSV_PATH "${COMPONENT_DIR}/${target}/esp_efuse_table.csv")
4141

42-
add_custom_target(efuse_common_table COMMAND "${python}"
42+
add_custom_target(efuse-common-table COMMAND "${python}"
4343
"${CMAKE_CURRENT_SOURCE_DIR}/efuse_table_gen.py"
4444
${EFUSE_COMMON_TABLE_CSV_PATH} ${GEN_EFUSE_TABLE_ARG})
45+
add_deprecated_target_alias(efuse_common_table efuse-common-table)
4546

4647
###################
4748
# Make custom files project/main/esp_efuse_custom_table.c and project/main/include/esp_efuse_custom_table.h files.
@@ -51,15 +52,18 @@ if(${CONFIG_EFUSE_CUSTOM_TABLE})
5152
idf_build_get_property(project_dir PROJECT_DIR)
5253
get_filename_component(EFUSE_CUSTOM_TABLE_CSV_PATH "${CONFIG_EFUSE_CUSTOM_TABLE_FILENAME}"
5354
ABSOLUTE BASE_DIR "${project_dir}")
54-
add_custom_target(efuse_custom_table COMMAND "${python}" "${CMAKE_CURRENT_SOURCE_DIR}/efuse_table_gen.py"
55+
add_custom_target(efuse-custom-table COMMAND "${python}" "${CMAKE_CURRENT_SOURCE_DIR}/efuse_table_gen.py"
5556
${EFUSE_COMMON_TABLE_CSV_PATH} ${EFUSE_CUSTOM_TABLE_CSV_PATH} ${GEN_EFUSE_TABLE_ARG})
57+
add_deprecated_target_alias(efuse_custom_table efuse-custom-table)
5658
else()
57-
add_custom_target(efuse_custom_table COMMAND)
59+
add_custom_target(efuse-custom-table COMMAND)
60+
add_deprecated_target_alias(efuse_custom_table efuse-custom-table)
5861
endif()#if(${CONFIG_EFUSE_CUSTOM_TABLE})
5962

60-
add_custom_target(show_efuse_table COMMAND "${python}"
63+
add_custom_target(show-efuse-table COMMAND "${python}"
6164
"${CMAKE_CURRENT_SOURCE_DIR}/efuse_table_gen.py"
6265
${EFUSE_COMMON_TABLE_CSV_PATH} ${EFUSE_CUSTOM_TABLE_CSV_PATH} ${GEN_EFUSE_TABLE_ARG} "--info")
66+
add_deprecated_target_alias(show_efuse_table show-efuse-table)
6367

6468
###################
6569
# Generates files for unit test. This command is run manually.

components/efuse/esp32/esp_efuse_table.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
##########################################################################
77
# *) The value MAX_BLK_LEN depends on CONFIG_EFUSE_MAX_BLK_LEN, will be replaced with "None" - 256. "3/4" - 192. "REPEAT" - 128.
88
# !!!!!!!!!!! #
9-
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse_common_table"
9+
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse-common-table"
1010
# this will generate new source files, next rebuild all the sources.
1111
# !!!!!!!!!!! #
1212

components/efuse/esp32c3/esp_efuse_table.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
##########################################################################
77
# *) The value MAX_BLK_LEN depends on CONFIG_EFUSE_MAX_BLK_LEN, will be replaced with "None" - 256. "3/4" - 192. "REPEAT" - 128.
88
# !!!!!!!!!!! #
9-
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse_common_table"
9+
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse-common-table"
1010
# this will generate new source files, next rebuild all the sources.
1111
# !!!!!!!!!!! #
1212

components/efuse/esp32h2/esp_efuse_table.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
##########################################################################
77
# *) The value MAX_BLK_LEN depends on CONFIG_EFUSE_MAX_BLK_LEN, will be replaced with "None" - 256. "3/4" - 192. "REPEAT" - 128.
88
# !!!!!!!!!!! #
9-
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse_common_table"
9+
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse-common-table"
1010
# this will generate new source files, next rebuild all the sources.
1111
# !!!!!!!!!!! #
1212

components/efuse/esp32s2/esp_efuse_table.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
##########################################################################
77
# *) The value MAX_BLK_LEN depends on CONFIG_EFUSE_MAX_BLK_LEN, will be replaced with "None" - 256. "3/4" - 192. "REPEAT" - 128.
88
# !!!!!!!!!!! #
9-
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse_common_table"
9+
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse-common-table"
1010
# this will generate new source files, next rebuild all the sources.
1111
# !!!!!!!!!!! #
1212

components/efuse/esp32s3/esp_efuse_table.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# | EFUSE_BLK10)| | | #
66
##########################################################################
77
# !!!!!!!!!!! #
8-
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse_common_table"
8+
# After editing this file, run the command manually "make efuse_common_table" or "idf.py efuse-common-table"
99
# this will generate new source files, next rebuild all the sources.
1010
# !!!!!!!!!!! #
1111

0 commit comments

Comments
 (0)