Skip to content

Commit be52592

Browse files
hdlee27Kwang-Hui
authored andcommitted
tools:esp32: recommand 'fullclean' when user try to use 'clean'
(cherry-picked from commit 0c80791) Signed-off-by: Hyundo Lee <54927573+hdlee27@users.noreply.github.com>
1 parent ea568e2 commit be52592

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/esp32/build_esp32.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,14 @@ def copy_output():
121121

122122
build_cmd = "python " + os.path.join(BSP_PATH, "tools", "idf.py") + " " + MAKE_OPTION
123123

124-
subprocess.call(export_cmd + " && cd " + APP_PATH + " && " + build_cmd, shell=True)
124+
ret = subprocess.call(export_cmd + " && cd " + APP_PATH + " && " + build_cmd, shell=True)
125+
if "clean" in MAKE_OPTION.split(' '):
126+
print("\nTip : To remove all previous build information,")
127+
print(" 'fullclean' is recommended instead of 'clean'.")
128+
print(" For more information, run script with '--help' option.\n")
129+
if ret != 0:
130+
exit(1)
131+
125132

126133
if set(MAKE_OPTION.split()).intersection(OUTPUT_OPTION_ARRAY):
127134
copy_output()

0 commit comments

Comments
 (0)