irqbalance: add mandatory libglib2 dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 23 Sep 2018 16:32:39 +0000 (18:32 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 25 Sep 2018 20:31:00 +0000 (22:31 +0200)
If libglib2 is not found or disable through --without-glib2, irqbalance
will use its own implementation of glib2 so add a mandatory libglib2
dependency especially as upstream now enforce it:
https://github.com/Irqbalance/irqbalance/commit/1d2f6a9b6c6ef3b195f28af5f0271cf83ed02818

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/irqbalance/Config.in
package/irqbalance/irqbalance.mk

index 6c214978345ee9c13072724e18199f6e4a1970dd..02d146f4d37337a9ed9208b701e8e6fc76fb4b3e 100644 (file)
@@ -1,5 +1,9 @@
 config BR2_PACKAGE_IRQBALANCE
        bool "irqbalance"
+       depends on BR2_USE_WCHAR # libglib2
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+       depends on BR2_USE_MMU # libglib2
+       select BR2_PACKAGE_LIBGLIB2
        help
          Irqbalance is a daemon to help balance the cpu load generated
          by interrupts across all of a systems cpus.
@@ -9,3 +13,7 @@ config BR2_PACKAGE_IRQBALANCE
          minimizing cache hit rates for irq handlers.
 
          https://github.com/Irqbalance/irqbalance
+
+comment "irqbalance needs a toolchain w/ wchar, threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
index 95230ed1f5a10522b08f2299620d03e730cd211f..309fc22ee224f28d35bad3fa25e6355ee050d9f9 100644 (file)
@@ -8,10 +8,13 @@ IRQBALANCE_VERSION = v1.0.9
 IRQBALANCE_SITE = $(call github,irqbalance,irqbalance,$(IRQBALANCE_VERSION))
 IRQBALANCE_LICENSE = GPL-2.0
 IRQBALANCE_LICENSE_FILES = COPYING
-IRQBALANCE_DEPENDENCIES = host-pkgconf
+IRQBALANCE_DEPENDENCIES = host-pkgconf libglib2
 # Autoreconf needed because package is distributed without a configure script
 IRQBALANCE_AUTORECONF = YES
 
+# Local implementation of glib2 will be used if --without-glib2 is set
+IRQBALANCE_CONF_OPTS = --with-glib2
+
 ifeq ($(BR2_PACKAGE_NUMACTL),y)
 IRQBALANCE_DEPENDENCIES += numactl
 IRQBALANCE_CONF_OPTS += --enable-numa