virt: coco: Add a coco/Makefile and coco/Kconfig

ANBZ: #20392

commit ec51ffcf26 upstream.

In preparation for adding another coco build target, relieve
drivers/virt/Makefile of the responsibility to track new compilation
unit additions to drivers/virt/coco/, and do the same for
drivers/virt/Kconfig.

Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Tested-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Zelin Deng <zelin.deng@linux.alibaba.com>
Acked-by: Xuchun Shang <xuchun.shang@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5060
This commit is contained in:
Dan Williams 2025-04-11 06:24:15 -04:00 committed by 小龙
parent 798186dd41
commit 3e4d6fc742
4 changed files with 18 additions and 8 deletions

View File

@ -35,10 +35,6 @@ source "drivers/virt/vboxguest/Kconfig"
source "drivers/virt/nitro_enclaves/Kconfig"
source "drivers/virt/coco/efi_secret/Kconfig"
source "drivers/virt/coco/tdx-guest/Kconfig"
source "drivers/virt/coco/csv-guest/Kconfig"
source "drivers/virt/coco/Kconfig"
endif

View File

@ -7,6 +7,4 @@ obj-$(CONFIG_FSL_HV_MANAGER) += fsl_hypervisor.o
obj-y += vboxguest/
obj-$(CONFIG_NITRO_ENCLAVES) += nitro_enclaves/
obj-$(CONFIG_EFI_SECRET) += coco/efi_secret/
obj-$(CONFIG_INTEL_TDX_GUEST) += coco/tdx-guest/
obj-$(CONFIG_CSV_GUEST) += coco/csv-guest/
obj-y += coco/

View File

@ -0,0 +1,9 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Confidential computing related collateral
#
source "drivers/virt/coco/efi_secret/Kconfig"
source "drivers/virt/coco/csv-guest/Kconfig"
source "drivers/virt/coco/tdx-guest/Kconfig"

View File

@ -0,0 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Confidential computing related collateral
#
obj-$(CONFIG_EFI_SECRET) += efi_secret/
obj-$(CONFIG_SEV_GUEST) += csv-guest/
obj-$(CONFIG_INTEL_TDX_GUEST) += tdx-guest/