All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] pm-qa-utils: Add power management test utils
Date: Fri, 21 Mar 2014 10:09:47 +0100	[thread overview]
Message-ID: <lggvj4$7g6$1@ger.gmane.org> (raw)
In-Reply-To: <1395326848-4434-1-git-send-email-Chase.Maupin@ti.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chase Maupin schreef op 20-03-14 15:47:
> * The power management test utilities from Linaro can be used to test
> multiple PM features such as cpufreq, cpuidle, thermal control and
> suspend operations. * These utilities are not platform specific and can
> be used by a broader base of users.
> 
> Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>

Everything refers to this as 'pm-qa', not 'pm-qa-utils'

> --- .../pm-qa-utils/pm-qa-utils_git.bb                 |   63
> ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644
> meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb
> 
> diff --git a/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb
> b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file mode
> 100644 index 0000000..610f3a7 --- /dev/null +++
> b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb @@ -0,0 +1,63
> @@ +DESCRIPTION = "Utilities from Linaro for testing Power Management" 
> +HOMEPAGE =
> "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa"
>
> 
+
> +LICENSE = "GPLv2" +LIC_FILES_CHKSUM =
> "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV = "0.4.4" + 
> +BRANCH ?= "master" +SRCREV = "fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4" 
> + +SRC_URI =
> "git://git.linaro.org/tools/pm-qa.git;protocol=git;branch=${BRANCH}" + +S
> = "${WORKDIR}/git" + +CFLAGS += "-pthread" + +do_compile () { +    # Find
> all the .c files in this project and build them. +    for x in `find .
> -name "*.c"` +    do +        util=`echo ${x} | sed s/.c$//` +
> oe_runmake ${util} +    done +} + +do_install () { +    install -d
> ${D}${bindir} +    install -d ${D}${bindir}/linaro-pm-qa-include

Please don't use subdirs in $bindir, that's what $libdir and $libexecdir are
for.

> + +    # Install the compiled binaries the were built in the previous
> step +    for x in `find . -name "*.c"` +    do +        util=`echo ${x}
> | sed s/.c$//` +        util_basename=`basename ${util}` +        install
> -m 0755 ${util} ${D}${bindir}/${util_basename} +    done + +    # Install
> the helper scripts in the include directory +    for script in `find .
> -name "*.sh" | grep include` +    do +        # Remove hardcoded relative
> paths +        sed -i -e 's#..\/utils\/##' ${script} + +
> script_basename=`basename ${script}` +        install -m 0755 $script
> ${D}${bindir}/linaro-pm-qa-include/${script_basename} +    done + +    #
> Install the shell scripts NOT in the include directory since those +    #
> will be installed elsewhere +    for script in `find . -name "*.sh" |
> grep -v include` +    do +        # if the script includes any helper
> scripts from the include +        # directory then change the include
> path to the absolute path +        # to reflect the install location of
> the helper scripts. +        sed -i -e "s#source ../include#source
> ${bindir}/linaro-pm-qa-include#g" ${script} +        # Remove hardcoded
> relative paths +        sed -i -e 's#..\/utils\/##' ${script} + +
> script_basename=`basename ${script}` +        install -m 0755 $script
> ${D}${bindir}/${script_basename} +    done +}
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTLAHbMkyGM64RGpERAp4tAKCqvpUtLAnW+JmNPFue3devsMkfEgCfSBG8
sTfb/tlOntd8/Hs/1JvXqQ4=
=674M
-----END PGP SIGNATURE-----



  parent reply	other threads:[~2014-03-21  9:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 14:47 [PATCH] pm-qa-utils: Add power management test utils Chase Maupin
2014-03-20 16:44 ` Fathi Boudra
2014-03-21 13:50   ` Maupin, Chase
2014-03-21  9:09 ` Koen Kooi [this message]
2014-03-21 12:07   ` Maupin, Chase
2014-03-21 12:10     ` Koen Kooi
2014-03-21 13:46       ` Maupin, Chase

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='lggvj4$7g6$1@ger.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.