diff options
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-benchmark/netperf/netperf_2.4.4.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/netperf/netperf_2.4.4.bb b/meta-oe/recipes-benchmark/netperf/netperf_2.4.4.bb index 6a3a81c51..15174ca29 100644 --- a/meta-oe/recipes-benchmark/netperf/netperf_2.4.4.bb +++ b/meta-oe/recipes-benchmark/netperf/netperf_2.4.4.bb | |||
@@ -13,6 +13,8 @@ SRC_URI="ftp://ftp.netperf.org/netperf/archive/netperf-${PV}.tar.bz2 \ | |||
13 | SRC_URI[md5sum] = "0e942f22864e601406a994420231075b" | 13 | SRC_URI[md5sum] = "0e942f22864e601406a994420231075b" |
14 | SRC_URI[sha256sum] = "28e76af491ea3696885e4558ae2f5628a4b9ebdbefc2f1d9cf1b35db2813e497" | 14 | SRC_URI[sha256sum] = "28e76af491ea3696885e4558ae2f5628a4b9ebdbefc2f1d9cf1b35db2813e497" |
15 | 15 | ||
16 | PR = "r1" | ||
17 | |||
16 | inherit update-rc.d autotools | 18 | inherit update-rc.d autotools |
17 | 19 | ||
18 | S = "${WORKDIR}/netperf-${PV}" | 20 | S = "${WORKDIR}/netperf-${PV}" |
@@ -20,6 +22,14 @@ S = "${WORKDIR}/netperf-${PV}" | |||
20 | # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros | 22 | # cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros |
21 | CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" | 23 | CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE" |
22 | 24 | ||
25 | do_configure_prepend () { | ||
26 | sed -i -e 's,^ *NETHOME=.*$,NETHOME=${bindir},' \ | ||
27 | -e 's,^ *NETPERF=\./netperf$,NETPERF=${bindir}/netperf,' \ | ||
28 | -e 's,^ *NETPERF=/usr/bin/netperf$,NETPERF=${bindir}/netperf,' \ | ||
29 | -e 's,^ *NETPERF_CMD=.*$,NETPERF_CMD=${bindir}/netperf,' \ | ||
30 | doc/examples/*_script | ||
31 | } | ||
32 | |||
23 | do_install() { | 33 | do_install() { |
24 | install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d | 34 | install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d |
25 | install -m 4755 src/netperf ${D}${bindir} | 35 | install -m 4755 src/netperf ${D}${bindir} |