mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] kernel: add option to select the zstd host tool
@ 2020-08-17  8:02 Philipp Zabel
  2020-08-21  6:54 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2020-08-17  8:02 UTC (permalink / raw)
  To: ptxdist

To build Zstandard compressed kernels, the zstd host tool is required.
Add a kernel option to select the host-zstd rule.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 platforms/kernel.in | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/platforms/kernel.in b/platforms/kernel.in
index 3c93d9a0e3d0..6f3e3c8cd81c 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -4,6 +4,7 @@ menuconfig KERNEL
 	bool
 	default y
 	select HOST_U_BOOT_TOOLS	if KERNEL_IMAGE_U || (KERNEL_IMAGE_SIMPLE && ARCH_MICROBLAZE)
+	select HOST_ZSTD		if KERNEL_ZSTD
 	select HOST_XZ			if KERNEL_XZ
 	select HOST_LZOP		if KERNEL_LZOP
 	select HOST_LZ4			if KERNEL_LZ4
@@ -151,6 +152,17 @@ config KERNEL_IMAGE
 	default "Image"   if KERNEL_IMAGE_RAW
 	default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}.elf" if KERNEL_IMAGE_SIMPLE
 
+config KERNEL_ZSTD
+	prompt "build zstd hosttool"
+	bool
+	help
+	  Select this if you're going to build your kernel compressed
+	  with zstd and your host system is lacking the proper tools
+	  (the "zstd" package).
+
+	  Select this if you're unsure, as it won't hurt. It just
+	  increases the build time.
+
 config KERNEL_XZ
 	prompt "build xz-utils hosttool"
 	bool
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-21  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17  8:02 [ptxdist] [PATCH] kernel: add option to select the zstd host tool Philipp Zabel
2020-08-21  6:54 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox