Skip to contentSkip to conversation

package/kmod: support zstd compression if available

PATCH New Norbert Lange 2 participants 3 messages May 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/kmod: support zstd compression if available

---
 package/kmod/kmod.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/kmod/kmod.mk +7 -0
index 7fed252c22..9d2b2c47d7 100644
@@ -41,6 +41,13 @@ else
 KMOD_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_ZSTD),y)
+KMOD_DEPENDENCIES += zstd
+KMOD_CONF_OPTS += --with-zstd
+else
+KMOD_CONF_OPTS += --without-zstd
+endif
+
 ifeq ($(BR2_PACKAGE_XZ),y)
 KMOD_DEPENDENCIES += xz
 KMOD_CONF_OPTS += --with-xz
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 package/kmod: create zstd option for host

---
 package/kmod/Config.in.host | 3 +++
 package/kmod/kmod.mk        | 7 +++++++
 2 files changed, 10 insertions(+)
package/kmod/Config.in.host +3 -0
index 9dbbcea782..7680cecdb2 100644
@@ -10,6 +10,9 @@ if BR2_PACKAGE_HOST_KMOD
 config BR2_PACKAGE_HOST_KMOD_GZ
 	bool "support gzip-compressed modules"
 
+config BR2_PACKAGE_HOST_KMOD_ZSTD
+	bool "support zstd-compressed modules"
+
 config BR2_PACKAGE_HOST_KMOD_XZ
 	bool "support xz-compressed modules"
 
package/kmod/kmod.mk +7 -0
index 9d2b2c47d7..7c5d200b0f 100644
@@ -98,6 +98,13 @@ else
 HOST_KMOD_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_HOST_KMOD_ZSTD),y)
+HOST_KMOD_DEPENDENCIES += host-zstd
+HOST_KMOD_CONF_OPTS += --with-zstd
+else
+HOST_KMOD_CONF_OPTS += --without-zstd
+endif
+
 ifeq ($(BR2_PACKAGE_HOST_KMOD_XZ),y)
 HOST_KMOD_DEPENDENCIES += host-xz
 HOST_KMOD_CONF_OPTS += --with-xz
Signature · 1 line
2.30.2
#2 lore raw

PATCH 1/2 package/kmod: support zstd compression if available

In reply to Norbert Lange

Norbert, All,

On 2021-05-04 14:33 +0200, Norbert Lange spake thusly:

Quoted 1 line

Series of two applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 29 lines
---
 package/kmod/kmod.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/kmod/kmod.mk +7 -0
index 7fed252c22..9d2b2c47d7 100644
@@ -41,6 +41,13 @@ else
 KMOD_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_ZSTD),y)
+KMOD_DEPENDENCIES += zstd
+KMOD_CONF_OPTS += --with-zstd
+else
+KMOD_CONF_OPTS += --without-zstd
+endif
+
 ifeq ($(BR2_PACKAGE_XZ),y)
 KMOD_DEPENDENCIES += xz
 KMOD_CONF_OPTS += --with-xz
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'