[Buildroot] [git commit] package/htop: add optional dependency hwloc

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Oct 3 20:20:31 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=c83bf9720632bcd4d438094a9fc30feff69fc555
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/htop/htop.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/htop/htop.mk b/package/htop/htop.mk
index 140d620f20..b5aab3c300 100644
--- a/package/htop/htop.mk
+++ b/package/htop/htop.mk
@@ -13,6 +13,13 @@ HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/$(NCURSES_CONF
 HTOP_LICENSE = GPL-2.0
 HTOP_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_HWLOC),y)
+HTOP_CONF_OPTS += --enable-hwloc
+HTOP_DEPENDENCIES += hwloc
+else
+HTOP_CONF_OPTS += --disable-hwloc
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 HTOP_CONF_OPTS += --enable-capabilities
 HTOP_DEPENDENCIES += libcap


More information about the buildroot mailing list