SmartAudio/package/utils/iozone/Makefile

55 lines
1.2 KiB
Makefile
Raw Normal View History

2018-07-13 01:31:50 +00:00
#
# Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=iozone3
PKG_VERSION:=444
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.iozone.org/src/current/
PKG_MD5SUM:=bca578aded3c3682412eb243774bb6da
PKG_BUILD_DIR:=$(COMPILE_DIR)/$(PKG_NAME)_$(PKG_VERSION)
PKG_LICENSE:=
include $(BUILD_DIR)/package.mk
define Package/iozone3
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Iozone Filesystem Benchmark
endef
define Package/iozone3/description
iozone is a tool to test filesystem performance
endef
TARGET_CFLAGS +=
define Build/Configure
endef
define Build/Compile
mkdir -p $(PKG_INSTALL_DIR)
$(MAKE) -C $(PKG_BUILD_DIR)/src/current \
CC="$(TARGET_CC)" \
GCC="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
linux-arm
endef
define Package/iozone3/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/src/current/iozone $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/src/current/fileop $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/src/current/pit_server $(1)/usr/bin
endef
$(eval $(call BuildPackage,iozone3))