mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-27 04:33:29 +00:00
netperf: correct paths in the example scripts
Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
parent
af95968d96
commit
3b38fe66a8
@ -13,6 +13,8 @@ SRC_URI="ftp://ftp.netperf.org/netperf/archive/netperf-${PV}.tar.bz2 \
|
|||||||
SRC_URI[md5sum] = "0e942f22864e601406a994420231075b"
|
SRC_URI[md5sum] = "0e942f22864e601406a994420231075b"
|
||||||
SRC_URI[sha256sum] = "28e76af491ea3696885e4558ae2f5628a4b9ebdbefc2f1d9cf1b35db2813e497"
|
SRC_URI[sha256sum] = "28e76af491ea3696885e4558ae2f5628a4b9ebdbefc2f1d9cf1b35db2813e497"
|
||||||
|
|
||||||
|
PR = "r1"
|
||||||
|
|
||||||
inherit update-rc.d autotools
|
inherit update-rc.d autotools
|
||||||
|
|
||||||
S = "${WORKDIR}/netperf-${PV}"
|
S = "${WORKDIR}/netperf-${PV}"
|
||||||
@ -20,6 +22,14 @@ S = "${WORKDIR}/netperf-${PV}"
|
|||||||
# cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros
|
# cpu_set.patch plus _GNU_SOURCE makes src/netlib.c compile with CPU_ macros
|
||||||
CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
|
CFLAGS_append = " -DDO_UNIX -DDO_IPV6 -D_GNU_SOURCE"
|
||||||
|
|
||||||
|
do_configure_prepend () {
|
||||||
|
sed -i -e 's,^ *NETHOME=.*$,NETHOME=${bindir},' \
|
||||||
|
-e 's,^ *NETPERF=\./netperf$,NETPERF=${bindir}/netperf,' \
|
||||||
|
-e 's,^ *NETPERF=/usr/bin/netperf$,NETPERF=${bindir}/netperf,' \
|
||||||
|
-e 's,^ *NETPERF_CMD=.*$,NETPERF_CMD=${bindir}/netperf,' \
|
||||||
|
doc/examples/*_script
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d
|
install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d
|
||||||
install -m 4755 src/netperf ${D}${bindir}
|
install -m 4755 src/netperf ${D}${bindir}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user