You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.0 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=irqbalance
  6. PKG_VERSION:=1.8.0
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_PROTO:=git
  10. PKG_SOURCE_URL:=https://github.com/Irqbalance/irqbalance.git
  11. PKG_SOURCE_VERSION:=99ae256d02b35778b406e598beedc8d827cdac18
  12. PKG_MIRROR_HASH:=35a9607ccc7827209cbe5cfeb5d5354ad3c1f95ffdefa866a016758680a40b4e
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_LICENSE:=GPLv2
  15. PKG_MAINTAINER:=Hannu Nyman <hannu.nyman@iki.fi>
  16. PKG_FIXUP:=autoreconf
  17. PKG_REMOVE_FILES:=autogen.sh
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/nls.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. PKG_BUILD_DEPENDS += glib2
  22. define Package/irqbalance
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS)
  26. TITLE:=IRQ usage balancing for multi-core systems
  27. URL:=https://github.com/Irqbalance/irqbalance
  28. endef
  29. define Package/irqbalance/description
  30. The purpose of irqbalance is to distribute hardware interrupts across
  31. processors/cores on a multiprocessor/multicore system in order to
  32. increase performance.
  33. endef
  34. CONFIGURE_ARGS+= \
  35. --disable-numa \
  36. --with-libcap_ng=no \
  37. --with-systemd=no \
  38. --without-irqbalance-ui \
  39. --enable-static=glib2
  40. GLIB2_LIBS="$(STAGING_DIR)/usr/lib/libglib-2.0.a"
  41. ifeq ($(CONFIG_BUILD_NLS),y)
  42. GLIB2_LIBS += $(INTL_LDFLAGS) -lintl
  43. endif
  44. ifeq ($(CONFIG_USE_GLIBC),y)
  45. GLIB2_LIBS += -lpthread
  46. endif
  47. CONFIGURE_VARS += \
  48. GLIB2_LIBS="$(GLIB2_LIBS) \
  49. $(ICONV_LDFLAGS) -liconv"
  50. define Package/irqbalance/conffiles
  51. /etc/config/irqbalance
  52. endef
  53. define Package/irqbalance/install
  54. $(INSTALL_DIR) $(1)/usr/sbin
  55. $(INSTALL_BIN) $(PKG_BUILD_DIR)/irqbalance $(1)/usr/sbin/
  56. $(INSTALL_DIR) $(1)/etc/init.d
  57. $(INSTALL_BIN) ./files/irqbalance.init $(1)/etc/init.d/irqbalance
  58. $(INSTALL_DIR) $(1)/etc/config
  59. $(INSTALL_DATA) ./files/irqbalance.config $(1)/etc/config/irqbalance
  60. endef
  61. $(eval $(call BuildPackage,irqbalance))