From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com []) by mx.groups.io with SMTP id smtpd.web11.10079.1603703131777658711 for ; Mon, 26 Oct 2020 02:05:35 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: zhichao.gao@intel.com) IronPort-SDR: xKLdXQxNUHHB986a1LGV8DxYhaszU796D9ZS9asdbfhV3KPg47lN0c1hSbjOJd/GUZUUJ2MNox 42d5K+XeVjmA== X-IronPort-AV: E=McAfee;i="6000,8403,9785"; a="252595218" X-IronPort-AV: E=Sophos;i="5.77,417,1596524400"; d="scan'208";a="252595218" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2020 02:05:35 -0700 IronPort-SDR: Pia7WHktKMKbF8zPWUnMpTXroBJJ8wrIaTGss+p0geo+/FEL0ydsQinHYY6hF5Fz98f22OJQ/F +wuvzXRZ0m0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,417,1596524400"; d="scan'208";a="350038502" Received: from fieedk001.ccr.corp.intel.com ([10.239.153.118]) by fmsmga004.fm.intel.com with ESMTP; 26 Oct 2020 02:05:33 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Maciej Rabeda , Jiaxin Wu , Siyuan Fu Subject: [PATCH 2/5] NetworkPkg: Enable MD5 while enable iSCSI Date: Mon, 26 Oct 2020 17:03:40 +0800 Message-Id: <20201026090343.13048-3-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20201026090343.13048-1-zhichao.gao@intel.com> References: <20201026090343.13048-1-zhichao.gao@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3003 There is a plan to make MD5 disable as default. The new MACRO ENABLE_MD5_DEPRECATED_INTERFACES would be introduced to enable MD5. Make the definition ahead of the change to avoid build error after the MACRO changed. Cc: Maciej Rabeda Cc: Jiaxin Wu Cc: Siyuan Fu Signed-off-by: Zhichao Gao --- NetworkPkg/Network.dsc.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NetworkPkg/Network.dsc.inc b/NetworkPkg/Network.dsc.inc index 16f090a187..b761df900b 100644 --- a/NetworkPkg/Network.dsc.inc +++ b/NetworkPkg/Network.dsc.inc @@ -30,6 +30,11 @@ [LibraryClasses] !include NetworkPkg/NetworkLibs.dsc.inc +[BuildOptions] +!if $(NETWORK_ISCSI_ENABLE) == TRUE + *_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES +!endif + !if $(PLATFORMX64_ENABLE) == TRUE [Components.X64] !include NetworkPkg/NetworkComponents.dsc.inc -- 2.21.0.windows.1