From 24be1319890b01ba0033c65fa6d27b81d652f4e8 Mon Sep 17 00:00:00 2001 From: amazingfate Date: Mon, 9 Sep 2024 16:28:28 +0800 Subject: [PATCH] dt_makefile_patcher: fix dtbs with dot in filename --- lib/tools/common/dt_makefile_patcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tools/common/dt_makefile_patcher.py b/lib/tools/common/dt_makefile_patcher.py index 6763885051..8ae11bddd7 100644 --- a/lib/tools/common/dt_makefile_patcher.py +++ b/lib/tools/common/dt_makefile_patcher.py @@ -80,7 +80,7 @@ def auto_patch_dt_makefile(git_work_dir: str, dt_rel_dir: str, config_var: str, # Parse it into a list of lines makefile_lines = makefile_contents.splitlines() log.info(f"Read {len(makefile_lines)} lines from {makefile_path}") - regex_dtb = r"(.*)\s(([a-zA-Z0-9-_]+)\.dtb)(.*)" + regex_dtb = r"(.*)\s(([^ \f\n\r\t\v]+)\.dtb)(.*)" regex_configopt = r"^dtb-\$\(([a-zA-Z0-9_]+)\)\s+" # For each line, check if it matches the regex_dtb, extract the groups