summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchase maupin <chase.maupin@ti.com>2014-03-21 09:06:53 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2014-03-26 21:58:01 +0100
commitc99803b0e50ebc7ac5dfec9efc92e493bb37d5c2 (patch)
tree8fd469920d389a727c8ee6f97c601f47d66ec828
parenta9a40bc88d19f25452ff779942392dfe45ee0437 (diff)
downloadmeta-openembedded-c99803b0e50ebc7ac5dfec9efc92e493bb37d5c2.tar.gz
pm-qa: Add power management test utils
* 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> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb b/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb
new file mode 100644
index 000000000..4d339753a
--- /dev/null
+++ b/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb
@@ -0,0 +1,65 @@
1DESCRIPTION = "Utilities for testing Power Management"
2HOMEPAGE = "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa"
3
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7PV = "0.4.8"
8
9BRANCH ?= "master"
10
11# Corresponds to tag pm-qa-v0.4.8
12SRCREV = "6a8c2ae8a6035b15a7fbe61b6ca56841e056fa37"
13
14SRC_URI = "git://git.linaro.org/tools/pm-qa.git;protocol=git;branch=${BRANCH}"
15
16S = "${WORKDIR}/git"
17
18CFLAGS += "-pthread"
19
20do_compile () {
21 # Find all the .c files in this project and build them.
22 for x in `find . -name "*.c"`
23 do
24 util=`echo ${x} | sed s/.c$//`
25 oe_runmake ${util}
26 done
27}
28
29do_install () {
30 install -d ${D}${bindir}
31 install -d ${D}${libdir}/${PN}
32
33 # Install the compiled binaries that were built in the previous step
34 for x in `find . -name "*.c"`
35 do
36 util=`echo ${x} | sed s/.c$//`
37 util_basename=`basename ${util}`
38 install -m 0755 ${util} ${D}${bindir}/${util_basename}
39 done
40
41 # Install the helper scripts in a subdirectory of $libdir
42 for script in `find . -name "*.sh" | grep include`
43 do
44 # Remove hardcoded relative paths
45 sed -i -e 's#..\/utils\/##' ${script}
46
47 script_basename=`basename ${script}`
48 install -m 0755 $script ${D}${libdir}/${PN}/${script_basename}
49 done
50
51 # Install the shell scripts NOT in the $libdir directory since those
52 # will be installed elsewhere
53 for script in `find . -name "*.sh" | grep -v include`
54 do
55 # if the script includes any helper scripts from the $libdir
56 # directory then change the source path to the absolute path
57 # to reflect the install location of the helper scripts.
58 sed -i -e "s#source ../include#source ${libdir}/${PN}#g" ${script}
59 # Remove hardcoded relative paths
60 sed -i -e 's#..\/utils\/##' ${script}
61
62 script_basename=`basename ${script}`
63 install -m 0755 $script ${D}${bindir}/${script_basename}
64 done
65}