Created
August 25, 2020 15:59
-
-
Save luca020400/cec24842bce05d7f92397572f4be341e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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