From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: chasel.chiu@intel.com) Received: from mga04.intel.com (mga04.intel.com []) by groups.io with SMTP; Mon, 03 Jun 2019 20:04:12 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jun 2019 20:04:12 -0700 X-ExtLoop1: 1 Received: from cchiu4-mobl1.gar.corp.intel.com ([10.5.240.40]) by orsmga007.jf.intel.com with ESMTP; 03 Jun 2019 20:04:10 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Michael Kubacki , Nate DeSimone , Liming Gao Subject: [PATCH 1/2] Platform/Intel: Switch to FSP Dispatch mode. Date: Tue, 4 Jun 2019 11:03:58 +0800 Message-Id: <20190604030359.4296-2-chasel.chiu@intel.com> X-Mailer: git-send-email 2.13.3.windows.1 In-Reply-To: <20190604030359.4296-1-chasel.chiu@intel.com> References: <20190604030359.4296-1-chasel.chiu@intel.com> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1874 Build configuration is updated to support different *FspBinPkg between FSP wrapper API and Dispatch modes. Default will be Dispatch mode and to build FSP wrapper for API mode: "py -2 build_bios.py --platform KabylakeRvp3 --fspapi" Cc: Michael Kubacki Cc: Nate DeSimone Cc: Liming Gao Signed-off-by: Chasel Chiu --- Platform/Intel/build_bios.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Platform/Intel/build_bios.py b/Platform/Intel/build_bios.py index 9f8d78f6e8..09eceddeff 100644 --- a/Platform/Intel/build_bios.py +++ b/Platform/Intel/build_bios.py @@ -125,6 +125,16 @@ def pre_build(build_config, build_type="DEBUG", silent=False, toolchain=None): config["BASE_TOOLS_PATH"] = config["EDK_TOOLS_PATH"] config["EDK_TOOLS_BIN"] = os.path.join(config["WORKSPACE"], config["EDK_TOOLS_BIN"]) + + # + # Board may have different FSP binary between API and Dispatch modes. + # In API mode if FSP_BIN_PKG_FOR_API_MODE is assigned, it should + # override FSP_BIN_PKG. + # + if config.get("API_MODE_FSP_WRAPPER_BUILD", "FALSE") == "TRUE": + if config.get("FSP_BIN_PKG_FOR_API_MODE") is not None: + config['FSP_BIN_PKG'] = config['FSP_BIN_PKG_FOR_API_MODE'] + config["PLATFORM_FSP_BIN_PACKAGE"] = \ os.path.join(config['WORKSPACE_FSP_BIN'], config['FSP_BIN_PKG']) config['PROJECT_DSC'] = os.path.join(config["WORKSPACE_PLATFORM"], -- 2.13.3.windows.1