[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC PATCH 05/11] x86: Conditionalise the inclusion of Hygon/Centaur/Shanghai cpu/ files


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Wed, 26 Nov 2025 17:44:07 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=psHLu3+Kdil+NvAYCckUpgX64WyO4v7EIof+M6uimCI=; b=OXTjSRyxy8wyRE2Zdrh7lWduW7OcMsaijvqQj/4fnzZVNEpr4E1Jljyt2aM0hQgeZzHI9HaP+Nvpnrxp9o/eUNfhRAhZWJBjZ6p2c+KIOOVxmJPWCQeddIiqrI/Z0pzrGK08AeqaTKCfpB8mfdAqRxxW8xhnCj3Eo0KnpbiaMHXvtvzoq+lBxFL9Q7U8aFPbYlYDGS3Itaqi8SThvQtL72fUaqvKSCurWwyE6YLDCjs0syUAlxicVAExc//ec3j5lO6692lzlbFKD7psodjWrdHAZgIuRfaQzFlEE2abALgNbEpSRTDbpi9iHQu8Zp5ds0CYiAHEDEGo70R86CaX6w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kJLZ1rFwC04U+OMcjHWqgts49r92kgEjOd16llfWBCrC42nrt5PqTHHrFGAQsgajiKc2lwTx71N8BK9B8BI9oJpOS/YCk35V+stWHD1APXA3ZwYi2pnMSSUXrsqwGZaIxQWaToTYUqaTbbUn/VlWH5yJ+ZPKTVo56Uhg8DWzO6olSU/CH4Lxh2PH5mlXTIuuafL/UEHXNsUmUDs2Huj5aVCv8cb8E1x/OZVnQcNrg+CKjCLweKywmQBAE4AgmHqdTvvlHwoiwodI2M1ouie4cBhPxP4sBxuUWgFKLT1ZiMD4rwRktu0w5I+OZIXYoTdGxp3y+FghXuT6YKSOFbtc9A==
  • Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Xenia Ragiadakou <xenia.ragiadakou@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>
  • Delivery-date: Wed, 26 Nov 2025 16:45:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

x86_vendor_is() is doing the elimination now, so we can just drop them
when the Kconfig options aren't set.

Not a functional change.

Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
---
 xen/arch/x86/cpu/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xen/arch/x86/cpu/Makefile b/xen/arch/x86/cpu/Makefile
index 7cfe28b7ec..84b060aa41 100644
--- a/xen/arch/x86/cpu/Makefile
+++ b/xen/arch/x86/cpu/Makefile
@@ -3,13 +3,13 @@ obj-y += microcode/
 obj-y += mtrr/
 
 obj-y += amd.o
-obj-y += centaur.o
+obj-$(CONFIG_CENTAUR) += centaur.o
 obj-y += common.o
-obj-y += hygon.o
 obj-y += intel.o
+obj-$(CONFIG_HYGON) += hygon.o
 obj-y += intel_cacheinfo.o
 obj-$(CONFIG_INTEL) += mwait-idle.o
-obj-y += shanghai.o
+obj-$(CONFIG_SHANGHAI) += shanghai.o
 obj-y += vpmu.o
 obj-$(CONFIG_AMD) += vpmu_amd.o
 obj-$(CONFIG_INTEL) += vpmu_intel.o
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.