From patchwork Tue Dec 9 14:28:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 419081 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id EEE3914009B for ; Wed, 10 Dec 2014 01:30:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 544F895CEF; Tue, 9 Dec 2014 14:30:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dgsZMeiV7Xsw; Tue, 9 Dec 2014 14:30:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8AE8695E27; Tue, 9 Dec 2014 14:30:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 62D571C2826 for ; Tue, 9 Dec 2014 14:30:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5D82491A80 for ; Tue, 9 Dec 2014 14:30:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FVfEuxI4o9sD for ; Tue, 9 Dec 2014 14:30:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.zacarias.com.ar (www.zacarias.com.ar [62.210.192.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id ED92391A67 for ; Tue, 9 Dec 2014 14:30:11 +0000 (UTC) Received: from asgard (cpe-181-46-99-160.telecentro-reversos.com.ar [181.46.99.160] (may be forged)) (authenticated bits=0) by www.zacarias.com.ar (8.14.9/8.14.9) with ESMTP id sB9EU40R028022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 9 Dec 2014 14:30:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1418135409; bh=vbqjuL0ZZTdwAkMYeISxzDaeuz0nrmjg4VYzKXoBJ6E=; h=From:To:Cc:Subject:Date; b=sOo26y0C5Fye6ovhFzXCohILPXdoI96I+NybW6VrhGqL/GAwTxnnOHDOyMC8ojBVA ylSDZIHE6l0/nSU5ONtudG59If9+4lJSyCgrpNGwQrECMoKcGEhFEZRE8CQP1pRLhF AYZ9cPi5aGHpv/n5fxfeFfU83WYEYhQeYD6BNJ9U= Received: by asgard (sSMTP sendmail emulation); Tue, 09 Dec 2014 11:28:29 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Tue, 9 Dec 2014 11:28:29 -0300 Message-Id: <1418135309-909-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 2.0.4 X-Virus-Scanned: clamav-milter 0.98.5 at www X-Virus-Status: Clean Subject: [Buildroot] [PATCH] blktrace: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Gustavo Zacarias --- package/Config.in | 1 + package/blktrace/Config.in | 19 +++++++++++++++++++ package/blktrace/blktrace.hash | 2 ++ package/blktrace/blktrace.mk | 22 ++++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 package/blktrace/Config.in create mode 100644 package/blktrace/blktrace.hash create mode 100644 package/blktrace/blktrace.mk diff --git a/package/Config.in b/package/Config.in index 56e32f6..66632f3 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/blktrace/Config.in b/package/blktrace/Config.in new file mode 100644 index 0000000..e68ae13 --- /dev/null +++ b/package/blktrace/Config.in @@ -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) diff --git a/package/blktrace/blktrace.hash b/package/blktrace/blktrace.hash new file mode 100644 index 0000000..acd42fb --- /dev/null +++ b/package/blktrace/blktrace.hash @@ -0,0 +1,2 @@ +# From http://brick.kernel.dk/snaps/MD5SUMS +md5 9a6ca62330c8adb0b6a4ea6cf8a55694 blktrace-1.1.0.tar.gz diff --git a/package/blktrace/blktrace.mk b/package/blktrace/blktrace.mk new file mode 100644 index 0000000..7687ade --- /dev/null +++ b/package/blktrace/blktrace.mk @@ -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))