From cb400e762fbb78edc0ddf8e2fc9b4353cff7cefe Mon Sep 17 00:00:00 2001 From: nialnial Date: Sun, 11 Sep 2022 16:43:21 +0300 Subject: [PATCH] Fixed incorrect dtbfile-name if suffix_pos!=-1 --- LinuxBootImageGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LinuxBootImageGenerator.py b/LinuxBootImageGenerator.py index dd5bd68..3d1583d 100644 --- a/LinuxBootImageGenerator.py +++ b/LinuxBootImageGenerator.py @@ -606,7 +606,7 @@ def __compileDeviceTree(self,diagnosticOutput=True,searchPath =None): '.dts file is found in the top folder!') return None - outputfile = dts_file_name[:suffix_pos-3]+'.dtb' + outputfile = dts_file_name[:-4] + '.dtb' if not singleFile: # Check that the output file is not already available for file in os.listdir(searchPath):