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