[Buildroot] [PATCH 5/8] package/opkg: Add lz4 support

Adam Duskett adam.duskett at amarulasolutions.com
Mon Oct 23 09:24:58 UTC 2023


Signed-off-by: Adam Duskett <adam.duskett at amarulasolutions.com>
---
 package/opkg/Config.in | 6 ++++++
 package/opkg/opkg.mk   | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/package/opkg/Config.in b/package/opkg/Config.in
index 679214beea..69378c0de7 100644
--- a/package/opkg/Config.in
+++ b/package/opkg/Config.in
@@ -32,6 +32,12 @@ config BR2_PACKAGE_OPKG_GPG_SIGN
 
 comment "compression support"
 
+config BR2_PACKAGE_OPKG_LZ4
+	bool "lz4 support"
+	select BR2_PACKAGE_XZ
+	help
+	  Enable lz4 compressor support.
+
 config BR2_PACKAGE_OPKG_XZ
 	bool "xz support"
 	select BR2_PACKAGE_XZ
diff --git a/package/opkg/opkg.mk b/package/opkg/opkg.mk
index e32dd1a84c..270a7a1a75 100644
--- a/package/opkg/opkg.mk
+++ b/package/opkg/opkg.mk
@@ -27,6 +27,13 @@ else
 OPKG_CONF_OPTS += --disable-gpg
 endif
 
+ifeq ($(BR2_PACKAGE_OPKG_LZ4),y)
+OPKG_DEPENDENCIES += lz4
+OPKG_CONF_OPTS += --enable-lz4
+else
+OPKG_CONF_OPTS += --disable-lz4
+endif
+
 ifeq ($(BR2_PACKAGE_OPKG_XZ),y)
 OPKG_DEPENDENCIES += xz
 OPKG_CONF_OPTS += --enable-xz
-- 
2.41.0




More information about the buildroot mailing list