chore(lvconf_gen): generate empty lv_conf.h if it doesn't exist (#8885)

This commit is contained in:
André Costa
2025-09-16 10:07:24 +02:00
committed by GitHub
parent 708d6daf86
commit 9f9394a9fa
6 changed files with 3 additions and 6 deletions
@@ -17,7 +17,6 @@ jobs:
- uses: actions/checkout@v5
- name: Generate lv_conf.h
run: |
cp lv_conf_template.h lv_conf.h
python ./scripts/generate_lv_conf.py \
--template lv_conf_template.h \
--config lv_conf.h \
-1
View File
@@ -17,7 +17,6 @@ jobs:
- uses: actions/checkout@v4
- name: Generate lv_conf.h
run: |
cp lv_conf_template.h lv_conf.h
python3 ./scripts/generate_lv_conf.py \
--template lv_conf_template.h \
--config lv_conf.h \
-1
View File
@@ -58,7 +58,6 @@ jobs:
fetch-depth: 0
- name: Generate lv_conf.h
run: |
cp lv_conf_template.h configs/ci/perf/lv_conf_perf.h
python scripts/generate_lv_conf.py \
--template lv_conf_template.h \
--config configs/ci/perf/lv_conf_perf.h \
-1
View File
@@ -30,7 +30,6 @@ cd ..
# Generate lv_conf
LV_CONF_PATH=`pwd`/lvgl/configs/ci/docs/lv_conf_docs.h
cp lvgl/lv_conf_template.h $LV_CONF_PATH
python ./lvgl/scripts/generate_lv_conf.py \
--template lvgl/lv_conf_template.h \
--config $LV_CONF_PATH \
+3 -1
View File
@@ -3,6 +3,7 @@
import os
import re
import argparse
from pathlib import Path
DIR_SCRIPTS = os.path.dirname(__file__)
REPO_ROOT = os.path.join(DIR_SCRIPTS, "..")
@@ -48,7 +49,8 @@ def get_args():
if not os.path.exists(args.template):
fatal(f"Template file not found at {args.template}")
if not os.path.exists(args.config):
fatal(f"User config file not found at {args.config}")
print(f"{args.config} not found. Generating it")
Path(args.config).touch()
if not os.path.exists(args.defaults):
fatal(f"User defaults not found at {args.defaults}")
-1
View File
@@ -162,7 +162,6 @@ def generate_config(config_name: str) -> None:
output_path = os.path.join(build_dir, "lv_conf.h")
generate_script = os.path.join(lvgl_root_dir, "scripts", "generate_lv_conf.py")
shutil.copy(template_path, output_path)
cmd = [
sys.executable,