From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] cbenchsuite: Initial commit, v1.0
Date: Mon, 16 Feb 2015 10:24:00 +0100 [thread overview]
Message-ID: <20150216092400.GB7021@pengutronix.de> (raw)
In-Reply-To: <1423389444-31122-1-git-send-email-mpa@pengutronix.de>
On Sun, Feb 08, 2015 at 10:57:24AM +0100, Markus Pargmann wrote:
> Add a rule for cbenchsuite.
>
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> ---
> rules/cbenchsuite.in | 11 ++++++++
> rules/cbenchsuite.make | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 79 insertions(+)
> create mode 100644 rules/cbenchsuite.in
> create mode 100644 rules/cbenchsuite.make
>
> diff --git a/rules/cbenchsuite.in b/rules/cbenchsuite.in
> new file mode 100644
> index 000000000000..4b9280fbdf11
> --- /dev/null
> +++ b/rules/cbenchsuite.in
> @@ -0,0 +1,11 @@
> +## SECTION=test_suites
> +
> +config CBENCHSUITE
> + tristate
> + prompt "cbenchsuite"
'readelf -d' says:
select LIBC_PTHREAD
select LIBC_DL
select LIBC_M
select LIBUUID
> + select HOST_CMAKE
> + select SQLITE
> +
> + help
> + cbenchsuite is a benchmark suite including plotter for high accuracy
> + measurements. See http://cbenchsuite.org
> diff --git a/rules/cbenchsuite.make b/rules/cbenchsuite.make
> new file mode 100644
> index 000000000000..84f86d6335dd
> --- /dev/null
> +++ b/rules/cbenchsuite.make
> @@ -0,0 +1,68 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2015 by Markus Pargmann <mpa@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_CBENCHSUITE) += cbenchsuite
> +
> +#
> +# Paths and names
> +#
> +CBENCHSUITE_VERSION := 1.0
> +CBENCHSUITE_MD5 := d5bddd48495edf7200d11fce03a310ef
> +CBENCHSUITE := cbenchsuite-$(CBENCHSUITE_VERSION)
> +CBENCHSUITE_SUFFIX := tar.gz
> +CBENCHSUITE_URL := https://github.com/scosu/cbenchsuite/archive/v$(CBENCHSUITE_VERSION).$(CBENCHSUITE_SUFFIX)
> +CBENCHSUITE_SOURCE := $(SRCDIR)/$(CBENCHSUITE).$(CBENCHSUITE_SUFFIX)
> +CBENCHSUITE_DIR := $(BUILDDIR)/$(CBENCHSUITE)
> +CBENCHSUITE_LICENSE := GPL
> +
> +#
> +# autoconf
> +#
> +CBENCHSUITE_CONF_TOOL := cmake
> +CBENCHSUITE_CONF_OPT = \
> + $(CROSS_CMAKE_USR) \
> + -DBUILD_TESTS:BOOL=OFF \
> + -DPython_PREFERRED_VERSION=python$(PYTHON_MAJORMINOR) \
Does it work without Python on the target? If not use 'select PYTHON if
RUNTIME' above.
> + -DMODULE_COMPRESSION:BOOL=ON \
> + -DMODULE_COOLDOWN:BOOL=ON \
> + -DMODULE_CPUSCHED:BOOL=ON \
> + -DMODULE_KERNEL:BOOL=ON \
> + -DMODULE_LINUX_PERF:BOOL=ON \
> + -DMODULE_MATH:BOOL=ON \
> + -DMODULE_SYSCTL:BOOL=ON \
> + -DDB_DIR:STRING=/run/cbenchsuite/db/ \
> + -DWORK_DIR:STRING=/run/cbenchsuite/work/ \
> + -DDOWNLOAD_DIR:STRING=/run/cbenchsuite/downloads/
> +
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/cbenchsuite.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, cbenchsuite)
> + @$(call install_fixup, cbenchsuite,PRIORITY,optional)
> + @$(call install_fixup, cbenchsuite,SECTION,base)
> + @$(call install_fixup, cbenchsuite,AUTHOR,"Markus Pargmann <mpa@pengutronix.de>")
> + @$(call install_fixup, cbenchsuite,DESCRIPTION,missing)
> +
> + @$(call install_tree, cbenchsuite, 0, 0, -, /usr/bin)
It's just one binary. Use install_copy
> + @$(call install_tree, cbenchsuite, 0, 0, -, /usr/lib)
Use /usr/lib/cbenchsuite. We use the most restrictive path for things like
this.
Michael
> +
> + @$(call install_finish, cbenchsuite)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.1.4
>
>
> --
> 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
prev parent reply other threads:[~2015-02-16 9:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-08 9:57 Markus Pargmann
2015-02-16 9:24 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150216092400.GB7021@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox