* [Buildroot] [PATCH] blktrace: new package
@ 2014-12-09 14:28 Gustavo Zacarias
2014-12-10 21:02 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2014-12-09 14:28 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
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))
--
2.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] blktrace: new package
2014-12-09 14:28 [Buildroot] [PATCH] blktrace: new package Gustavo Zacarias
@ 2014-12-10 21:02 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-12-10 21:02 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Tue, 9 Dec 2014 11:28:29 -0300, Gustavo Zacarias wrote:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> 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
Thanks applied. See one comment below, though.
> + # 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
That's now the third duplication of this list of architecture
dependencies (it's already in the gadgetfs-test package. Maybe time to
add a BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS variable?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-10 21:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 14:28 [Buildroot] [PATCH] blktrace: new package Gustavo Zacarias
2014-12-10 21:02 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox