It is a bit of a hack, but you can update BaseTools/Source/Python/build/BuildReport.py gLineMaxLength value to suppress the wrap. I set it to 240 and all the line wraps vanished for me.
## Tags for MaxLength of line in report gLineMaxLength = 120 It would also be a good idea to convert the hard coded 120 to gLineMaxLength ## # Writes a string to the file object. # # This function writes a string to the file object and a new line is appended # afterwards. It may optionally wraps the string for better readability. # # @File The file object to write # @String The string to be written to the file # @Wrapper Indicates whether to wrap the string # def FileWrite(File, String, Wrapper=False): if Wrapper: String = textwrap.fill(String, 120) File.write(String + "\r\n") Thanks, Andrew Fish On Dec 4, 2013, at 9:43 AM, Andrew Fish <af...@apple.com> wrote: > > On Dec 4, 2013, at 3:16 AM, Olivier Martin <olivier.mar...@arm.com> wrote: > >> FYI, I have a similar script in >> tianocore/ArmPlatformPkg/Scripts/Ds5/build_report.py. >> This python script uses the build report to access the PCDs. >> > > Thanks, this is helpful. > > Unfortunately the log file is very hard to parse as it word wraps data that > is long. It is more likely to happen when file names are involved. > > gEfiIntelFrameworkModulePkgTokenSpaceGuid > PcdIsaBusSerialUseHalfHandshake : FLAG (BOOLEAN) = 0 > > PcdShellFile : FIXED (VOID*) = { 0xB7, 0xD6, > 0x7A, 0xC5, 0x15, 0x05, 0xA8, 0x40, 0x9D, > 0x21, 0x55, 0x16, 0x52, 0x85, 0x4E, 0x37 } > PcdIsaBusSupportedFeatures : FIXED (UINT8) = 0x05 > > PcdPlatformBootTimeOut : DYN (UINT16) = 0xffff > > > Thanks, > > Andrew Fish > >> Example: >> build = build_report.BuildReport(report_log) >> build.PCDs['gArmTokenSpaceGuid']['PcdSecureFvSize'] >> >> >>> -----Original Message----- >>> From: Andrew Fish [mailto:af...@apple.com] >>> Sent: 04 December 2013 01:40 >>> To: edk2-devel@lists.sourceforge.net >>> Subject: Re: [edk2] Getting PCD values for tools that post process the >>> build. >>> >>> >>> On Dec 3, 2013, at 5:34 PM, Gao, Liming <liming....@intel.com> wrote: >>> >>>> Andrew: >>>> You mean Build Report file. Build command has -y REPORTFILE and -Y >>> REPORTTYPE option to generate build text report file. You can just >>> generate PCD report, then parse report file to get PCD value. The >>> command can be: build -y Pcd_Log.txt -Y PCD >>>> >>> >>> That is what I prototyped, a Python script to extract a PCD value from >>> the log file. I was thinking I might as well build the entire log file >>> and place it in a build products location as part of the build. >>> >>> Thanks, >>> >>> Andrew Fish >>> >>>> Thanks >>>> Liming >>>> -----Original Message----- >>>> From: Andrew Fish [mailto:af...@apple.com] >>>> Sent: Wednesday, December 04, 2013 3:19 AM >>>> To: edk2-devel@lists.sourceforge.net >>>> Subject: [edk2] Getting PCD values for tools that post process the >>> build. >>>> >>>> Is there a recommended solution to get PCD values for consumption in >>> a post build step? >>>> >>>> The only thing I could think of is to post process the build log? >>>> >>>> Thanks, >>>> >>>> Andrew Fish >>>> >>>> --------------------------------------------------------------------- >>> --------- >>>> Rapidly troubleshoot problems before they affect your business. Most >>> IT organizations don't have a clear picture of how application >>> performance affects their revenue. With AppDynamics, you get 100% >>> visibility into your Java,.NET, & PHP application. Start your 15-day >>> FREE TRIAL of AppDynamics Pro! >>>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.cl >>> ktrk >>>> _______________________________________________ >>>> edk2-devel mailing list >>>> edk2-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/edk2-devel >>>> >>>> --------------------------------------------------------------------- >>> --------- >>>> Sponsored by Intel(R) XDK >>>> Develop, test and display web and hybrid apps with a single code >>> base. >>>> Download it for free now! >>>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.c >>> lktrk >>>> _______________________________________________ >>>> edk2-devel mailing list >>>> edk2-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/edk2-devel >>> >>> >>> ----------------------------------------------------------------------- >>> ------- >>> Sponsored by Intel(R) XDK >>> Develop, test and display web and hybrid apps with a single code base. >>> Download it for free now! >>> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.c >>> lktrk >>> _______________________________________________ >>> edk2-devel mailing list >>> edk2-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/edk2-devel >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Sponsored by Intel(R) XDK >> Develop, test and display web and hybrid apps with a single code base. >> Download it for free now! >> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/edk2-devel > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel