From 4f65bf6412449b20f5c38583311cbdccfbaeb36c Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 11 Jul 2022 10:54:06 -0400 Subject: [PATCH] scripts: move gen_strerror_table.py to scripts/build Move scripts needed by the build system and not designed to be run individually or standalone into the build subfolder. Signed-off-by: Anas Nashif --- lib/libc/minimal/CMakeLists.txt | 2 +- lib/libc/minimal/source/string/strerror.c | 2 +- scripts/{ => build}/gen_strerror_table.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename scripts/{ => build}/gen_strerror_table.py (100%) diff --git a/lib/libc/minimal/CMakeLists.txt b/lib/libc/minimal/CMakeLists.txt index 6d857fe972c..a13ecbacd25 100644 --- a/lib/libc/minimal/CMakeLists.txt +++ b/lib/libc/minimal/CMakeLists.txt @@ -42,7 +42,7 @@ add_custom_command( OUTPUT ${STRERROR_TABLE_H} COMMAND ${PYTHON_EXECUTABLE} - ${ZEPHYR_BASE}/scripts/gen_strerror_table.py + ${ZEPHYR_BASE}/scripts/build/gen_strerror_table.py -i include/errno.h -o ${STRERROR_TABLE_H} DEPENDS include/errno.h diff --git a/lib/libc/minimal/source/string/strerror.c b/lib/libc/minimal/source/string/strerror.c index ae2c02f3092..624e8922b7f 100644 --- a/lib/libc/minimal/source/string/strerror.c +++ b/lib/libc/minimal/source/string/strerror.c @@ -10,7 +10,7 @@ #include /* - * See scripts/gen_strerror_table.py + * See scripts/build/gen_strerror_table.py * * #define sys_nerr N * const char *const sys_errlist[sys_nerr]; diff --git a/scripts/gen_strerror_table.py b/scripts/build/gen_strerror_table.py similarity index 100% rename from scripts/gen_strerror_table.py rename to scripts/build/gen_strerror_table.py