* xz needs crc32 instead of crc64 for the kernel cpio.
* Set zstd compression level to the same as for the kernel (19).
* Use multithreading for zstd (deterministic, afaiu).

Actively decided against -T0 for xz, as compression
is not deterministic when number of threads varies.

Signed-off-by: Christian Melki <[email protected]>
---
 rules/image-root-cpio.make | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rules/image-root-cpio.make b/rules/image-root-cpio.make
index fdb0ccfff..eb09dd53e 100644
--- a/rules/image-root-cpio.make
+++ b/rules/image-root-cpio.make
@@ -26,6 +26,9 @@ IMAGE_ROOT_CPIO_CONFIG        := cpio.config
 
 IMAGE_ROOT_CPIO_ENV := \
        FORMAT="newc" \
+       ZSTD_CLEVEL="19" \
+       ZSTD_NBTHREADS="0" \
+       XZ_OPT="--check=crc32" \
        COMPRESS=$(call remove_quotes, 
$(PTXCONF_IMAGE_ROOT_CPIO_COMPRESSION_UTIL))
 
 ifdef PTXCONF_IMAGE_ROOT_CPIO
-- 
2.30.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to