From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Jan Luebbe Date: Tue, 25 Jun 2019 16:14:34 +0200 Message-Id: <20190625141434.21967-1-jlu@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v2] blktrace: add new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Jan Luebbe Signed-off-by: Jan Luebbe --- 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 +# +# 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 ") + @$(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