Skip to contentSkip to conversation

pm-qa-utils: Add power management test utils

PATCH Superseded Chase Maupin 3 participants 7 messages Mar 20, 2014 – Mar 21, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pm-qa-utils: 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.

---
 .../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
meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +63 -0
new file mode 100644
index 0000000..610f3a7
@@ -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
+
+    # 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
+}
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 22 lines · Chase Maupin

* 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.

---
 .../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

(quoted diff) +0 -0

pm-qa-utils_git.bb
new file mode 100644
index 0000000..610f3a7

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb line 1

Quoted 1 line
meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +1 -0
@@ -0,0 +1,63 @@
+DESCRIPTION = "Utilities from Linaro for testing Power Management"

nitpick, I'll remove "from Linaro" :)

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb line 7

Quoted 10 lines
meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +1 -0
+HOMEPAGE = "

https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa
"

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +5 -0
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+PV = "0.4.4"

we released 0.4.8 today.

Quoted 53 lines
meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +4 -0
+BRANCH ?= "master"
+SRCREV = "fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4"
+
+SRC_URI = "git://

git.linaro.org/tools/pm-qa.git;protocol=git;branch=${BRANCH}<http://git.linaro.org/tools/pm-qa.git;protocol=git;branch=$%7BBRANCH%7D> "

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +34 -0
+
+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
+
+    # 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}

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +10 -0
+    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}

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb line 62

Quoted 6 lines
meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file +6 -0
+        # Remove hardcoded relative paths
+        sed -i -e 's#..\/utils\/##' ${script}
+
+        script_basename=`basename ${script}`
+        install -m 0755 $script ${D}${bindir}/${script_basename}
+    done

we probably need to fix that properly and avoid the LTP style mess (software not meant to be installable).

Quoted 10 lines

+}
--
1.7.9.5

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

FWIW, my comments aren't a blocker/nack. That's something we can address later on.

Cheers,
Fathi

#2 lore raw

From: Fathi Boudra [mailto:[email protected]]
Sent: Thursday, March 20, 2014 11:45 AM
To: [email protected]
Cc: Maupin, Chase
Subject: Re: [oe] [PATCH] pm-qa-utils: Add power management test utils

On 20 March 2014 16:47, Chase Maupin <[email protected]<mailto:[email protected]>> wrote:
* 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.

---
 .../pm-qa-utils/pm-qa-utils_git.bb<http://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<http://pm-qa-utils_git.bb>
meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb<http://pm-qa-utils_git.bb> new file +1 -0
new file mode 100644
index 0000000..610f3a7
@@ -0,0 +1,63 @@
+DESCRIPTION = "Utilities from Linaro for testing Power Management"

nitpick, I'll remove "from Linaro" :)

[CEM] I have another version I need to send so I’ll take care of this.

+HOMEPAGE = "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263<file:///\\COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263>" +
+PV = "0.4.4"

we released 0.4.8 today.

[CEM] I’ll go ahead and bump this

+BRANCH ?= "master"
+SRCREV = "fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4"
+
+SRC_URI = "git://git.linaro.org/tools/pm-qa.git;protocol=git;branch=${BRANCH}<http://git.linaro.org/tools/pm-qa.git;protocol=git;branch=$%7BBRANCH%7D>" +
+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
+

+    # 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

we probably need to fix that properly and avoid the LTP style mess (software not meant to be installable).

+}
--
1.7.9.5

--
_______________________________________________
Openembedded-devel mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

FWIW, my comments aren't a blocker/nack. That's something we can address later on.

Cheers,
Fathi

#3 lore raw
In reply to Chase Maupin

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

Chase Maupin schreef op 20-03-14 15:47:

Quoted 6 lines

* 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.

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

Quoted 4 lines

--- .../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

Quoted 9 lines
(quoted diff) +0 -0

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"

+

Quoted 10 lines

+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.

Quoted 11 lines

+ + # 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" |

Quoted 9 lines

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-----

#4 lore raw

