irqbalance: add optional numactl dependency
PATCH 1/4 irqbalance: add optional numactl dependency
--- package/irqbalance/irqbalance.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/irqbalance/irqbalance.mk +7 -0
@@ -12,6 +12,13 @@ IRQBALANCE_DEPENDENCIES = host-pkgconf # Autoreconf needed because package is distributed without a configure script IRQBALANCE_AUTORECONF = YES +ifeq ($(BR2_PACKAGE_NUMACTL),y) +IRQBALANCE_DEPENDENCIES += numactl +IRQBALANCE_CONF_OPTS += --enable-numa +else +IRQBALANCE_CONF_OPTS += --disable-numa +endif + # This would be done by the package's autogen.sh script define IRQBALANCE_PRECONFIGURE mkdir -p $(@D)/m4
Signature · 1 line
2.17.1
PATCH 2/4 irqbalance: add mandatory libglib2 dependency
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
--- package/irqbalance/Config.in | 8 ++++++++ package/irqbalance/irqbalance.mk | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-)
package/irqbalance/Config.in +8 -0
@@ -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
package/irqbalance/irqbalance.mk +4 -1
@@ -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
Signature · 1 line
2.17.1
PATCH 3/4 irqbalance: add optional libcap-ng dependency
In reply to Fabrice Fontaine--- package/irqbalance/irqbalance.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/irqbalance/irqbalance.mk +7 -0
@@ -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
Signature · 1 line
2.17.1
PATCH 4/4 irqbalance: bump to version 1.4.0
In reply to Fabrice Fontaine- Add hash for license file
- Add optional ncurses and systemd dependencies
- Remove --without-glib2 option, see:
https://github.com/Irqbalance/irqbalance/commit/1d2f6a9b6c6ef3b195f28af5f0271cf83ed02818
--- package/irqbalance/irqbalance.hash | 3 ++- package/irqbalance/irqbalance.mk | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-)
package/irqbalance/irqbalance.hash +2 -1
@@ -1,2 +1,3 @@ # Locally calculated -sha256 f1b8115948bb9f0bc36b9d7143ee8be751a294bc189d311408e753acc37169c3 irqbalance-v1.0.9.tar.gz +sha256 62de71510a2496fcf027efb0b288dd48e53e9efc931fa573c95580cad6264d07 irqbalance-v1.4.0.tar.gz +sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
package/irqbalance/irqbalance.mk +12 -4
@@ -4,7 +4,7 @@ # ################################################################################ -IRQBALANCE_VERSION = v1.0.9 +IRQBALANCE_VERSION = v1.4.0 IRQBALANCE_SITE = $(call github,irqbalance,irqbalance,$(IRQBALANCE_VERSION)) IRQBALANCE_LICENSE = GPL-2.0 IRQBALANCE_LICENSE_FILES = COPYING
@@ -12,9 +12,6 @@ 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_LIBCAP_NG),y) IRQBALANCE_DEPENDENCIES += libcap-ng IRQBALANCE_CONF_OPTS += --with-libcap-ng
@@ -22,6 +19,10 @@ else IRQBALANCE_CONF_OPTS += --without-libcap-ng endif +ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y) +IRQBALANCE_DEPENDENCIES += ncurses +endif + ifeq ($(BR2_PACKAGE_NUMACTL),y) IRQBALANCE_DEPENDENCIES += numactl IRQBALANCE_CONF_OPTS += --enable-numa
@@ -29,6 +30,13 @@ else IRQBALANCE_CONF_OPTS += --disable-numa endif +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +IRQBALANCE_DEPENDENCIES += systemd +IRQBALANCE_CONF_OPTS += --with-systemd +else +IRQBALANCE_CONF_OPTS += --without-systemd +endif + # This would be done by the package's autogen.sh script define IRQBALANCE_PRECONFIGURE mkdir -p $(@D)/m4
Signature · 1 line
2.17.1
PATCH 1/4 irqbalance: add optional numactl dependency
In reply to Fabrice FontaineHello,
Quoted 4 lines · Fabrice Fontaine
Signed-off-by Fabrice Fontaine <[email protected]>--- package/irqbalance/irqbalance.mk | 7 +++++++ 1 file changed, 7 insertions(+)
Series applied. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com