Browse Source

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 <anas.nashif@intel.com>
pull/47665/head
Anas Nashif 3 years ago committed by Carles Cufí
parent
commit
01582f80b7
  1. 2
      cmake/cfb.cmake
  2. 0
      scripts/build/gen_cfb_font_header.py
  3. 2
      scripts/requirements-extras.txt
  4. 6
      subsys/fb/README_fonts.txt

2
cmake/cfb.cmake

@ -12,7 +12,7 @@ function(generate_cfb_font @@ -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}

0
scripts/gen_cfb_font_header.py → scripts/build/gen_cfb_font_header.py

2
scripts/requirements-extras.txt

@ -15,7 +15,7 @@ clang-format>=1.12x @@ -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

6
subsys/fb/README_fonts.txt

@ -5,15 +5,15 @@ https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/Dr @@ -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

Loading…
Cancel
Save