From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mx.groups.io with SMTP id smtpd.web11.34220.1681664777112732441 for ; Sun, 16 Apr 2023 10:06:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bsdio.com header.s=fm1 header.b=JYZrvURk; spf=pass (domain: bsdio.com, ip: 66.111.4.29, mailfrom: rebecca@bsdio.com) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6FE8F5C03A9; Sun, 16 Apr 2023 13:06:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 16 Apr 2023 13:06:16 -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=1681664776; x= 1681751176; bh=LcjG7fmnSdHOouZ4v97tkGmjufbLHQZLXaYx9/rU+aU=; b=J YZrvURkxmoP/S4ZM7OIeUr9sHmhGRNU16/WJbXlQGFiCAHwvrzwMpK2nPAyxXMJ4 4M9ozaMNf3Zipwsp2i5LAffDTBVqvf6ipZFtgY+pKVOjpJr70MOAeUrxmau0sFbC CLXmY/WN3jcKQPDphhmhfLAcq2RjiHoW0flov0sT1M1O3i/ST9Wq9RNpuz6Qynsr dj+7+LXKiSOF1kVKUapH9Hflh20zH5NQ6/ww3sq89kzsjnpiO/OznZtq0bXhszYL zEInAnDuEaTwql/3JRxW5Hdwq2Cf6ojRK2pABsxueTrqQ+2ZpNyJ35D4lygYsD7e IekIZpYEK8qhy7dpjRzNQ== 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=1681664776; x= 1681751176; bh=LcjG7fmnSdHOouZ4v97tkGmjufbLHQZLXaYx9/rU+aU=; b=F CNTSaY++cwVx2U4efn1zSfn/HBO/q/IKu+wtoGGJAQDF63abvd/e3S/INUa1sL7C cIW8lNPCohNCdAOhU2d6bj9x6muD7xzNsBdtYp/RgHz6hxupaemL5LVwM4x1pyp/ OWk1yJVurhawbWi0lKwBuNELEGfuh9JDl+9qLa83PV/Vaz7FwLCrMFsjgFFyUhGd q41W9cihkZPZ0CIJpVHLXbBiHVEegaqy02Y/E7HCZ36ZIuol7S9tqrJ97wEYA9LL 5fzfRUY/uUFHQPSMHrLeFubQHpoFl+OIIJ3+t39+Cml+LRjQxOhITOY31uoaeshd bogJksyZ4FrH2JubjRPhw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelgedgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfgvsggv tggtrgcuvehrrghnuceorhgvsggvtggtrgessghsughiohdrtghomheqnecuggftrfgrth htvghrnhepgeffueeuledvgefgvddvgfetvdduhfefkedukeeikedtudekfeetteeifedv leefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprh gvsggvtggtrgessghsughiohdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 16 Apr 2023 13:06:14 -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 , 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?= Cc: Rebecca Cran Subject: [PATCH v3 11/13] BaseTools: Add a deprecation warning for GCC48,GCC49,GCC5 to build.py Date: Sun, 16 Apr 2023 11:05:30 -0600 Message-Id: <20230416170532.278338-12-rebecca@bsdio.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230416170532.278338-1-rebecca@bsdio.com> References: <20230416170532.278338-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