irqbalance: add optional libcap-ng dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 23 Sep 2018 16:32:40 +0000 (18:32 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 25 Sep 2018 20:31:05 +0000 (22:31 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/irqbalance/irqbalance.mk

index 309fc22ee224f28d35bad3fa25e6355ee050d9f9..410e40a13101e45584a5266f758510a90da31365 100644 (file)
@@ -15,6 +15,13 @@ IRQBALANCE_AUTORECONF = YES
 # Local implementation of glib2 will be used if --without-glib2 is set
 IRQBALANCE_CONF_OPTS = --with-glib2
 
+ifeq ($(BR2_PACKAGE_LIBCAP_NG),y)
+IRQBALANCE_DEPENDENCIES += libcap-ng
+IRQBALANCE_CONF_OPTS += --with-libcap-ng
+else
+IRQBALANCE_CONF_OPTS += --without-libcap-ng
+endif
+
 ifeq ($(BR2_PACKAGE_NUMACTL),y)
 IRQBALANCE_DEPENDENCIES += numactl
 IRQBALANCE_CONF_OPTS += --enable-numa