summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/iozone3
diff options
context:
space:
mode:
authorNoor Ahsan <noor_ahsan@mentor.com>2011-08-30 21:08:34 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-09-01 13:05:42 +0200
commit2917b4f41c2731c91fa55057ca5172f1915ccddb (patch)
treef956acd5fc8cdabe1f05abc476760fc814ccdd7f /meta-oe/recipes-benchmark/iozone3
parent2b38b5b74234dddf722d10eb9fbf5f5a78840b39 (diff)
downloadmeta-openembedded-2917b4f41c2731c91fa55057ca5172f1915ccddb.tar.gz
iozone3: Add version 263 (initial recipe)
* Import from oe.dev commit id b55dcd636a162541a4cdcace8c106869fbb9465b. * Bring LIC_FILES_CHKSUM from iozone.c file. Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-benchmark/iozone3')
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3/copyright.txt62
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3/fileop-arm.patch32
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3_263.bb111
3 files changed, 205 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3/copyright.txt b/meta-oe/recipes-benchmark/iozone3/iozone3/copyright.txt
new file mode 100644
index 000000000..3468fa929
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3/copyright.txt
@@ -0,0 +1,62 @@
1LICENSE:
2
3 Copyright 1991, 1992, 1994, 1998, 1999, 2002 William D. Norcott
4
5 License to freely use and distribute this software is hereby granted
6 by the author, subject to the condition that this copyright notice
7 remains intact. The author retains the exclusive right to publish
8 derivative works based on this work, including, but not limited to
9 revised versions of this work.
10
11
12
13Below is author reply to question about distributing iozone3 in
14OpenEmbedded:
15
16========================================================================
17
18Marcin,
19
20 Re-distribution is permitted as long as the copyright is
21 maintained and the source code is not changed. I do not
22 see a problem with your mods to enable fileop for Linux-arm,
23 as these mods have been returned to the Iozone folks,
24 and they have been accepted for inclusion in the next
25 release :-)
26
27Thank you for your contribution,
28Don Capps
29
30----- Original Message -----
31From: "Marcin Juszkiewicz" <firma@hrw.one.pl>
32To: "Don Capps" <don.capps2@verizon.net>; "William D. Norcott"
33<wnorcott@us.oracle.com>
34Sent: Sunday, October 29, 2006 4:55 PM
35Subject: iozone3 263 patch for arm and License question
36
37
38> Morning
39>
40> I want to include iozone3 in OpenEmbedded [1] metadata to give it for
41> other developers. Currently OE is used to build few distributions for
42> misc platforms: ARM, SH3, SH4, x86, PowerPC and different types of
43> machines (PDA, settopbox, devboards, desktops, thin clients, routers).
44>
45> According to your distribution of derivations is forbidden. Packaging
46> iozone3 in OpenEmbedded will not involve any source code changes. But
47> when I was building it for ARM I discovered that fileop binary was not
48> built - so I created patch for it (attached). Not yet tested it on target
49> device.
50>
51> Thus, I seek your written permission via e-mail to distribute a package of
52> the unmodified source code and also a package of the pre-compiled binary.
53> Your copyright statement will be included in the package.
54>
55>
56> 1. http://www.openembedded.org/
57>
58> Regards
59> --
60> JID: hrw-jabber.org
61> OpenEmbedded developer/consultant
62
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3/fileop-arm.patch b/meta-oe/recipes-benchmark/iozone3/iozone3/fileop-arm.patch
new file mode 100644
index 000000000..c71bfee9d
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3/fileop-arm.patch
@@ -0,0 +1,32 @@
1Modify makefile to compile fileop.c file for ARM architecture.
2
3Upstream-Status: Inappropriate [not author]
4Index: current/makefile
5===================================================================
6--- current.orig/makefile 2006-10-14 21:42:36.000000000 +0200
7+++ current/makefile 2006-10-14 21:40:02.000000000 +0200
8@@ -190,9 +190,10 @@
9 #
10 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
11 #
12-linux-arm: iozone_linux-arm.o libbif.o libasync.o
13+linux-arm: iozone_linux-arm.o libbif.o libasync.o fileop_linux-arm.o
14 $(CC) -O3 $(LDFLAGS) iozone_linux-arm.o libbif.o libasync.o \
15 -lrt -lpthread -o iozone
16+ $(CC) -O3 -Dlinux fileop_linux-arm.o -o fileop
17
18 #
19 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
20@@ -725,6 +726,12 @@
21 @echo ""
22 $(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux-AMD64.o
23
24+fileop_linux-arm.o: fileop.c
25+ @echo ""
26+ @echo "Building fileop for Linux-arm"
27+ @echo ""
28+ $(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux-arm.o
29+
30 fileop_windows.o: fileop.c
31 @echo ""
32 @echo "Building fileop for Windows"
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3_263.bb b/meta-oe/recipes-benchmark/iozone3/iozone3_263.bb
new file mode 100644
index 000000000..c1aa7fb3e
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3_263.bb
@@ -0,0 +1,111 @@
1DESCRIPTION = "Filesystem and Disk Benchmarking Tool"
2HOMEPAGE = "http://www.iozone.org/"
3AUTHOR = "Don Capps <don.capps2@verizon.net>, William D. Norcott <wnorcott@us.oracle.com>"
4SECTION = "console/tests"
5LICENSE = "iozone3"
6LIC_FILES_CHKSUM = "file://iozone.c;beginline=237;endline=241;md5=ab42a6185fd0443978871f11a007ac0b"
7
8
9SRC_URI = "http://www.iozone.org/src/current/iozone3_263.tar \
10 file://copyright.txt \
11 file://fileop-arm.patch \
12 "
13SRC_URI[md5sum] = "44fd88df361ec4508e10c8d6615245fa"
14SRC_URI[sha256sum] = "920fde1a3843539570e2df4aa611e74df102e52d363c5973d5a9d15bdf976461"
15
16S = "${WORKDIR}/${PN}_${PV}/src/current/"
17
18EXTRA_OEMAKE_powerpc = "linux-powerpc CC='${CC}'"
19EXTRA_OEMAKE_powerpc64 = "linux-powerpc64 CC='${CC}'"
20EXTRA_OEMAKE_arm = "linux-arm CC='${CC}'"
21EXTRA_OEMAKE = "linux CC='${CC}'"
22
23TARGET_CC_ARCH += "${LDFLAGS}"
24
25do_install() {
26 install -d ${D}${bindir} \
27 ${D}${mandir}/man1 \
28 ${D}${datadir}/doc/${PN}/examples
29
30 install -m 0755 ${S}/iozone ${D}${bindir}
31 install -m 0755 ${S}/fileop ${D}${bindir}
32 install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/iozone.1 ${D}${mandir}/man1/
33 install -m 0644 ${WORKDIR}/copyright.txt ${D}${datadir}/doc/${PN}/
34
35 install -m 0644 ${S}/*.dem ${D}${datadir}/doc/${PN}/examples
36 install -m 0644 ${S}/client_list ${D}${datadir}/doc/${PN}/examples
37 install -m 0644 ${S}/Gnuplot.txt ${D}${datadir}/doc/${PN}/examples
38
39 install -m 0755 ${S}/Generate_Graphs ${D}${datadir}/doc/${PN}/examples
40 install -m 0755 ${S}/gengnuplot.sh ${D}${datadir}/doc/${PN}/examples
41 install -m 0755 ${S}/report.pl ${D}${datadir}/doc/${PN}/examples
42
43 install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/Iozone_ps.gz ${D}${datadir}/doc/${PN}/
44 install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/IOzone_msword_98.pdf ${D}${datadir}/doc/${PN}/
45 install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/Run_rules.doc ${D}${datadir}/doc/${PN}/
46}
47
48FILES_${PN} += "${datadir}/doc/${PN}/copyright.txt"
49
50# LICENSE:
51#
52# Copyright 1991, 1992, 1994, 1998, 1999, 2002 William D. Norcott
53#
54# License to freely use and distribute this software is hereby granted
55# by the author, subject to the condition that this copyright notice
56# remains intact. The author retains the exclusive right to publish
57# derivative works based on this work, including, but not limited to
58# revised versions of this work.
59#
60
61#
62# Below is author reply to question about distributing iozone3 in
63# OpenEmbedded:
64#
65# ========================================================================
66#
67# Marcin,
68#
69# Re-distribution is permitted as long as the copyright is
70# maintained and the source code is not changed. I do not
71# see a problem with your mods to enable fileop for Linux-arm,
72# as these mods have been returned to the Iozone folks,
73# and they have been accepted for inclusion in the next
74# release :-)
75#
76# Thank you for your contribution,
77# Don Capps
78#
79# ----- Original Message -----
80# From: "Marcin Juszkiewicz" <firma@hrw.one.pl>
81# To: "Don Capps" <don.capps2@verizon.net>; "William D. Norcott"
82# <wnorcott@us.oracle.com>
83# Sent: Sunday, October 29, 2006 4:55 PM
84# Subject: iozone3 263 patch for arm and License question
85#
86#
87# > Morning
88# >
89# > I want to include iozone3 in OpenEmbedded [1] metadata to give it for
90# > other developers. Currently OE is used to build few distributions for
91# > misc platforms: ARM, SH3, SH4, x86, PowerPC and different types of
92# > machines (PDA, settopbox, devboards, desktops, thin clients, routers).
93# >
94# > According to your distribution of derivations is forbidden. Packaging
95# > iozone3 in OpenEmbedded will not involve any source code changes. But
96# > when I was building it for ARM I discovered that fileop binary was not
97# > built - so I created patch for it (attached). Not yet tested it on target
98# > device.
99# >
100# > Thus, I seek your written permission via e-mail to distribute a package of
101# > the unmodified source code and also a package of the pre-compiled binary.
102# > Your copyright statement will be included in the package.
103# >
104# >
105# > 1. http://www.openembedded.org/
106# >
107# > Regards
108# > --
109# > JID: hrw-jabber.org
110# > OpenEmbedded developer/consultant
111