xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-benchmark/iozone3/iozone3_492.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Filesystem and Disk Benchmarking Tool"
2*4882a593SmuzhiyunHOMEPAGE = "http://www.iozone.org/"
3*4882a593SmuzhiyunAUTHOR = "Don Capps <don.capps2@verizon.net>, William D. Norcott <wnorcott@us.oracle.com>"
4*4882a593SmuzhiyunSECTION = "console/tests"
5*4882a593SmuzhiyunLICENSE = "iozone3"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://iozone.c;beginline=37;endline=48;md5=7331260091868dcad0f9edea735b5f4b \
7*4882a593Smuzhiyun    file://iozone.c;beginline=276;endline=282;md5=77f9ee51e45b57a7e7519c4fa0b4f00b \
8*4882a593Smuzhiyun"
9*4882a593SmuzhiyunSRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \
10*4882a593Smuzhiyun    file://parallelism.patch \
11*4882a593Smuzhiyun    file://0001-let-system-headers-provide-pread64.patch \
12*4882a593Smuzhiyun    file://copyright.txt \
13*4882a593Smuzhiyun"
14*4882a593SmuzhiyunSRC_URI[md5sum] = "228f54482c01d1c04c571a9414cd20e5"
15*4882a593SmuzhiyunSRC_URI[sha256sum] = "322981e168f32bd39f54772b82b2906d598d958c37e954e75742e71baf58bb9b"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "iozone3_(?P<pver>\d+).tar"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunS = "${WORKDIR}/${BPN}_${PV}/src/current"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun#
22*4882a593Smuzhiyun# All other arches can use the default OEMAKE except those
23*4882a593Smuzhiyun# explicitly listed below. Another, the iozone3 Makefile
24*4882a593Smuzhiyun# needs to be told about the cross-compiler explicitly here.
25*4882a593Smuzhiyun#
26*4882a593SmuzhiyunEXTRA_OEMAKE:powerpc = "linux-powerpc CC='${CC}' GCC='${CC}'"
27*4882a593SmuzhiyunEXTRA_OEMAKE:powerpc64 = "linux-powerpc64 CC='${CC}' GCC='${CC}'"
28*4882a593SmuzhiyunEXTRA_OEMAKE:powerpc64le = "linux-powerpc64 CC='${CC}' GCC='${CC}'"
29*4882a593SmuzhiyunEXTRA_OEMAKE:x86-64 = "linux-AMD64 CC='${CC}' GCC='${CC}'"
30*4882a593SmuzhiyunEXTRA_OEMAKE:arm = "linux-arm CC='${CC}' GCC='${CC}'"
31*4882a593SmuzhiyunEXTRA_OEMAKE = "linux CC='${CC}' GCC='${CC}'"
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunTARGET_CC_ARCH += "${LDFLAGS}"
34*4882a593Smuzhiyun
35*4882a593Smuzhiyundo_install() {
36*4882a593Smuzhiyun    install -d ${D}${bindir} \
37*4882a593Smuzhiyun               ${D}${mandir}/man1 \
38*4882a593Smuzhiyun               ${D}${datadir}/doc/${BPN}/examples
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun    install -m 0755 ${S}/iozone ${D}${bindir}
41*4882a593Smuzhiyun    install -m 0755 ${S}/fileop ${D}${bindir}
42*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/iozone.1 ${D}${mandir}/man1/
43*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/copyright.txt ${D}${datadir}/doc/${BPN}/
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun    install -m 0644 ${S}/*.dem ${D}${datadir}/doc/${BPN}/examples
46*4882a593Smuzhiyun    install -m 0644 ${S}/client_list ${D}${datadir}/doc/${BPN}/examples
47*4882a593Smuzhiyun    install -m 0644 ${S}/Gnuplot.txt ${D}${datadir}/doc/${BPN}/examples
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun    install -m 0755 ${S}/Generate_Graphs ${D}${datadir}/doc/${BPN}/examples
50*4882a593Smuzhiyun    install -m 0755 ${S}/gengnuplot.sh ${D}${datadir}/doc/${BPN}/examples
51*4882a593Smuzhiyun    install -m 0755 ${S}/report.pl ${D}${datadir}/doc/${BPN}/examples
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/Iozone_ps.gz ${D}${datadir}/doc/${BPN}/
54*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/IOzone_msword_98.pdf ${D}${datadir}/doc/${BPN}/
55*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/Run_rules.doc ${D}${datadir}/doc/${BPN}/
56*4882a593Smuzhiyun}
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunFILES:${PN} += "${datadir}/doc/${PN}/copyright.txt"
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun# LICENSE:
61*4882a593Smuzhiyun#
62*4882a593Smuzhiyun#  Copyright 1991, 1992, 1994, 1998, 1999, 2002   William D. Norcott
63*4882a593Smuzhiyun#
64*4882a593Smuzhiyun#  License to freely use and distribute this software is hereby granted
65*4882a593Smuzhiyun#  by the author, subject to the condition that this copyright notice
66*4882a593Smuzhiyun#  remains intact.  The author retains the exclusive right to publish
67*4882a593Smuzhiyun#  derivative works based on this work, including, but not limited to
68*4882a593Smuzhiyun#  revised versions of this work.
69*4882a593Smuzhiyun#
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun#
72*4882a593Smuzhiyun# Below is author reply to question about distributing iozone3 in
73*4882a593Smuzhiyun# OpenEmbedded:
74*4882a593Smuzhiyun#
75*4882a593Smuzhiyun# ========================================================================
76*4882a593Smuzhiyun#
77*4882a593Smuzhiyun# Marcin,
78*4882a593Smuzhiyun#
79*4882a593Smuzhiyun#     Re-distribution is permitted as long as the copyright is
80*4882a593Smuzhiyun#     maintained and the source code is not changed. I do not
81*4882a593Smuzhiyun#     see a problem with your mods to enable fileop for Linux-arm,
82*4882a593Smuzhiyun#     as these mods have been returned to the Iozone folks,
83*4882a593Smuzhiyun#     and they have been accepted for inclusion in the next
84*4882a593Smuzhiyun#     release :-)
85*4882a593Smuzhiyun#
86*4882a593Smuzhiyun# Thank you for your contribution,
87*4882a593Smuzhiyun# Don Capps
88*4882a593Smuzhiyun#
89*4882a593Smuzhiyun# ----- Original Message -----
90*4882a593Smuzhiyun# From: "Marcin Juszkiewicz" <firma@hrw.one.pl>
91*4882a593Smuzhiyun# To: "Don Capps" <don.capps2@verizon.net>; "William D. Norcott"
92*4882a593Smuzhiyun# <wnorcott@us.oracle.com>
93*4882a593Smuzhiyun# Sent: Sunday, October 29, 2006 4:55 PM
94*4882a593Smuzhiyun# Subject: iozone3 263 patch for arm and License question
95*4882a593Smuzhiyun#
96*4882a593Smuzhiyun#
97*4882a593Smuzhiyun# > Morning
98*4882a593Smuzhiyun# >
99*4882a593Smuzhiyun# > I want to include iozone3 in OpenEmbedded [1] metadata to give it for
100*4882a593Smuzhiyun# > other developers. Currently OE is used to build few distributions for
101*4882a593Smuzhiyun# > misc platforms: ARM, SH3, SH4, x86, PowerPC and different types of
102*4882a593Smuzhiyun# > machines (PDA, settopbox, devboards, desktops, thin clients, routers).
103*4882a593Smuzhiyun# >
104*4882a593Smuzhiyun# > According to your distribution of derivations is forbidden. Packaging
105*4882a593Smuzhiyun# > iozone3 in OpenEmbedded will not involve any source code changes. But
106*4882a593Smuzhiyun# > when I was building it for ARM I discovered that fileop binary was not
107*4882a593Smuzhiyun# > built - so I created patch for it (attached). Not yet tested it on target
108*4882a593Smuzhiyun# > device.
109*4882a593Smuzhiyun# >
110*4882a593Smuzhiyun# > Thus, I seek your written permission via e-mail to distribute a package of
111*4882a593Smuzhiyun# > the unmodified source code and also a package of the pre-compiled binary.
112*4882a593Smuzhiyun# > Your copyright statement will be included in the package.
113*4882a593Smuzhiyun# >
114*4882a593Smuzhiyun# >
115*4882a593Smuzhiyun# > 1. http://www.openembedded.org/
116*4882a593Smuzhiyun# >
117*4882a593Smuzhiyun# > Regards
118*4882a593Smuzhiyun# > --
119*4882a593Smuzhiyun# > JID: hrw-jabber.org
120*4882a593Smuzhiyun# > OpenEmbedded developer/consultant
121*4882a593Smuzhiyun
122