* [PATCH v2] tiobench: add new recipe for 0.3.3 version
@ 2011-05-30 16:43 Ludovic Desroches
2011-05-30 19:04 ` [PATCH v3] tiobench: Add version 0.3.3 (initial recipe) Paul Menzel
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Desroches @ 2011-05-30 16:43 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
recipes/tiobench/files/tiobench-makefile.patch | 47 ++++++++++++++++++++++++
recipes/tiobench/tiobench_0.3.3.bb | 28 ++++++++++++++
2 files changed, 75 insertions(+), 0 deletions(-)
create mode 100644 recipes/tiobench/files/tiobench-makefile.patch
create mode 100644 recipes/tiobench/tiobench_0.3.3.bb
diff --git a/recipes/tiobench/files/tiobench-makefile.patch b/recipes/tiobench/files/tiobench-makefile.patch
new file mode 100644
index 0000000..f924c1b
--- /dev/null
+++ b/recipes/tiobench/files/tiobench-makefile.patch
@@ -0,0 +1,47 @@
+Author: Ludovic Desroches <ludovic.desroches@atmel.com>
+
+Adapt tiobench to OE
+Index: Makefile
+===================================================================
+--- a/Makefile 2011-05-26 07:48:46.341400974 +0200
++++ b/Makefile 2011-05-30 06:32:38.091401358 +0200
+@@ -1,8 +1,9 @@
+ # Makefile for tiotest
+
+-CC=gcc
++CC?=gcc
+ #CFLAGS=-O3 -fomit-frame-pointer -Wall
+ CFLAGS=-O2 -Wall
++LDFLAGS?=
+
+ #DEFINES=-DUSE_MMAP
+ #-DUSE_MADVISE
+@@ -14,16 +15,16 @@
+
+ #DEFINES=
+
+-LINK=gcc
++LINK?=$(CC)
+ EXE=tiotest
+ PROJECT=tiobench
+ # do it once instead of each time referenced
+ VERSION=$(shell egrep "tiotest v[0-9]+.[0-9]+" tiotest.c | cut -d " " -f 7 | sed "s/v//g")
+ DISTNAME=$(PROJECT)-$(VERSION)
+ INSTALL=install
+-PREFIX=/usr/local
++PREFIX?=/usr/local
+ BINDIR=$(PREFIX)/bin
+-DOCDIR=/usr/local/doc/$(DISTNAME)
++DOCDIR=$(PREFIX)/doc/$(DISTNAME)
+
+ all: $(EXE)
+
+@@ -34,7 +35,7 @@
+ $(CC) -c $(CFLAGS) $(DEFINES) tiotest.c -o tiotest.o
+
+ $(EXE): tiotest.o crc32.o
+- $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread
++ $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread $(LDFLAGS)
+ @echo
+ @echo "./tiobench.pl --help for usage options"
+ @echo
diff --git a/recipes/tiobench/tiobench_0.3.3.bb b/recipes/tiobench/tiobench_0.3.3.bb
new file mode 100644
index 0000000..c469ea9
--- /dev/null
+++ b/recipes/tiobench/tiobench_0.3.3.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "Threaded I/O tester"
+HOMEPAGE = "http://sourceforge.net/projects/tiobench/"
+LICENSE = "GPL"
+RDEPENDS = "\
+ perl \
+ perl-module-strict \
+ perl-module-getopt-long \
+ perl-module-overload \
+ perl-module-exporter-heavy \
+ "
+PR = "r0"
+
+SRC_URI = "\
+ http://sourceforge.net/projects/tiobench/files/tiobench/0.3.3/tiobench-0.3.3.tar.gz \
+ file://tiobench-makefile.patch \
+ "
+SRC_URI[md5sum] = "bf485bf820e693c79e6bd2a38702a128"
+SRC_URI[sha256sum] = "8ad011059a35ac70cdb5e3d3999ceee44a8e8e9078926844b0685b7ea9db2bcc"
+
+EXTRA_OEMAKE = "PREFIX=${D}"
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ oe_runmake install
+}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3] tiobench: Add version 0.3.3 (initial recipe)
2011-05-30 16:43 [PATCH v2] tiobench: add new recipe for 0.3.3 version Ludovic Desroches
@ 2011-05-30 19:04 ` Paul Menzel
2011-05-31 7:08 ` Ludovic Desroches
0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2011-05-30 19:04 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 3424 bytes --]
From: Ludovic Desroches <ludovic.desroches@atmel.com>
Date: Mon, 30 May 2011 18:43:14 +0200
Build tested
• with task-base image with the tiobench package on atmel boards by Ludovic Desroches and
• using `angstrom-2010.x` and `minimal{,-uclibc}` for `MACHINE = "beagleboard"` by Paul Menzel.
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
v2 → v3
• sort dependencies
• update `LICENSE`
• remove overrides, which are the defaults
• use ${PN} and ${P}
• rename directory for the patch
Ludovic, could you please test the updated patch and tell me if you send the Makefile patch upstream.
---
.../tiobench-0.3.3/tiobench-makefile.patch | 47 ++++++++++++++++++++
recipes/tiobench/tiobench_0.3.3.bb | 24 ++++++++++
2 files changed, 71 insertions(+), 0 deletions(-)
create mode 100644 recipes/tiobench/tiobench-0.3.3/tiobench-makefile.patch
create mode 100644 recipes/tiobench/tiobench_0.3.3.bb
diff --git a/recipes/tiobench/tiobench-0.3.3/tiobench-makefile.patch b/recipes/tiobench/tiobench-0.3.3/tiobench-makefile.patch
new file mode 100644
index 0000000..f924c1b
--- /dev/null
+++ b/recipes/tiobench/tiobench-0.3.3/tiobench-makefile.patch
@@ -0,0 +1,47 @@
+Author: Ludovic Desroches <ludovic.desroches@atmel.com>
+
+Adapt tiobench to OE
+Index: Makefile
+===================================================================
+--- a/Makefile 2011-05-26 07:48:46.341400974 +0200
++++ b/Makefile 2011-05-30 06:32:38.091401358 +0200
+@@ -1,8 +1,9 @@
+ # Makefile for tiotest
+
+-CC=gcc
++CC?=gcc
+ #CFLAGS=-O3 -fomit-frame-pointer -Wall
+ CFLAGS=-O2 -Wall
++LDFLAGS?=
+
+ #DEFINES=-DUSE_MMAP
+ #-DUSE_MADVISE
+@@ -14,16 +15,16 @@
+
+ #DEFINES=
+
+-LINK=gcc
++LINK?=$(CC)
+ EXE=tiotest
+ PROJECT=tiobench
+ # do it once instead of each time referenced
+ VERSION=$(shell egrep "tiotest v[0-9]+.[0-9]+" tiotest.c | cut -d " " -f 7 | sed "s/v//g")
+ DISTNAME=$(PROJECT)-$(VERSION)
+ INSTALL=install
+-PREFIX=/usr/local
++PREFIX?=/usr/local
+ BINDIR=$(PREFIX)/bin
+-DOCDIR=/usr/local/doc/$(DISTNAME)
++DOCDIR=$(PREFIX)/doc/$(DISTNAME)
+
+ all: $(EXE)
+
+@@ -34,7 +35,7 @@
+ $(CC) -c $(CFLAGS) $(DEFINES) tiotest.c -o tiotest.o
+
+ $(EXE): tiotest.o crc32.o
+- $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread
++ $(LINK) -o $(EXE) tiotest.o crc32.o -lpthread $(LDFLAGS)
+ @echo
+ @echo "./tiobench.pl --help for usage options"
+ @echo
diff --git a/recipes/tiobench/tiobench_0.3.3.bb b/recipes/tiobench/tiobench_0.3.3.bb
new file mode 100644
index 0000000..55894e3
--- /dev/null
+++ b/recipes/tiobench/tiobench_0.3.3.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "Threaded I/O tester"
+HOMEPAGE = "http://sourceforge.net/projects/tiobench/"
+LICENSE = "GPLv2"
+RDEPENDS = "\
+ perl \
+ perl-module-exporter-heavy \
+ perl-module-getopt-long \
+ perl-module-overload \
+ perl-module-strict \
+ "
+PR = "r0"
+
+SRC_URI = "\
+ http://sourceforge.net/projects/tiobench/files/tiobench/${PV}/${P}.tar.gz \
+ file://tiobench-makefile.patch \
+ "
+SRC_URI[md5sum] = "bf485bf820e693c79e6bd2a38702a128"
+SRC_URI[sha256sum] = "8ad011059a35ac70cdb5e3d3999ceee44a8e8e9078926844b0685b7ea9db2bcc"
+
+EXTRA_OEMAKE = "PREFIX=${D}"
+
+do_install() {
+ oe_runmake install
+}
--
1.7.5.3
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3] tiobench: Add version 0.3.3 (initial recipe)
2011-05-30 19:04 ` [PATCH v3] tiobench: Add version 0.3.3 (initial recipe) Paul Menzel
@ 2011-05-31 7:08 ` Ludovic Desroches
2011-05-31 8:11 ` Paul Menzel
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Desroches @ 2011-05-31 7:08 UTC (permalink / raw)
To: openembedded-devel
Hello Paul,
On 5/30/2011 9:04 PM, Paul Menzel wrote:
> From: Ludovic Desroches<ludovic.desroches@atmel.com>
> Date: Mon, 30 May 2011 18:43:14 +0200
>
> Build tested
> • with task-base image with the tiobench package on atmel boards by Ludovic Desroches and
> • using `angstrom-2010.x` and `minimal{,-uclibc}` for `MACHINE = "beagleboard"` by Paul Menzel.
>
> Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
> Signed-off-by: Paul Menzel<paulepanter@users.sourceforge.net>
> ---
> v2 → v3
> • sort dependencies
> • update `LICENSE`
> • remove overrides, which are the defaults
> • use ${PN} and ${P}
> • rename directory for the patch
>
> Ludovic, could you please test the updated patch and tell me if you send the Makefile patch upstream.
No problem, it is still ok. Thanks for your help. It's good for me to
see how this recipe has to look like since we can find different ways
into other (maybe old) recipes. I confess I have seen some of the
changes you asked but I forget them!
I have not sent the Makefile patch upstream, since the last release is
quite old, I don't know the project is still active.
Regards,
Ludovic
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] tiobench: Add version 0.3.3 (initial recipe)
2011-05-31 7:08 ` Ludovic Desroches
@ 2011-05-31 8:11 ` Paul Menzel
2011-06-09 19:35 ` Paul Menzel
0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2011-05-31 8:11 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]
Dear Ludovic,
Am Dienstag, den 31.05.2011, 09:08 +0200 schrieb Ludovic Desroches:
> On 5/30/2011 9:04 PM, Paul Menzel wrote:
> > From: Ludovic Desroches<ludovic.desroches@atmel.com>
> > Date: Mon, 30 May 2011 18:43:14 +0200
> >
> > Build tested
> > • with task-base image with the tiobench package on atmel boards by Ludovic Desroches and
> > • using `angstrom-2010.x` and `minimal{,-uclibc}` for `MACHINE = "beagleboard"` by Paul Menzel.
> >
> > Signed-off-by: Ludovic Desroches<ludovic.desroches@atmel.com>
> > Signed-off-by: Paul Menzel<paulepanter@users.sourceforge.net>
> > ---
> > v2 → v3
> > • sort dependencies
> > • update `LICENSE`
> > • remove overrides, which are the defaults
> > • use ${PN} and ${P}
> > • rename directory for the patch
> >
> > Ludovic, could you please test the updated patch and tell me if you send the Makefile patch upstream.
> No problem, it is still ok. Thanks for your help. It's good for me to
> see how this recipe has to look like since we can find different ways
> into other (maybe old) recipes. I confess I have seen some of the
> changes you asked but I forget them!
>
> I have not sent the Makefile patch upstream, since the last release is
> quite old, I don't know the project is still active.
It does not look like that. Looking at the CVS log it seems like
tiobench 0.4.1 should have been released somehow. Anyhow, it never hurts
to send the patch to the author mentioned in `README`.
I will commit your patch probably tomorrow to give others time for
comments.
Thanks,
Paul
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] tiobench: Add version 0.3.3 (initial recipe)
2011-05-31 8:11 ` Paul Menzel
@ 2011-06-09 19:35 ` Paul Menzel
0 siblings, 0 replies; 5+ messages in thread
From: Paul Menzel @ 2011-06-09 19:35 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 355 bytes --]
Dear Ludovic,
Am Dienstag, den 31.05.2011, 10:11 +0200 schrieb Paul Menzel:
[…]
> I will commit your patch probably tomorrow to give others time for
> comments.
I am sorry, that it took longer. Please update the state of the sent
patches in our patch queue [1].
Thanks,
Paul
[1] http://openembedded.org/index.php/Patchwork
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-09 19:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30 16:43 [PATCH v2] tiobench: add new recipe for 0.3.3 version Ludovic Desroches
2011-05-30 19:04 ` [PATCH v3] tiobench: Add version 0.3.3 (initial recipe) Paul Menzel
2011-05-31 7:08 ` Ludovic Desroches
2011-05-31 8:11 ` Paul Menzel
2011-06-09 19:35 ` Paul Menzel
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.