summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/config/Config.in.kernel18
-rw-r--r--target/linux/patches/3.15.2/lz4.patch16
2 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/config/Config.in.kernel b/target/linux/config/Config.in.kernel
index 1999b2055..348498936 100644
--- a/target/linux/config/Config.in.kernel
+++ b/target/linux/config/Config.in.kernel
@@ -17,6 +17,10 @@ config ADK_KERNEL_INITRAMFS_COMPRESSION_XZ
select ADK_HOST_NEED_XZ
boolean
+config ADK_KERNEL_INITRAMFS_COMPRESSION_LZ4
+ select ADK_HOST_NEED_LZ4
+ boolean
+
config ADK_KERNEL_INITRAMFS_COMPRESSION_LZMA
select ADK_HOST_NEED_LZMA
boolean
@@ -44,6 +48,12 @@ config ADK_KERNEL_RD_BZIP2
config ADK_KERNEL_KERNEL_BZIP2
boolean
+config ADK_KERNEL_RD_LZ4
+ boolean
+
+config ADK_KERNEL_KERNEL_LZ4
+ boolean
+
config ADK_KERNEL_RD_LZMA
boolean
@@ -137,6 +147,14 @@ config ADK_KERNEL_COMP_XZ
select ADK_KERNEL_KERNEL_XZ
select ADK_KERNEL_INITRAMFS_COMPRESSION_XZ
+config ADK_KERNEL_COMP_LZ4
+ prompt "use LZ4 compression"
+ boolean
+ select ADK_KERNEL_RD_LZ4
+ select ADK_KERNEL_KERNEL_LZ4
+ select ADK_KERNEL_INITRAMFS_COMPRESSION_LZ4
+ depends on ADK_LINUX_X86 || ADK_LINUX_ARM
+
config ADK_KERNEL_COMP_LZMA
prompt "use LZMA compression"
boolean
diff --git a/target/linux/patches/3.15.2/lz4.patch b/target/linux/patches/3.15.2/lz4.patch
new file mode 100644
index 000000000..3106015ab
--- /dev/null
+++ b/target/linux/patches/3.15.2/lz4.patch
@@ -0,0 +1,16 @@
+diff -Nur linux-3.15.2.orig/usr/Kconfig linux-3.15.2/usr/Kconfig
+--- linux-3.15.2.orig/usr/Kconfig 2014-06-26 21:17:52.000000000 +0200
++++ linux-3.15.2/usr/Kconfig 2014-06-30 08:29:00.000000000 +0200
+@@ -174,4 +174,12 @@
+ size is about 10% bigger than gzip; however its speed
+ (both compression and decompression) is the fastest.
+
++config INITRAMFS_COMPRESSION_LZ4
++ bool "LZ4"
++ depends on RD_LZ4
++ help
++ Its compression ratio is the poorest among the choices. The kernel
++ size is about 10% bigger than gzip; however its speed
++ (both compression and decompression) is the fastest.
++
+ endchoice