mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] blktrace: add new package
@ 2019-06-25 10:14 Jan Luebbe
  2019-06-25 10:24 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Luebbe @ 2019-06-25 10:14 UTC (permalink / raw)
  To: ptxdist; +Cc: Jan Luebbe

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 rules/blktrace.in   |  8 +++++++
 rules/blktrace.make | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 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..2b41afdf2c7c
--- /dev/null
+++ b/rules/blktrace.make
@@ -0,0 +1,66 @@
+# -*-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) blktrace blkparse
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/blktrace.install:
+	@$(call targetinfo)
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# 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, $(BLKTRACE_DIR)/blkparse, \
+		/usr/bin/blkparse)
+	@$(call install_copy, blktrace, 0, 0, 0755, $(BLKTRACE_DIR)/blktrace, \
+		/usr/sbin/blktrace)
+
+	@$(call install_finish, blktrace)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] blktrace: add new package
  2019-06-25 10:14 [ptxdist] [PATCH] blktrace: add new package Jan Luebbe
@ 2019-06-25 10:24 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2019-06-25 10:24 UTC (permalink / raw)
  To: ptxdist

On Tue, Jun 25, 2019 at 12:14:36PM +0200, Jan Luebbe wrote:
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---
>  rules/blktrace.in   |  8 +++++++
>  rules/blktrace.make | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 74 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..2b41afdf2c7c
> --- /dev/null
> +++ b/rules/blktrace.make
> @@ -0,0 +1,66 @@
> +# -*-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) blktrace blkparse

BLKTRACE_MAKE_OPT	:= \
	$(CROSS_ENV) \
	prefix=/usr \
	ALL="blktrace blkparse"

BLKTRACE_INSTALL_OPT	:= \
	$(BLKTRACE_MAKE_OPT) \
	install

Should work. Then use the default install stage and '-' as source in
targetinstall.

Michael

> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/blktrace.install:
> +	@$(call targetinfo)
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# 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, $(BLKTRACE_DIR)/blkparse, \
> +		/usr/bin/blkparse)
> +	@$(call install_copy, blktrace, 0, 0, 0755, $(BLKTRACE_DIR)/blktrace, \
> +		/usr/sbin/blktrace)
> +
> +	@$(call install_finish, blktrace)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-25 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 10:14 [ptxdist] [PATCH] blktrace: add new package Jan Luebbe
2019-06-25 10:24 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox