From 09b4becaee8a373217aeb73941cd88290ab9520b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 11 Jul 2022 10:55:13 -0400 Subject: [PATCH] scripts: move gen_image_info.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 --- CMakeLists.txt | 2 +- CODEOWNERS | 2 +- scripts/{ => build}/gen_image_info.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename scripts/{ => build}/gen_image_info.py (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8260fd18356c76..8c12d77ea8aae0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1705,7 +1705,7 @@ endif() if(CONFIG_BUILD_OUTPUT_INFO_HEADER) list(APPEND post_build_commands - COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/gen_image_info.py + COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/gen_image_info.py --elf-file=${KERNEL_ELF_NAME} --header-file=${PROJECT_BINARY_DIR}/include/public/zephyr_image_info.h $<$:--adjusted-lma=${adjustment}> diff --git a/CODEOWNERS b/CODEOWNERS index 98041b2a0c57db..13033e225d0806 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -694,7 +694,7 @@ /scripts/pylib/twister/expr_parser.py @nashif /scripts/schemas/twister/ @nashif /scripts/build/gen_app_partitions.py @dcpleung @nashif -scripts/gen_image_info.py @tejlmand +scripts/build/gen_image_info.py @tejlmand /scripts/get_maintainer.py @nashif /scripts/dts/ @mbolivar-nordic @galak /scripts/release/ @nashif diff --git a/scripts/gen_image_info.py b/scripts/build/gen_image_info.py similarity index 100% rename from scripts/gen_image_info.py rename to scripts/build/gen_image_info.py