[PATCH v3 8/9] coco/tdx-host: Rename tdx-host.c to main.c

From: Lu Baolu

Date: Thu Nov 12 2026 - 00:01:53 EST


The tdx-host driver is about to gain more source files. Rename
tdx-host.c to main.c and build the tdx-host module from it, so the
following changes can add objects to the module without renaming the
main file at the same time.

No functional change.

Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
---
drivers/virt/coco/tdx-host/Makefile | 2 ++
drivers/virt/coco/tdx-host/{tdx-host.c => main.c} | 0
2 files changed, 2 insertions(+)
rename drivers/virt/coco/tdx-host/{tdx-host.c => main.c} (100%)

diff --git a/drivers/virt/coco/tdx-host/Makefile b/drivers/virt/coco/tdx-host/Makefile
index e61e749a8dff..a90ffba13a49 100644
--- a/drivers/virt/coco/tdx-host/Makefile
+++ b/drivers/virt/coco/tdx-host/Makefile
@@ -1 +1,3 @@
obj-$(CONFIG_TDX_HOST_SERVICES) += tdx-host.o
+
+tdx-host-y := main.o
diff --git a/drivers/virt/coco/tdx-host/tdx-host.c b/drivers/virt/coco/tdx-host/main.c
similarity index 100%
rename from drivers/virt/coco/tdx-host/tdx-host.c
rename to drivers/virt/coco/tdx-host/main.c
--
2.43.0