2 # Copyright (C) 2009-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=https
://www.coker.com.au
/bonnie
++/
16 PKG_HASH
:=e27b386ae0dc054fa7b530aab6bdead7aea6337a864d1f982bc9ebacb320746e
18 PKG_MAINTAINER
:=Florian Fainelli
<florian@openwrt.org
>
20 PKG_LICENSE_FILES
:=copyright.txt
25 include $(INCLUDE_DIR
)/uclibc
++.mk
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/bonniexx
31 DEPENDS
:=$(CXX_DEPENDS
) +libpthread
32 TITLE
:=Bonnie
++ - hard drive bottleneck testing program.
33 URL
:=https
://www.coker.com.au
/bonnie
++/
36 define Package
/bonniexx
/description
37 Bonnie
++ is a benchmark suite that is aimed at performing a number of simple
38 tests of hard drive and file system performance.
41 ifeq ($(CONFIG_USE_UCLIBCXX
),y
)
42 TARGET_LDFLAGS
+=-nodefaultlibs
45 TARGET_CXXFLAGS
+=-fno-rtti
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 TARGET_CXX
="$(TARGET_CXX)" \
50 TARGET_LINK
="$(TARGET_CXX)" \
51 MORECFLAGS
="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS)" \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 define Package
/bonniexx
/install
57 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(CP
) $(PKG_BUILD_DIR
)/bonnie
++ $(1)/usr
/bin
/
59 $(CP
) $(PKG_BUILD_DIR
)/bon_csv2html
$(1)/usr
/bin
/
62 $(eval
$(call BuildPackage
,bonniexx
))