Sincerely,
Chase Maupin
Integration Team Manager
Linux Core Product Development
e-mail: [email protected]
phone: (214) 567-2950

For support:
Forums - http://community.ti.com/forums/
Wiki - http://wiki.davincidsp.com/

Quoted 16 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Friday, March 21, 2014 4:10 AM
To: [email protected]
Subject: Re: [oe] [PATCH] pm-qa-utils: Add power management test utils

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

Chase Maupin schreef op 20-03-14 15:47:

Quoted 1 line

* The power management test utilities from Linaro can be used to

test

Quoted 1 line

multiple PM features such as cpufreq, cpuidle, thermal control

Quoted 8 lines

and

Quoted 1 line

suspend operations. * These utilities are not platform specific

and can

Quoted 3 lines

be used by a broader base of users.

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

I assume you are saying you would rather see this recipe as pm-qa instead of pm-qa-utils?

Quoted 34 lines
Quoted 3 lines

--- .../pm-qa-utils/pm-qa-utils_git.bb | 63
++++++++++++++++++++ 1 file changed, 63 insertions(+) create

mode 100644

Review

Quoted 3 lines

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb

(quoted diff) +0 -0

utils_git.bb

Quoted 1 line

b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new

file mode

Quoted 2 lines

100644 index 0000000..610f3a7 --- /dev/null +++ b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb @@ -

0,0 +1,63

Quoted 1 line

@@ +DESCRIPTION = "Utilities from Linaro for testing Power

Management"

Quoted 2 lines

+HOMEPAGE =

"https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/T estSuite/PmQa"

Quoted 2 lines

+

Quoted 2 lines

+LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV =

"0.4.4" +

Quoted 1 line

+BRANCH ?= "master" +SRCREV =

"fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4"

Quoted 2 lines

+ +SRC_URI =
"git://git.linaro.org/tools/pm-

qa.git;protocol=git;branch=${BRANCH}" + +S

Quoted 1 line

