summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/config/Config.in.tools9
-rw-r--r--target/linux/config/Config.in.compression18
2 files changed, 27 insertions, 0 deletions
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index 0f20f3afe..9433bfa89 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -191,6 +191,14 @@ config ADK_HOST_BUILD_GENEXT2FS
bool
default n
+config ADK_HOST_NEED_ZSTD
+ bool
+ default n
+
+config ADK_HOST_BUILD_ZSTD
+ bool
+ default n
+
config ADK_HOST_NEED_LZ4
bool
default n
@@ -315,6 +323,7 @@ config ADK_COMPRESSION_TOOL
default "gzip -n9" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_GZIP
default "bzip2" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_BZIP2
default "xz -v --check=crc32 --lzma2=dict=1MiB" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_XZ
+ default "zstd" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_ZSTD
default "lz4c -l" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_LZ4
default "lzma -9" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_LZMA
default "lzop" if ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_LZO
diff --git a/target/linux/config/Config.in.compression b/target/linux/config/Config.in.compression
index 2eeaab240..92eb58616 100644
--- a/target/linux/config/Config.in.compression
+++ b/target/linux/config/Config.in.compression
@@ -8,6 +8,10 @@ config ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_XZ
bool
select ADK_HOST_NEED_XZ
+config ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_ZSTD
+ bool
+ select ADK_HOST_NEED_ZSTD
+
config ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_LZ4
bool
select ADK_HOST_NEED_LZ4
@@ -57,6 +61,12 @@ config ADK_LINUX_KERNEL_RD_LZO
config ADK_LINUX_KERNEL_KERNEL_LZO
bool
+config ADK_LINUX_KERNEL_RD_ZSTD
+ bool
+
+config ADK_LINUX_KERNEL_KERNEL_ZSTD
+ bool
+
config ADK_LINUX_KERNEL_RD_XZ
bool
@@ -84,6 +94,14 @@ config ADK_LINUX_KERNEL_COMP_XZ
depends on ADK_TARGET_KERNEL_WITH_COMPRESSION \
|| ADK_TARGET_GENERIC
+config ADK_LINUX_KERNEL_COMP_ZSTD
+ bool "use Zstandard compression"
+ select ADK_LINUX_KERNEL_RD_ZSTD
+ select ADK_LINUX_KERNEL_KERNEL_ZSTD
+ select ADK_LINUX_KERNEL_INITRAMFS_COMPRESSION_ZSTD
+ depends on ADK_TARGET_KERNEL_WITH_COMPRESSION \
+ || ADK_TARGET_GENERIC
+
config ADK_LINUX_KERNEL_COMP_LZ4
bool "use LZ4 compression"
select ADK_LINUX_KERNEL_RD_LZ4