[Buildroot] [git commit branch/next] package/lshw: add zlib optional dependency

From: Yann E. MORIN <hidden>
Date: 2022-08-15 19:46:09
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=169943e8d9170917e0f9f65177e1d9a497d691ee
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Signed-off-by: Fabrice Fontaine <redacted>
Signed-off-by: Yann E. MORIN <redacted>
---
 package/lshw/lshw.mk | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/package/lshw/lshw.mk b/package/lshw/lshw.mk
index bde23d1499..86c8f356cc 100644
--- a/package/lshw/lshw.mk
+++ b/package/lshw/lshw.mk
@@ -29,6 +29,13 @@ else
 LSHW_MAKE_OPTS += SQLITE=0
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LSHW_DEPENDENCIES += host-pkgconf zlib
+LSHW_MAKE_OPTS += ZLIB=1
+else
+LSHW_MAKE_OPTS += ZLIB=0
+endif
+
 define LSHW_BUILD_CMDS
 	$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src \
 		$(LSHW_MAKE_OPTS) \
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help