From c10f7f77b0ef45bc7fdc15240a741b7c499d88c6 Mon Sep 17 00:00:00 2001 From: Jeff Brasen Date: Fri, 7 Feb 2020 14:32:08 -0700 Subject: ArmPlatformPkg/Ds5: Increase path length to 400 Increase length of path that can be read from system from 200 to 400 to allow for longer build paths. Signed-off-by: Jeff Brasen Reviewed-by: Ard Biesheuvel --- ArmPlatformPkg/Scripts/Ds5/firmware_volume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ArmPlatformPkg') diff --git a/ArmPlatformPkg/Scripts/Ds5/firmware_volume.py b/ArmPlatformPkg/Scripts/Ds5/firmware_volume.py index 9c06835776..c6d1ca830a 100644 --- a/ArmPlatformPkg/Scripts/Ds5/firmware_volume.py +++ b/ArmPlatformPkg/Scripts/Ds5/firmware_volume.py @@ -81,7 +81,7 @@ class EfiSectionTE: filename = self.base_te + debug_rva + 0xc else: filename = self.base_te + debug_rva + 0x10 - filename = struct.unpack("200s", self.ec.getMemoryService().read(filename, 200, 32))[0] + filename = struct.unpack("400s", self.ec.getMemoryService().read(filename, 400, 32))[0] return filename[0:string.find(filename,'\0')] def get_debug_elfbase(self): @@ -119,7 +119,7 @@ class EfiSectionPE32: filename = self.base_pe32 + debug_rva + 0xc else: filename = self.base_pe32 + debug_rva + 0x10 - filename = struct.unpack("200s", self.ec.getMemoryService().read(str(filename), 200, 32))[0] + filename = struct.unpack("400s", self.ec.getMemoryService().read(str(filename), 400, 32))[0] return filename[0:string.find(filename,'\0')] def get_debug_elfbase(self): @@ -154,7 +154,7 @@ class EfiSectionPE64: filename = self.base_pe64 + debug_rva + 0xc else: filename = self.base_pe64 + debug_rva + 0x10 - filename = struct.unpack("200s", self.ec.getMemoryService().read(str(filename), 200, 32))[0] + filename = struct.unpack("400s", self.ec.getMemoryService().read(str(filename), 400, 32))[0] return filename[0:string.find(filename,'\0')] def get_debug_elfbase(self): -- cgit v1.2.3