mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-26 02:37:01 +08:00
chore(lvconf_gen): generate empty lv_conf.h if it doesn't exist (#8885)
This commit is contained in:
@@ -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,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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user