From 01582f80b749948e99ce68629f6a1a06edc842e2 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 11 Jul 2022 10:59:14 -0400 Subject: [PATCH] scripts: move gen_cfb_font_header.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 --- cmake/cfb.cmake | 2 +- scripts/{ => build}/gen_cfb_font_header.py | 0 scripts/requirements-extras.txt | 2 +- subsys/fb/README_fonts.txt | 6 +++--- 4 files changed, 5 insertions(+), 5 deletions(-) rename scripts/{ => build}/gen_cfb_font_header.py (100%) diff --git a/cmake/cfb.cmake b/cmake/cfb.cmake index 7b5ee61161..cfd86acee0 100644 --- a/cmake/cfb.cmake +++ b/cmake/cfb.cmake @@ -12,7 +12,7 @@ function(generate_cfb_font OUTPUT ${output_file} COMMAND ${PYTHON_EXECUTABLE} - ${ZEPHYR_BASE}/scripts/gen_cfb_font_header.py + ${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py --zephyr-base ${ZEPHYR_BASE} --input ${input_file} --output ${output_file} diff --git a/scripts/gen_cfb_font_header.py b/scripts/build/gen_cfb_font_header.py similarity index 100% rename from scripts/gen_cfb_font_header.py rename to scripts/build/gen_cfb_font_header.py diff --git a/scripts/requirements-extras.txt b/scripts/requirements-extras.txt index 62bb2b98c5..e2beebc6be 100644 --- a/scripts/requirements-extras.txt +++ b/scripts/requirements-extras.txt @@ -15,7 +15,7 @@ clang-format>=1.12x # Script used to build firmware images for NXP LPC MCUs. lpc_checksum -# used by scripts/gen_cfb_font_header.py - helper script for user +# used by scripts/build/gen_cfb_font_header.py - helper script for user Pillow # can be used to sign a Zephyr application binary for consumption by a bootloader diff --git a/subsys/fb/README_fonts.txt b/subsys/fb/README_fonts.txt index 9d33b6eab1..f12026f1da 100644 --- a/subsys/fb/README_fonts.txt +++ b/subsys/fb/README_fonts.txt @@ -5,15 +5,15 @@ https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/Dr To reproduce the font bitmaps use these commands: -${ZEPHYR_BASE}/scripts/gen_cfb_font_header.py \ +${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py \ -i DroidSansMono.ttf \ -x 10 -y 16 -s 14 --center-x \ -o cfbv_1016 -${ZEPHYR_BASE}/scripts/gen_cfb_font_header.py \ +${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py \ -i DroidSansMono.ttf \ -x 15 -y 24 -s 22 --center-x --y-offset -2 \ -o cfbv_1524 -${ZEPHYR_BASE}/scripts/gen_cfb_font_header.py \ +${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py \ -i DroidSansMono.ttf \ -x 20 -y 32 -s 30 --center-x --y-offset -3 \ -o cfbv_2032