blktrace: new package

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Gustavo Zacarias 2014-12-09 11:28:29 -03:00 committed by Thomas Petazzoni
parent 5d4734084d
commit c5f14b7ef6
4 changed files with 44 additions and 0 deletions

View File

@ -52,6 +52,7 @@ endif
endmenu
menu "Debugging, profiling and benchmark"
source "package/blktrace/Config.in"
source "package/bonnie/Config.in"
source "package/cache-calibrator/Config.in"
source "package/dhrystone/Config.in"

View File

@ -0,0 +1,19 @@
config BR2_PACKAGE_BLKTRACE
bool "blktrace"
# Uses posix_spawn()
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL
# Because of libaio arch depends
depends on \
BR2_arm || BR2_armeb || BR2_avr32 || BR2_i386 || \
BR2_m68k || BR2_mips || BR2_mipsel || BR2_powerpc || \
BR2_sparc || BR2_x86_64
select BR2_PACKAGE_LIBAIO
help
blktrace is a block layer IO tracing mechanism which provides
detailed information about request queue operations
up to user space.
http://git.kernel.dk/?p=blktrace.git;a=summary
comment "blktrace needs a (e)glibc or musl toolchain"
depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)

View File

@ -0,0 +1,2 @@
# From http://brick.kernel.dk/snaps/MD5SUMS
md5 9a6ca62330c8adb0b6a4ea6cf8a55694 blktrace-1.1.0.tar.gz

View File

@ -0,0 +1,22 @@
################################################################################
#
# blktrace
#
################################################################################
BLKTRACE_VERSION = 1.1.0
BLKTRACE_SITE = http://brick.kernel.dk/snaps
BLKTRACE_DEPENDENCIES = libaio
BLKTRACE_LICENSE = GPLv2+
BLKTRACE_LICENSE_FILES = COPYING
define BLKTRACE_BUILD_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define BLKTRACE_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) install \
DESTDIR=$(TARGET_DIR) prefix=/usr
endef
$(eval $(generic-package))