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.

65 lines
1.8 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.6.0
  7. PKG_RELEASE:=7
  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:=b47eea84cbb93f533b0cba2f1aaf9ca4da8706b9
  12. PKG_MIRROR_HASH:=ce1cd84cd315492d4260786735eae81e49515ec3eebe652920a7dc57b93c0c2c
  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. # -liconv due to glib2, to be revisited later
  20. include $(INCLUDE_DIR)/nls.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/irqbalance
  23. PKG_BUILD_DEPENDS:=glib2
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  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. CONFIGURE_VARS += \
  41. GLIB2_LIBS="$(STAGING_DIR)/usr/lib/libglib-2.0.a \
  42. $(STAGING_DIR)/usr/lib/libiconv-stub/lib/libiconv.a"
  43. define Package/irqbalance/install
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/irqbalance $(1)/usr/sbin/
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/irqbalance.init $(1)/etc/init.d/irqbalance
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_DATA) ./files/irqbalance.config $(1)/etc/config/irqbalance
  50. endef
  51. $(eval $(call BuildPackage,irqbalance))