From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: michael.d.kinney@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Thu, 15 Aug 2019 19:14:40 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2019 19:14:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,391,1559545200"; d="scan'208";a="201406939" Received: from unknown (HELO mdkinney-MOBL2.amr.corp.intel.com) ([10.241.98.74]) by fmsmga004.fm.intel.com with ESMTP; 15 Aug 2019 19:14:39 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Jordan Justen , Andrew Fish , Ray Ni Subject: [Patch V4 00/10] EmulatorPkg: Fix VS20xx IA32 boot and simplify build config Date: Thu, 15 Aug 2019 19:14:27 -0700 Message-Id: <20190816021437.7516-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 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 Michael D Kinney (10): 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 EmulatorPkg/Unix/Host: Disable inline/optimizations EmulatorPkg: Fix XCODE5 lldb issues EmulatorPkg/Unix/Host: Fix BerkeleyPacketFilter.c issues EmulatorPkg: Disable TftpDynamicCommand and LogoDxe for XCODE5 EmulatorPkg/Sec: Change local variable scope for XCODE5 BaseTools/tools_def.template: Add -gdwarf to XCODE5 X64 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 | 25 +--- 19 files changed, 227 insertions(+), 136 deletions(-) -- 2.21.0.windows.1