diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:48:23 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:48:23 +0200 |
commit | 1b6242fc583a6b871304fb995af6dc211b58f69b (patch) | |
tree | b5d434d90dedae24792906aa304897c23a134386 /recipes-core/numad/numad_0.6.bb | |
download | meta-ip-1b6242fc583a6b871304fb995af6dc211b58f69b.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-core/numad/numad_0.6.bb')
-rw-r--r-- | recipes-core/numad/numad_0.6.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes-core/numad/numad_0.6.bb b/recipes-core/numad/numad_0.6.bb new file mode 100644 index 0000000..a6e8ad6 --- /dev/null +++ b/recipes-core/numad/numad_0.6.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "NUMA load distributing daemon" | ||
2 | DESCRIPTION = 'A user-level daemon that monitors NUMA topology and processes resource \ | ||
3 | consumption to facilitate good NUMA resource access of applications/virtual machines \ | ||
4 | to improve performance and minimize cost of remote memory latencies.' | ||
5 | HOMEPAGE = "https://git.fedorahosted.org/git/numad.git" | ||
6 | SECTION = "console/utils" | ||
7 | |||
8 | LICENSE = "LGPLv2.1" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://numad.c;beginline=1;endline=19;md5=fc770296e974bef07ddd7033725c8e29" | ||
11 | |||
12 | SRC_URI = "git://git.fedorahosted.org/git/numad.git;protocol=https;branch=master \ | ||
13 | file://Makefile.patch \ | ||
14 | file://test.patch \ | ||
15 | file://run-ptest \ | ||
16 | file://numad.init.patch \ | ||
17 | file://numad.conf.patch" | ||
18 | |||
19 | SRCREV = "b621838bf9c8203e87137eca28e19bcc381cde2a" | ||
20 | |||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | #clear .LIBPATTERNS instead of using VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}" | ||
24 | EXTRA_OEMAKE = 'prefix=${D}/usr TEST_DESTDIR=${D}${PTEST_PATH} .LIBPATTERNS=""' | ||
25 | |||
26 | do_install () { | ||
27 | oe_runmake install | ||
28 | install -d ${D}${sysconfdir}/init.d | ||
29 | install -m 0755 ${S}/numad.init ${D}${sysconfdir}/init.d | ||
30 | install -m 0644 ${S}/numad.conf ${D}${sysconfdir} | ||
31 | } | ||
32 | |||
33 | inherit update-rc.d ptest | ||
34 | |||
35 | DEPENDS_${PN}-ptest += "numactl" | ||
36 | RDEPENDS_${PN}-ptest += "libnuma" | ||
37 | |||
38 | INITSCRIPT_NAME = "numad.init" | ||
39 | #INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." | ||
40 | INITSCRIPT_PARAMS = "stop 20 5 2 . stop 20 0 1 6 ." | ||
41 | |||
42 | #wait for numa.h | ||
43 | do_compile_ptest_base[depends] += "numactl:do_populate_sysroot" | ||
44 | |||
45 | do_install_ptest () { | ||
46 | oe_runmake test-install | ||
47 | } | ||
48 | |||
49 | do_compile_ptest () { | ||
50 | oe_runmake test | ||
51 | } | ||