= "${WORKDIR}/git" + +CFLAGS += "-pthread" + +do_compile () { +

# Find

Quoted 1 line

all the .c files in this project and build them. + for x in

`find .

Quoted 8 lines
Quoted 2 lines

-name "*.c" + do + util=echo ${x} | sed s/.c$//` +
oe_runmake ${util} + done +} + +do_install () { + install

-d

Quoted 1 line

${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.

Good point. I did this because the script going into that directory was named "functions.sh" in the original sources. I thought this was a bit generic and could possibly conflict.

What are your thoughts on a subdirectory under $libdir or $libexecdir? Any preference?

Quoted 53 lines
Quoted 2 lines

+ + # Install the compiled binaries the were built in the

previous

Quoted 1 line

step + for x in find . -name "*.c" + do +

util=`echo ${x}

Quoted 1 line

| sed s/.c$// + util_basename=basename ${util}` +

install

Quoted 1 line

-m 0755 ${util} ${D}${bindir}/${util_basename} + done + +

# Install

Quoted 1 line

the helper scripts in the include directory + for script in

`find .

Quoted 1 line

-name "*.sh" | grep include` + do + # Remove hardcoded

relative

Quoted 2 lines

paths + sed -i -e 's#..\/utils\/##' ${script} + +
script_basename=basename ${script} + install -m 0755

$script

Quoted 1 line

${D}${bindir}/linaro-pm-qa-include/${script_basename} + done

+ + #

Quoted 1 line

Install the shell scripts NOT in the include directory since

those + #

Quoted 1 line

will be installed elsewhere + for script in `find . -name

"*.sh" |

Quoted 1 line

grep -v include` + do + # if the script includes any

helper

Quoted 1 line

scripts from the include + # directory then change the

include

Quoted 1 line

path to the absolute path + # to reflect the install

location of

Quoted 1 line

the helper scripts. + sed -i -e "s#source

../include#source

Quoted 1 line

${bindir}/linaro-pm-qa-include#g" ${script} + # Remove

hardcoded

Quoted 1 line

relative paths + sed -i -e 's#..\/utils\/##' ${script} +

+

Quoted 1 line

script_basename=basename ${script} + install -m 0755

$script

Quoted 2 lines

${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-----

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw

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

Maupin, Chase schreef op 21-03-14 13:07:

Quoted 11 lines
Quoted 7 lines

-----Original Message----- From:
[email protected] [mailto:[email protected]] On Behalf Of Koen Kooi Sent: Friday, March 21, 2014 4:10 AM To:
[email protected] Subject: Re: [oe] [PATCH]
pm-qa-utils: Add power management test utils

Chase Maupin schreef op 20-03-14 15:47:

Quoted 1 line
Quoted 1 line
Quoted 1 line

* The power management test utilities from Linaro can be used to

test

Quoted 1 line
Quoted 1 line
Quoted 1 line

multiple PM features such as cpufreq, cpuidle, thermal control

Quoted 11 lines

and

Quoted 1 line
Quoted 1 line
Quoted 1 line

suspend operations. * These utilities are not platform specific

and can

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

be used by a broader base of users.

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

Quoted 2 lines

I assume you are saying you would rather see this recipe as pm-qa instead of pm-qa-utils?

Exactly!

Quoted 33 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

--- .../pm-qa-utils/pm-qa-utils_git.bb | 63
++++++++++++++++++++ 1 file changed, 63 insertions(+) create

mode 100644

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb

(quoted diff) +0 -0

utils_git.bb

Quoted 1 line
Quoted 1 line
Quoted 1 line

b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new

file mode

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

100644 index 0000000..610f3a7 --- /dev/null +++ b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb @@ -

0,0 +1,63

Quoted 1 line
Quoted 1 line
Quoted 1 line

@@ +DESCRIPTION = "Utilities from Linaro for testing Power

Management"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+HOMEPAGE =

"https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/T estSuite/PmQa"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV =

"0.4.4" +

Quoted 1 line
Quoted 1 line
Quoted 1 line

+BRANCH ?= "master" +SRCREV =

"fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4"

Quoted 1 line
Quoted 1 line
Quoted 1 line

+ +SRC_URI = "git://git.linaro.org/tools/pm-

qa.git;protocol=git;branch=${BRANCH}" + +S

Quoted 1 line
Quoted 1 line
Quoted 1 line

= "${WORKDIR}/git" + +CFLAGS += "-pthread" + +do_compile () { +

# Find

Quoted 1 line
Quoted 1 line
Quoted 1 line

all the .c files in this project and build them. + for x in

Quoted 15 lines

`find .

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-name "*.c" + do + util=echo ${x} | sed s/.c$//` +
oe_runmake ${util} + done +} + +do_install () { + install

-d

Quoted 1 line
Quoted 1 line
Quoted 1 line

${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.

Quoted 6 lines

Good point. I did this because the script going into that directory was named "functions.sh" in the original sources. I thought this was a bit generic and could possibly conflict.

What are your thoughts on a subdirectory under $libdir or $libexecdir? Any preference?

Right it will amount to the basically the same due to the misguided libexecdir change oe-core did last year. If it's only used 'internally' $libdir/PN would be OK, otherwise use libexecdir (which currently is libdir/PN, but might change again)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFTLCxQMkyGM64RGpERAi53AJ9bjuFeJfliwQV9hzHnqd+28zkH0ACeLS9r VXYU8eXR2dQcBS74EnzVBd4=
=DHAP
-----END PGP SIGNATURE-----

#6 lore raw
Quoted 105 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Koen Kooi
Sent: Friday, March 21, 2014 7:11 AM
To: [email protected]
Subject: Re: [oe] [PATCH] pm-qa-utils: Add power management test utils

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

Maupin, Chase schreef op 21-03-14 13:07:

Quoted 3 lines
Quoted 3 lines

-----Original Message----- From:
[email protected] [mailto:[email protected]] On

Behalf Of

Quoted 2 lines
Quoted 2 lines

Koen Kooi Sent: Friday, March 21, 2014 4:10 AM To:
[email protected] Subject: Re: [oe]

[PATCH]

Quoted 4 lines
Quoted 2 lines

pm-qa-utils: Add power management test utils

Chase Maupin schreef op 20-03-14 15:47:

Quoted 1 line
Quoted 1 line
Quoted 1 line

* The power management test utilities from Linaro can be used

to

Quoted 2 lines

test

Quoted 1 line
Quoted 1 line
Quoted 1 line

multiple PM features such as cpufreq, cpuidle, thermal

control

Quoted 2 lines

and

Quoted 1 line
Quoted 1 line
Quoted 1 line

suspend operations. * These utilities are not platform

specific

Quoted 8 lines

and can

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

be used by a broader base of users.

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

Quoted 1 line

I assume you are saying you would rather see this recipe as pm-

qa

Quoted 1 line
Quoted 1 line

instead of pm-qa-utils?

Exactly!

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

--- .../pm-qa-utils/pm-qa-utils_git.bb | 63
++++++++++++++++++++ 1 file changed, 63 insertions(+) create

Quoted 9 lines

mode 100644

Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines

meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb

(quoted diff) +0 -0

utils_git.bb

Quoted 1 line
Quoted 1 line
Quoted 1 line

b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new

file mode

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

100644 index 0000000..610f3a7 --- /dev/null +++ b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb @@

-

Quoted 6 lines

0,0 +1,63

Quoted 1 line
Quoted 1 line
Quoted 1 line

@@ +DESCRIPTION = "Utilities from Linaro for testing Power

Management"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+HOMEPAGE =

"https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/T

Quoted 12 lines

estSuite/PmQa"

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

+LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV =

"0.4.4" +

Quoted 1 line
Quoted 1 line
Quoted 1 line

+BRANCH ?= "master" +SRCREV =

"fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4"

Quoted 1 line
Quoted 1 line
Quoted 1 line

+ +SRC_URI = "git://git.linaro.org/tools/pm-

qa.git;protocol=git;branch=${BRANCH}" + +S

Quoted 1 line
Quoted 1 line
Quoted 1 line

= "${WORKDIR}/git" + +CFLAGS += "-pthread" + +do_compile () {

+

Quoted 2 lines

# Find

Quoted 1 line
Quoted 1 line
Quoted 1 line

all the .c files in this project and build them. + for x

in

Quoted 2 lines

`find .

Quoted 1 line
Quoted 1 line
Quoted 1 line

-name "*.c" + do + util=echo ${x} | sed s/.c$//`

+

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

oe_runmake ${util} + done +} + +do_install () { +

install

Quoted 2 lines

-d

Quoted 1 line
Quoted 1 line
Quoted 1 line

${D}${bindir} + install -d ${D}${bindir}/linaro-pm-qa-

include

Quoted 2 lines

Please don't use subdirs in $bindir, that's what $libdir and

$libexecdir

Quoted 3 lines

are for.

Quoted 1 line

Good point. I did this because the script going into that

directory

Quoted 1 line
Quoted 1 line

was named "functions.sh" in the original sources. I thought

this was a

Quoted 3 lines
Quoted 3 lines

bit generic and could possibly conflict.

What are your thoughts on a subdirectory under $libdir or

$libexecdir?

Quoted 1 line
Quoted 1 line

Any preference?

Quoted 7 lines

Right it will amount to the basically the same due to the misguided
libexecdir change oe-core did last year. If it's only used 'internally'
$libdir/PN would be OK, otherwise use libexecdir (which currently is
libdir/PN, but might change again)

One last dense question. What do you mean by 'internally'?

Internally to just this package as in you don't expect any sharing between this and another package?

Quoted 14 lines

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

iD8DBQFTLCxQMkyGM64RGpERAi53AJ9bjuFeJfliwQV9hzHnqd+28zkH0ACeLS9r VXYU8eXR2dQcBS74EnzVBd4=
=DHAP
-----END PGP SIGNATURE-----

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel