1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
13 PKG_SOURCE_URL
:=https
://github.com
/Irqbalance
/irqbalance.git
14 PKG_SOURCE_VERSION
:=641edc6f5d56f1b3eb8be0fa8a8e9b6a22e53218
15 PKG_MIRROR_HASH
:=c5453159f4863f7a37a1afa170a5db475c866a5a34975bcc427a22a8b3b97701
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Hannu Nyman
<hannu.nyman@iki.fi
>
22 PKG_REMOVE_FILES
:=autogen.sh
26 include $(INCLUDE_DIR
)/nls.mk
28 include $(INCLUDE_DIR
)/package.mk
30 PKG_BUILD_DEPENDS
+= glib2
32 define Package
/irqbalance
35 DEPENDS
:=$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
36 TITLE
:=IRQ usage balancing for multi-core systems
37 URL
:=https
://github.com
/Irqbalance
/irqbalance
40 define Package
/irqbalance
/description
41 The purpose of irqbalance is to distribute hardware interrupts across
42 processors
/cores on a multiprocessor
/multicore system in order to
50 --without-irqbalance-ui \
53 GLIB2_LIBS
="$(STAGING_DIR)/usr/lib/libglib-2.0.a"
55 ifeq ($(CONFIG_BUILD_NLS
),y
)
56 GLIB2_LIBS
+= $(INTL_LDFLAGS
) -lintl
59 ifeq ($(CONFIG_USE_GLIBC
),y
)
60 GLIB2_LIBS
+= -lpthread
64 GLIB2_LIBS
="$(GLIB2_LIBS) \
65 $(ICONV_LDFLAGS) -liconv"
67 define Package
/irqbalance
/conffiles
68 /etc
/config
/irqbalance
71 define Package
/irqbalance
/install
72 $(INSTALL_DIR
) $(1)/usr
/sbin
73 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/irqbalance
$(1)/usr
/sbin
/
74 $(INSTALL_DIR
) $(1)/etc
/init.d
75 $(INSTALL_BIN
) .
/files
/irqbalance.init
$(1)/etc
/init.d
/irqbalance
76 $(INSTALL_DIR
) $(1)/etc
/config
77 $(INSTALL_DATA
) .
/files
/irqbalance.config
$(1)/etc
/config
/irqbalance
80 $(eval
$(call BuildPackage
,irqbalance
))