From: Simon Egli <simon.egli@tik.ee.ethz.ch>
To: yocto@yoctoproject.org
Subject: [META-OE][PATCH] iperf 2.0.5 + fix for minor bug while cross-compiling
Date: Mon, 18 Mar 2013 12:41:32 +0100 [thread overview]
Message-ID: <5146FD6C.8070803@tik.ee.ethz.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 165 bytes --]
Please see attached my patch to iperf 2.0.5 + fix
I hope this may be of use for someone and that it will be integrated in
to yocto master
Greetings,
Simon
[-- Attachment #2: 0001-Recipe-for-iperf-2.0.5.patch --]
[-- Type: text/x-patch, Size: 1443 bytes --]
From 5a46a34945539ac46046bec9534322c09ff0896a Mon Sep 17 00:00:00 2001
From: Simon Egli <simon.egli@tik.ee.ethz.ch>
Date: Mon, 18 Mar 2013 12:37:20 +0100
Subject: [PATCH 1/2] Recipe for iperf 2.0.5
Signed-off-by: Simon Egli <simon.egli@tik.ee.ethz.ch>
---
meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
diff --git a/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
new file mode 100644
index 0000000..3f93ee5
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "Iperf is a tool to measure maximum TCP bandwidth, allowing the tuning of various parameters and UDP characteristics"
+HOMEPAGE = "http://dast.nlanr.net/Projects/Iperf/"
+SECTION = "console/network"
+LICENSE = "NewBSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e8478eae9f479e39bc34975193360298"
+
+SRC_URI = " \
+ ${SOURCEFORGE_MIRROR}/iperf/iperf-${PV}.tar.gz \
+ file://0001-Fixing-special-format-bug-with-bitbake.patch \
+ "
+
+
+SRC_URI[md5sum] = "44b5536b67719f4250faed632a3cd016"
+SRC_URI[sha256sum] = "636b4eff0431cea80667ea85a67ce4c68698760a9837e1e9d13096d20362265b"
+
+inherit autotools
+
+S="${WORKDIR}/iperf-${PV}"
+
+EXTRA_OECONF = "--exec-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"
+
--
1.7.9.5
[-- Attachment #3: 0002-Fixing-special-format-bug-with-bitbake.patch --]
[-- Type: text/x-patch, Size: 2275 bytes --]
From 85fdd92a41626e821c98251ee13a0dd8f280de40 Mon Sep 17 00:00:00 2001
From: Simon Egli <simon.egli@tik.ee.ethz.ch>
Date: Mon, 18 Mar 2013 12:37:40 +0100
Subject: [PATCH 2/2] Fixing special format bug with bitbake
On overo (native) we get HAVE_QUAD_SUPPORT, but don't seem with bitbake.
This leads to "iperf -s -u -y c" returning empty bandwith and jitter,
because of formatting error.
Didn't seem to work with "'CFLAGS += "-HAVE_QUAD_SUPPORT"', because of configure error,
so giving iperf HAVE_QUAD_SUPPORT in Locale.c
Signed-off-by: Simon Egli <simon.egli@tik.ee.ethz.ch>
---
...01-Fixing-special-format-bug-with-bitbake.patch | 31 ++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-Fixing-special-format-bug-with-bitbake.patch
diff --git a/meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-Fixing-special-format-bug-with-bitbake.patch b/meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-Fixing-special-format-bug-with-bitbake.patch
new file mode 100644
index 0000000..fb04cd7
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iperf/iperf-2.0.5/0001-Fixing-special-format-bug-with-bitbake.patch
@@ -0,0 +1,31 @@
+From 8f359740e9d8b4b18c83873aab6d80b40e36beaf Mon Sep 17 00:00:00 2001
+From: Simon Egli <simon.egli@tik.ee.ethz.ch>
+Date: Mon, 18 Mar 2013 12:30:12 +0100
+Subject: [PATCH] Fixing special format bug with bitbake
+
+On overo (native) we get HAVE_QUAD_SUPPORT, but don't seem with bitbake.
+This leads to "iperf -s -u -y c" returning empty bandwith and jitter,
+because of formatting error.
+Didn't seem to work with "'CFLAGS += "-HAVE_QUAD_SUPPORT"', because of configure error,
+so giving iperf HAVE_QUAD_SUPPORT in Locale.c
+
+Signed-off-by: Simon Egli <simon.egli@tik.ee.ethz.ch>
+---
+ src/Locale.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/Locale.c b/src/Locale.c
+index b5d42b1..f0e10b6 100644
+--- a/src/Locale.c
++++ b/src/Locale.c
+@@ -238,6 +238,7 @@ const char server_reporting[] =
+ const char reportCSV_peer[] =
+ "%s,%u,%s,%u";
+
++#define HAVE_QUAD_SUPPORT
+ #ifdef HAVE_QUAD_SUPPORT
+ #ifdef HAVE_PRINTF_QD
+ const char reportCSV_bw_format[] =
+--
+1.7.9.5
+
--
1.7.9.5
next reply other threads:[~2013-03-18 11:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 11:41 Simon Egli [this message]
2013-03-18 12:02 ` [META-OE][PATCH] iperf 2.0.5 + fix for minor bug while cross-compiling Martin Jansa
2013-03-18 12:04 ` Martin Jansa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5146FD6C.8070803@tik.ee.ethz.ch \
--to=simon.egli@tik.ee.ethz.ch \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.