Patrick Williams | d849ec7 | 2016-08-17 14:59:38 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 Wind River Systems, Inc. |
| 3 | # |
| 4 | SUMMARY = "IRQ allocation daemon" |
| 5 | DESCRIPTION = "A daemon to balance interrupts across multiple CPUs, \ |
| 6 | which can lead to better performance and IO balance on SMP systems." |
| 7 | |
| 8 | HOMEPAGE = "http://code.google.com/p/irqbalance/" |
| 9 | BUGTRACKER = "http://code.google.com/p/irqbalance/issues/list" |
| 10 | |
| 11 | LICENSE = "GPLv2" |
| 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
| 13 | file://irqbalance.c;beginline=6;endline=8;md5=b94e153694672307b503b1bc87dc9e24 \ |
| 14 | " |
| 15 | |
| 16 | DEPENDS = "glib-2.0" |
| 17 | |
| 18 | INITSCRIPT_NAME = "irqbalanced" |
| 19 | INITSCRIPT_PARAMS = "defaults" |
| 20 | |
| 21 | inherit autotools update-rc.d pkgconfig systemd |
| 22 | |
| 23 | SYSTEMD_PACKAGES = "irqbalance" |
| 24 | SYSTEMD_SERVICE_irqbalance = "irqbalanced.service" |
| 25 | |
| 26 | EXTRA_OECONF = "--program-transform-name= \ |
| 27 | " |
| 28 | |
| 29 | # let the recipes or appends define options |
| 30 | # |
| 31 | PACKAGECONFIG ?= "" |
| 32 | |
| 33 | # enable,disable,depends,rdepends |
| 34 | # |
| 35 | PACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl," |
| 36 | PACKAGECONFIG[libcap-ng] = "--with-libcap-ng,--without-libcap-ng,libcap-ng," |
| 37 | |
| 38 | do_install () { |
| 39 | oe_runmake 'DESTDIR=${D}' install |
| 40 | install -d ${D}${sysconfdir}/init.d |
| 41 | cat ${S}/irqbalance.init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/irqbalanced |
| 42 | chmod 755 ${D}${sysconfdir}/init.d/irqbalanced |
| 43 | |
| 44 | install -d ${D}${systemd_unitdir}/system |
| 45 | install -m 0644 ${WORKDIR}/irqbalanced.service ${D}${systemd_unitdir}/system |
| 46 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/irqbalanced.service |
| 47 | } |