1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# -*-makefile-*-
# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $
#
# Copyright (C) 2009 by Luotao Fu <l.fu@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_IOZONE) += iozone
#
# Paths and names
#
IOZONE_VERSION := 321
IOZONE := iozone3_$(IOZONE_VERSION)
IOZONE_SUFFIX := tar
IOZONE_URL := http://www.iozone.org/src/current/$(IOZONE).$(IOZONE_SUFFIX)
IOZONE_SOURCE := $(SRCDIR)/$(IOZONE).$(IOZONE_SUFFIX)
IOZONE_DIR := $(BUILDDIR)/$(IOZONE)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(IOZONE_SOURCE):
@$(call targetinfo)
@$(call get, IOZONE)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/iozone.extract:
@$(call targetinfo)
@$(call clean, $(IOZONE_DIR))
@$(call extract, IOZONE)
@$(call patchin, IOZONE)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
IOZONE_PATH := PATH=$(CROSS_PATH)
IOZONE_ENV := $(CROSS_ENV)
#
# autoconf
#
IOZONE_AUTOCONF := $(CROSS_AUTOCONF_USR) \
--disable-debug
$(STATEDIR)/iozone.prepare:
@$(call targetinfo)
@$(call clean, $(IOZONE_DIR)/config.cache)
@chmod +x $(IOZONE_DIR)/configure
cd $(IOZONE_DIR) && \
$(IOZONE_PATH) $(IOZONE_ENV) \
./configure $(IOZONE_AUTOCONF)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
$(STATEDIR)/iozone.compile:
@$(call targetinfo)
cd $(IOZONE_DIR) && $(IOZONE_PATH) $(MAKE) $(PARALLELMFLAGS)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/iozone.install:
@$(call targetinfo)
@$(call install, IOZONE)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/iozone.targetinstall:
@$(call targetinfo)
@$(call install_init, iozone)
@$(call install_fixup, iozone,PACKAGE,iozone)
@$(call install_fixup, iozone,PRIORITY,optional)
@$(call install_fixup, iozone,VERSION,$(IOZONE_VERSION))
@$(call install_fixup, iozone,SECTION,base)
@$(call install_fixup, iozone,AUTHOR,"Luotao Fu <l.fu@pengutronix.de>")
@$(call install_fixup, iozone,DEPENDS,)
@$(call install_fixup, iozone,DESCRIPTION,missing)
@$(call install_copy, iozone, 0, 0, 0755, $(IOZONE_DIR)/src/current/iozone, /usr/bin/iozone)
@$(call install_copy, iozone, 0, 0, 0755, $(IOZONE_DIR)/src/current/fileop, /usr/bin/fileop)
@$(call install_finish, iozone)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
iozone_clean:
rm -rf $(STATEDIR)/iozone.*
rm -rf $(PKGDIR)/iozone_*
rm -rf $(IOZONE_DIR)
# vim: syntax=make
|