[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 3/5] earlycpio: lib-ify earlycpio.c
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Tue, 20 Jan 2026 10:38:48 +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=FrP7eMzlU98UJI3/6mC+q5/l7owwMFeEcveAnyG5A9g=; b=lZd/WlmmsF5pZff4PJ5BIqGqnTCKLth5S12og3oMn5H6w43W6OU86p7twMZDspkLayVLoKscIKIj4/V7AVJvsgatao34WfDLy0GCNkAzXqe0RbIaJthkB6hyMNy2Acf0YL1H8zrclEcirWw4oMGMRY08adGPM9H8LJ0sgQd0WdU175mYyWNHWkhriVlMXkNK81P0I23IP8Qwoyb15fNgll5HmMFzMxxDeSmWJfaozioLkpQ0fLnMiwz71KsClQLiIK22zhEGcmgcs80k4VeiK6Ugi4jIcmEi7Pc+lQZGrs3LjhJlwdvB7Im3LgCn9jSBudsN66PplbrJMqWVmICwyQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HVMs8HfaZ99SakjTfkmAlts9+k93IpFM+h6bV07kMMGcqHoTK5p0T348/2Q4xjF+FzjtaCNm1z7oLUboua4lovxnONm+Vwsc/f/dZ1bJm4eQh2EjDwaEYW6PX1U1ifBWWQXXBxdEkqisxM6h0z//CIN2mGYluCS5NPyA+Od6cuuoGNYDrRZeNFa3DEhX9i8AAsDgXtpHJM6hnHLdIoUiRxzq79HgncrU7JD+p4pCZxd5N4XzD96sN3L4ZVgh/pUK2FfWqVRpxIKavlvQqUDsLyKmEPUbD/BNn5nD0mpGcnIbUZaeTubPqZ0Hn8ZKjmYSorxz6joqTqPCZzJtzDFaXA==
- Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Tue, 20 Jan 2026 09:39:44 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
It's only used for microcode loading on x86. By lib-ifying it we can make
it go away automatically when microcode loading becomes an optional
feature in follow-up patches.
Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
---
v4:
* Makes the lib-y target init-only
---
xen/common/Makefile | 2 +-
xen/lib/Makefile | 1 +
xen/{common => lib}/earlycpio.c | 0
3 files changed, 2 insertions(+), 1 deletion(-)
rename xen/{common => lib}/earlycpio.c (100%)
diff --git a/xen/common/Makefile b/xen/common/Makefile
index 92c97d641e..4fc0c15088 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -65,7 +65,7 @@ obj-y += wait.o
obj-bin-y += warning.init.o
obj-y += xmalloc_tlsf.o
-obj-bin-$(CONFIG_X86) += $(foreach n,decompress bunzip2 unxz unlzma lzo unlzo
unlz4 unzstd earlycpio,$(n).init.o)
+obj-bin-$(CONFIG_X86) += $(foreach n,decompress bunzip2 unxz unlzma lzo unlzo
unlz4 unzstd,$(n).init.o)
obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o memory.o multicall.o
xlat.o)
diff --git a/xen/lib/Makefile b/xen/lib/Makefile
index efca830d92..3b0137902c 100644
--- a/xen/lib/Makefile
+++ b/xen/lib/Makefile
@@ -3,6 +3,7 @@ obj-$(CONFIG_X86) += x86/
lib-y += bsearch.o
lib-y += ctors.o
lib-y += ctype.o
+lib-y += earlycpio.init.o
lib-y += find-next-bit.o
lib-y += generic-ffsl.o
lib-y += generic-flsl.o
diff --git a/xen/common/earlycpio.c b/xen/lib/earlycpio.c
similarity index 100%
rename from xen/common/earlycpio.c
rename to xen/lib/earlycpio.c
--
2.43.0
|