From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: michael.d.kinney@intel.com) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by groups.io with SMTP; Fri, 16 Aug 2019 17:57:19 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Aug 2019 17:57:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,395,1559545200"; d="scan'208";a="171574081" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.251.3.193]) by orsmga008.jf.intel.com with ESMTP; 16 Aug 2019 17:57:18 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Jordan Justen , Andrew Fish , Ray Ni Subject: [Patch V5 00/11] EmulatorPkg: Fix VS20xx IA32 boot and simplify build config Date: Fri, 16 Aug 2019 17:57:04 -0700 Message-Id: <20190817005715.9856-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit New in V5 ========= * Update author to be Andrew Fish for XCODE5 fixes * Split patch #7 into two patches * Break up long line in build.sh into multiple lines New in V4 (Resolve XCODE5 issues) ================================== * Disable inline if SecGdbScriptBreak() for XCODE5 issues * Disable XCODE5 compiler optimizations of Unix/Host * Fix Host output location for XCODE5 X64 builds * Update lldb scripts for XCODE5 symbiolic debugging * Clean up BrekelyPlacketFilter.c for uninitialized variable and old debug code. * Remove TftpDynamicCommand and LogoDxe modules from XCODE5 builds. These modules use HII section in a PE/COFF resource sections that is not currently supported by XCODE5 builds. * EmulatorPkg/Sec - Move declaration of PpiArray[10] to beginning of function so storage is for entire lifetime of the function. Delaractrion in the middle of the function in {} cause corruption and exceptions in XCODE5 builds. * Add -gdwarf flag to tols_def.template for XCODE5 X64 for symbolic debug. New in V3 ========== * Fix size value used in call to AsciiStrCpyS() in PosixFileSystem.c * Fix XCODE5 safe string function build failure in BerkleyPacketFilter.c * Add NOOPT build target to DSC file. New in V2 ========= * Fix size values in safe string function calls. * Update POSIX sources to use AsciiStrCpyS() and AsciiStrCatS(). * Verify that no exceptions occur if EMU_MAGIC_PAGE() can not be mapped. An error message is generated and the host app exits normally. * Update EmulatorPkg DEC file with a new PcdPeiServicesTablePage default value that works for Windows/POSIX hosts for both IA32 and X64. https://bugzilla.tianocore.org/show_bug.cgi?id=162 https://bugzilla.tianocore.org/show_bug.cgi?id=2055 https://bugzilla.tianocore.org/show_bug.cgi?id=2056 * Fix VS20xx IA32 boot failure * Remove UNIX_SEC_BUILD/WIN_SEC_BUILD * Add -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Jordan Justen Cc: Andrew Fish Cc: Ray Ni Signed-off-by: Michael D Kinney Andrew Fish (7): EmulatorPkg/Unix/Host: Disable inline/optimizations EmulatorPkg: Fix XCODE5 lldb issues EmulatorPkg/Unix/Host: Initialize field in BerkeleyPacketFilter.c EmulatorPkg/Unix/Host: Remove debug code from BerkeleyPacketFilter.c EmulatorPkg: Disable TftpDynamicCommand and LogoDxe for XCODE5 EmulatorPkg/Sec: Change scope of PpiArray[10] BaseTools/tools_def.template: Add -gdwarf to XCODE5 X64 Michael D Kinney (4): EmulatorPkg: Fix VS20xx IA32 boot failure EmulatorPkg: Remove UNIX_SEC_BUILD/WIN_SEC_BUILD EmulatorPkg: Add -D DISABLE_NEW_DEPRECATED_INTERFACES EmulatorPkg: Add support for NOOPT target BaseTools/Conf/tools_def.template | 4 +- EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.c | 9 +- EmulatorPkg/EmulatorPkg.dec | 4 +- EmulatorPkg/EmulatorPkg.dsc | 38 +++--- EmulatorPkg/EmulatorPkg.fdf | 4 + EmulatorPkg/FlashMapPei/FlashMapPei.c | 8 +- EmulatorPkg/Library/SmbiosLib/SmbiosLib.c | 4 +- .../ThunkProtocolList/ThunkProtocolList.c | 11 +- EmulatorPkg/Readme.md | 8 +- EmulatorPkg/Sec/Sec.c | 16 ++- EmulatorPkg/Unix/Host/BerkeleyPacketFilter.c | 15 +-- EmulatorPkg/Unix/Host/Host.c | 3 + EmulatorPkg/Unix/Host/Host.inf | 4 +- EmulatorPkg/Unix/Host/PosixFileSystem.c | 80 ++++++++---- EmulatorPkg/Unix/Host/X11GraphicsWindow.c | 4 +- EmulatorPkg/Unix/lldbefi.py | 8 +- EmulatorPkg/Win/Host/WinFileSystem.c | 116 ++++++++++++------ EmulatorPkg/Win/VS2017/BuildVS.bat | 2 +- EmulatorPkg/build.sh | 29 ++--- 19 files changed, 231 insertions(+), 136 deletions(-) -- 2.21.0.windows.1