Skip to content

Instantly share code, notes, and snippets.

@luca020400
Created August 25, 2020 15:59
Show Gist options
  • Save luca020400/cec24842bce05d7f92397572f4be341e to your computer and use it in GitHub Desktop.
Save luca020400/cec24842bce05d7f92397572f4be341e to your computer and use it in GitHub Desktop.
diff --git a/utils/src/mkdtboimg.py b/utils/src/mkdtboimg.py
index 5f1b607..ebfd82d 100755
--- a/utils/src/mkdtboimg.py
+++ b/utils/src/mkdtboimg.py
@@ -899,7 +899,7 @@ def create_dtbo_image_from_config(fout, argv):
for dt_arg in dt_args:
filepath = None
for root, dirnames, filenames in os.walk(args.dtbdir):
- for filename in fnmatch.filter(filenames, dt_arg['filename']):
+ for filename in fnmatch.filter(filenames, os.path.basename(dt_arg['filename'])):
filepath = os.path.join(root, filename)
params['dt_file'] = open(filepath, 'rb')
params['dt_offset'] = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment