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
-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}")