From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YNHuK-0004O4-O0 for ptxdist@pengutronix.de; Mon, 16 Feb 2015 10:24:00 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1YNHuK-0001gF-Mg for ptxdist@pengutronix.de; Mon, 16 Feb 2015 10:24:00 +0100 Date: Mon, 16 Feb 2015 10:24:00 +0100 From: Michael Olbrich Message-ID: <20150216092400.GB7021@pengutronix.de> References: <1423389444-31122-1-git-send-email-mpa@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1423389444-31122-1-git-send-email-mpa@pengutronix.de> Subject: Re: [ptxdist] [PATCH] cbenchsuite: Initial commit, v1.0 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@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 > --- > 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 +# > +# 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 ") > + @$(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