From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mx.groups.io with SMTP id smtpd.web10.48523.1681934330929348154 for ; Wed, 19 Apr 2023 12:58:50 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bsdio.com header.s=fm1 header.b=RNqI/5Fv; spf=pass (domain: bsdio.com, ip: 64.147.123.19, mailfrom: rebecca@bsdio.com) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id C26C03200976; Wed, 19 Apr 2023 15:58:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 19 Apr 2023 15:58:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdio.com; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1681934328; x= 1682020728; bh=LcjG7fmnSdHOouZ4v97tkGmjufbLHQZLXaYx9/rU+aU=; b=R NqI/5Fv8NAPEyExwuFecF0aj7KbgsxC5bKnoGhUb+KspczVAobnWjrXRFNuwQh22 doMEALPQaLp1yoQuA0zoLn6QCuF5TOTDlCVSQTE959M6xDR3vADf3QDXWbEr5lR6 KJENTncIyg3JFzgy9trUz9ucL3C0yuPmy/87h7yp38xzPZGX9JEZIJScq+iyetXg xn63bYJBBhmMWxfDQ49qK/AhJvj9lSPRyWde3jJMkZ50qr1QDKuW/14ddcaZba7P +8n+XaF1+oaRd0NiJ8P7/XTXCELEFBYC9aat98Uz+sAegB3nwAB+UHKDsnCbCpMU uyhPulqwjsmxfPnDPSlwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681934328; x= 1682020728; bh=LcjG7fmnSdHOouZ4v97tkGmjufbLHQZLXaYx9/rU+aU=; b=Y P1doMX4t69wIXtJa36EQQF1zgoJeAKJ5fcvdcHB4AdhCCy1mxZ+rzliaqeuHDkv8 Y+rxxZBo4YfGHExkP91vykQ2dhFdRmUmUI10VfPVbh4+h0gYls0VEFyENxPP+7kd HnxskjKe5mbbeWzN+0ZoBI/9ZT53asbQuPjqhqRDNEytlEi80bZjT+STe7i+FWGr Ya9tmocNCO6dkSg6wdZxE9HleV5zeg5tD/XJiTXre8FGaZ55WIjCAlCbIYIVg0Ie glhUjvuQqSqtUmbEOUmWa3ru1PpDAuRd7G0fPcnrJywKZP1cwqgEj4Vgde0JFbh+ Qnyhwz8rWu+7vzVujQfyg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedttddgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeftvggs vggttggrucevrhgrnhcuoehrvggsvggttggrsegsshguihhordgtohhmqeenucggtffrrg htthgvrhhnpeegffeuueelvdeggfdvvdfgtedvudfhfeekudekieektddukeefteetieef vdelfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrvggsvggttggrsegsshguihhordgtohhm X-ME-Proxy: Feedback-ID: i5b994698:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Apr 2023 15:58:46 -0400 (EDT) From: "Rebecca Cran" To: devel@edk2.groups.io, Liming Gao , Bob Feng , Yuwei Chen , Michael D Kinney , Michael Kubacki , Sean Brogan , Chasel Chiu , Nate DeSimone , Star Zeng , Andrew Fish Cc: Rebecca Cran , Ray Ni , Leif Lindholm , Zhiguang Liu , Jian J Wang , Xiaoyu Lu , Guomin Jiang , Gua Guo , Ard Biesheuvel , Pedro Falcato , Gerd Hoffmann , =?UTF-8?q?Marvin=20H=C3=A4user?= Subject: [PATCH v4 11/13] BaseTools: Add a deprecation warning for GCC48,GCC49,GCC5 to build.py Date: Wed, 19 Apr 2023 13:57:44 -0600 Message-Id: <20230419195746.99074-12-rebecca@bsdio.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230419195746.99074-1-rebecca@bsdio.com> References: <20230419195746.99074-1-rebecca@bsdio.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The GCC48, GCC49 and GCC5 toolchains will be deleted in the coming months. Inform users that they're deprecated and tell them what replaces them. Signed-off-by: Rebecca Cran --- BaseTools/Source/Python/build/build.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 8681b98776a9..61f66e7b04d7 100755 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -64,6 +64,8 @@ from AutoGen.IncludesAutoGen import IncludesAutoGen from GenFds.GenFds import resetFdsGlobalVariable from AutoGen.AutoGen import CalculatePriorityValue +gDeprecatedToolChains = ['GCC48', 'GCC49', 'GCC5'] + ## standard targets of build command gSupportedTarget = ['all', 'genc', 'genmake', 'modules', 'libraries', 'fds', 'clean', 'cleanall', 'cleanlib', 'run'] @@ -898,6 +900,12 @@ class Build(): for BuildTarget in self.BuildTargetList: GlobalData.gGlobalDefines['TARGET'] = BuildTarget for BuildToolChain in self.ToolChainList: + if BuildToolChain in gDeprecatedToolChains: + EdkLogger.warn("build", "Toolchain " + BuildToolChain + \ + " is deprecated and will be removed before the edk2-stable202402 release. " \ + "You should use 'GCCNOLTO' instead of 'GCC49', and 'GCC' instead of 'GCC5'") + time.sleep(2) + GlobalData.gGlobalDefines['TOOLCHAIN'] = BuildToolChain GlobalData.gGlobalDefines['TOOL_CHAIN_TAG'] = BuildToolChain for BuildArch in self.ArchList: @@ -2768,6 +2776,12 @@ def Main(): if not BuildError: MyBuild.BuildReport.GenerateReport(BuildDurationStr, LogBuildTime(MyBuild.AutoGenTime), LogBuildTime(MyBuild.MakeTime), LogBuildTime(MyBuild.GenFdsTime)) + if any(tc in Option.ToolChain for tc in gDeprecatedToolChains): + EdkLogger.warn("build", "Toolchains " + str(gDeprecatedToolChains) + " are " \ + "deprecated and will be removed before the edk2-stable202402 release. " \ + "You should use 'GCCNOLTO' instead of 'GCC49', and 'GCC' instead of 'GCC5'.") + time.sleep(2) + EdkLogger.SetLevel(EdkLogger.QUIET) EdkLogger.quiet("\n- %s -" % Conclusion) EdkLogger.quiet(time.strftime("Build end time: %H:%M:%S, %b.%d %Y", time.localtime())) -- 2.37.2