Skip to content

Commit

Permalink
dt_makefile_patcher: fix dtbs with dot in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored and rpardini committed Sep 9, 2024
1 parent 72ba1de commit 5e8f425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tools/common/dt_makefile_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e8f425

Please sign in to comment.