* [ptxdist] [PATCH v2] blktrace: add new package
@ 2019-06-25 14:14 Jan Luebbe
0 siblings, 0 replies; only message in thread
From: Jan Luebbe @ 2019-06-25 14:14 UTC (permalink / raw)
To: ptxdist; +Cc: Jan Luebbe
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
Changes since v1:
Use 'prefix=/usr ALL="blktrace blkparse"' in BLKTRACE_MAKE_OPT to build
only the relevant binaries. This also allows using the upsteam install
target.
rules/blktrace.in | 8 ++++++
rules/blktrace.make | 63 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
create mode 100644 rules/blktrace.in
create mode 100644 rules/blktrace.make
diff --git a/rules/blktrace.in b/rules/blktrace.in
new file mode 100644
index 000000000000..69335e2e4288
--- /dev/null
+++ b/rules/blktrace.in
@@ -0,0 +1,8 @@
+## SECTION=disk_and_file
+
+config BLKTRACE
+ tristate
+ prompt "blktrace"
+ help
+ Collects and parses block IO traces using the CONFIG_BLK_DEV_IO_TRACE
+ kernel feature.
diff --git a/rules/blktrace.make b/rules/blktrace.make
new file mode 100644
index 000000000000..c39107a9814d
--- /dev/null
+++ b/rules/blktrace.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Jan Luebbe <jlu@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_BLKTRACE) += blktrace
+
+#
+# Paths and names
+#
+BLKTRACE_VERSION := 1.2.0
+BLKTRACE_MD5 := b9a80b7cc0a50f7a96d34c570ab8224d
+BLKTRACE := blktrace-$(BLKTRACE_VERSION)
+BLKTRACE_SUFFIX := tar.bz2
+BLKTRACE_URL := http://brick.kernel.dk/snaps/$(BLKTRACE).$(BLKTRACE_SUFFIX)
+BLKTRACE_SOURCE := $(SRCDIR)/$(BLKTRACE).$(BLKTRACE_SUFFIX)
+BLKTRACE_DIR := $(BUILDDIR)/$(BLKTRACE)
+BLKTRACE_LICENSE := GPL-2.0-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+BLKTRACE_CONF_TOOL := NO
+BLKTRACE_MAKE_PAR := NO
+BLKTRACE_MAKE_OPT := \
+ $(CROSS_ENV) \
+ prefix=/usr \
+ ALL="blktrace blkparse"
+
+BLKTRACE_INSTALL_OPT := \
+ $(BLKTRACE_MAKE_OPT) \
+ install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blktrace.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, blktrace)
+ @$(call install_fixup, blktrace,PRIORITY,optional)
+ @$(call install_fixup, blktrace,SECTION,base)
+ @$(call install_fixup, blktrace,AUTHOR,"Jan Luebbe <jlu@pengutronix.de>")
+ @$(call install_fixup, blktrace,DESCRIPTION,missing)
+
+ @$(call install_copy, blktrace, 0, 0, 0755, -, /usr/bin/blkparse)
+ @$(call install_copy, blktrace, 0, 0, 0755, -, /usr/bin/blktrace)
+
+ @$(call install_finish, blktrace)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-25 14:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 14:14 [ptxdist] [PATCH v2] blktrace: add new package Jan Luebbe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox