From c83bf9720632bcd4d438094a9fc30feff69fc555 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sun, 3 Oct 2021 10:13:26 +0200 Subject: [PATCH] package/htop: add optional dependency hwloc Signed-off-by: Francois Perrad Signed-off-by: Thomas Petazzoni --- 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