From nobody Sat Feb 7 06:55:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+103251+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+103251+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1681934331; cv=none; d=zohomail.com; s=zohoarc; b=PZcvJj23dfRwUU90PvANOgR50Ca5lMqz5RqfCLl30eEoXfpqM3AFnR5b23Pyd3gNIEjTAC9hjFFkbTZ2wRrf37PFNX1wBGc831PDC96GNy5wALfWLWCLsrwa9/QvuS8l6nI5/96aafuVopsVjqcnqAPxtQXj+1F0ntXBbt7UyGQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681934331; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=i8XYKkbfaa4a/qajtYHDtEFYr2yBaCHYztCt/ONm1so=; b=O/Bx5AWTBf9oVUhErvrTEWE6/aZudecV0DOaB2oGDif3Fg6TC5M2Ywbh9hFV42l/yuOL13V4awiQyY8srLXV7aHBjuoOWeupf9A/i5DC9SyedeenJEQODx7AA7Wipguh9Z0NYGKzDD40BSrtN+KYx+VEWa1f1pEZO9ZMhcmayfs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+103251+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1681934331811741.8280381816592; Wed, 19 Apr 2023 12:58:51 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id zNcCYY1788612xbvsZHBPV7d; Wed, 19 Apr 2023 12:58:51 -0700 X-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 X-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) X-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 19 Apr 2023 15:58:50 -0400 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 X-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: [edk2-devel] [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> In-Reply-To: <20230419195746.99074-1-rebecca@bsdio.com> References: <20230419195746.99074-1-rebecca@bsdio.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@bsdio.com X-Gm-Message-State: 18tWrnHugIJFOQn6Ak4b7a5bx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1681934331; bh=ft8HGcxUVmfRKtuXcRCMW6/t/OSlP/0+bkVQr7MeKc0=; h=Cc:Date:From:Reply-To:Subject:To; b=vn0Agl/4bSmXj9QCoeL1YFr4NHeLboLu5dLqE1ij4TpV5FBs5ngXsw8xKFGREJdepmx Rt7Z/Jr/gHrjCwSMAfgCRAqrk+byMFZR8vsz/Kb6y9C81+gYVYORHNSnnW/0k+qJSmw0x N/TmsA4RSaW1O2ZQO1YaxQJsUw+l2FzODZI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1681934332058100001 Content-Type: text/plain; charset="utf-8" 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/Pyth= on/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 =20 +gDeprecatedToolChains =3D ['GCC48', 'GCC49', 'GCC5'] + ## standard targets of build command gSupportedTarget =3D ['all', 'genc', 'genmake', 'modules', 'libraries', 'f= ds', 'clean', 'cleanall', 'cleanlib', 'run'] =20 @@ -898,6 +900,12 @@ class Build(): for BuildTarget in self.BuildTargetList: GlobalData.gGlobalDefines['TARGET'] =3D BuildTarget for BuildToolChain in self.ToolChainList: + if BuildToolChain in gDeprecatedToolChains: + EdkLogger.warn("build", "Toolchain " + BuildToolChain = + \ + " is deprecated and will be removed before the edk= 2-stable202402 release. " \ + "You should use 'GCCNOLTO' instead of 'GCC49', and= 'GCC' instead of 'GCC5'") + time.sleep(2) + GlobalData.gGlobalDefines['TOOLCHAIN'] =3D BuildToolC= hain GlobalData.gGlobalDefines['TOOL_CHAIN_TAG'] =3D BuildToolC= hain for BuildArch in self.ArchList: @@ -2768,6 +2776,12 @@ def Main(): if not BuildError: MyBuild.BuildReport.GenerateReport(BuildDurationStr, LogBuildT= ime(MyBuild.AutoGenTime), LogBuildTime(MyBuild.MakeTime), LogBuildTime(MyBu= ild.GenFdsTime)) =20 + 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 r= elease. " \ + "You should use 'GCCNOLTO' instead of 'GCC49', and 'GCC' inste= ad 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", ti= me.localtime())) --=20 2.37.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#103251): https://edk2.groups.io/g/devel/message/103251 Mute This Topic: https://groups.io/mt/98375164/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-