All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][meta-oe] cpupower: add recipes
@ 2016-03-29  7:28 rongqing.li
  2016-03-30 18:13 ` Khem Raj
  2016-04-12  9:05 ` Martin Jansa
  0 siblings, 2 replies; 3+ messages in thread
From: rongqing.li @ 2016-03-29  7:28 UTC (permalink / raw)
  To: openembedded-devel

From: Roy Li <rongqing.li@windriver.com>

cpupower is tools to shows and sets processor power related values

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 meta-oe/recipes-kernel/cpupower/cpupower.bb | 41 +++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/cpupower/cpupower.bb

diff --git a/meta-oe/recipes-kernel/cpupower/cpupower.bb b/meta-oe/recipes-kernel/cpupower/cpupower.bb
new file mode 100644
index 0000000..d53deac
--- /dev/null
+++ b/meta-oe/recipes-kernel/cpupower/cpupower.bb
@@ -0,0 +1,41 @@
+SUMMARY = "Shows and sets processor power related values"
+DESCRIPTION = "cpupower is a collection of tools to examine and tune power \
+saving related features of your processor."
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+DEPENDS = "pciutils"
+
+inherit kernelsrc kernel-arch
+
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+do_populate_lic[depends] += "virtual/kernel:do_patch"
+
+PROVIDES = "virtual/cpupower"
+
+B = "${WORKDIR}/${BPN}-${PV}"
+
+EXTRA_OEMAKE = '\
+    -C ${S}/tools/power/cpupower \
+    O=${B} \
+    CROSS=${TARGET_PREFIX} \
+    ARCH=${ARCH} \
+    CC="${CC}" \
+    AR="${AR}" \
+'
+do_compile() {
+	unset CFLAGS
+	oe_runmake all
+}
+
+do_install() {
+	unset CFLAGS
+	oe_runmake DESTDIR=${D} install
+	chown root:root ${D}/${libdir}/*
+}
+
+python do_package_prepend() {
+    d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+RDEPENDS_${PN} = "bash"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH][meta-oe] cpupower: add recipes
  2016-03-29  7:28 [PATCH][meta-oe] cpupower: add recipes rongqing.li
@ 2016-03-30 18:13 ` Khem Raj
  2016-04-12  9:05 ` Martin Jansa
  1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2016-03-30 18:13 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2267 bytes --]


> On Mar 29, 2016, at 12:28 AM, rongqing.li@windriver.com wrote:
> 
> From: Roy Li <rongqing.li@windriver.com>
> 
> cpupower is tools to shows and sets processor power related values
> 

it seems to be overriding CC, I wonder if this will work when sstate is shared over different build hosts
do we know if it works with sstate when sstate provider/consumer are using different directory structure for
workspace

> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
> meta-oe/recipes-kernel/cpupower/cpupower.bb | 41 +++++++++++++++++++++++++++++
> 1 file changed, 41 insertions(+)
> create mode 100644 meta-oe/recipes-kernel/cpupower/cpupower.bb
> 
> diff --git a/meta-oe/recipes-kernel/cpupower/cpupower.bb b/meta-oe/recipes-kernel/cpupower/cpupower.bb
> new file mode 100644
> index 0000000..d53deac
> --- /dev/null
> +++ b/meta-oe/recipes-kernel/cpupower/cpupower.bb
> @@ -0,0 +1,41 @@
> +SUMMARY = "Shows and sets processor power related values"
> +DESCRIPTION = "cpupower is a collection of tools to examine and tune power \
> +saving related features of your processor."
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> +DEPENDS = "pciutils"
> +
> +inherit kernelsrc kernel-arch
> +
> +do_configure[depends] += "virtual/kernel:do_shared_workdir"
> +do_populate_lic[depends] += "virtual/kernel:do_patch"
> +
> +PROVIDES = "virtual/cpupower"
> +
> +B = "${WORKDIR}/${BPN}-${PV}"
> +
> +EXTRA_OEMAKE = '\
> +    -C ${S}/tools/power/cpupower \
> +    O=${B} \
> +    CROSS=${TARGET_PREFIX} \
> +    ARCH=${ARCH} \
> +    CC="${CC}" \
> +    AR="${AR}" \
> +'
> +do_compile() {
> +	unset CFLAGS
> +	oe_runmake all
> +}
> +
> +do_install() {
> +	unset CFLAGS
> +	oe_runmake DESTDIR=${D} install
> +	chown root:root ${D}/${libdir}/*
> +}
> +
> +python do_package_prepend() {
> +    d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
> +}
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +RDEPENDS_${PN} = "bash"
> --
> 1.9.1
> 
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH][meta-oe] cpupower: add recipes
  2016-03-29  7:28 [PATCH][meta-oe] cpupower: add recipes rongqing.li
  2016-03-30 18:13 ` Khem Raj
@ 2016-04-12  9:05 ` Martin Jansa
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2016-04-12  9:05 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2140 bytes --]

On Tue, Mar 29, 2016 at 03:28:56PM +0800, rongqing.li@windriver.com wrote:
> From: Roy Li <rongqing.li@windriver.com>
> 
> cpupower is tools to shows and sets processor power related values
> 
> Signed-off-by: Roy Li <rongqing.li@windriver.com>
> ---
>  meta-oe/recipes-kernel/cpupower/cpupower.bb | 41 +++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
>  create mode 100644 meta-oe/recipes-kernel/cpupower/cpupower.bb
> 
> diff --git a/meta-oe/recipes-kernel/cpupower/cpupower.bb b/meta-oe/recipes-kernel/cpupower/cpupower.bb
> new file mode 100644
> index 0000000..d53deac
> --- /dev/null
> +++ b/meta-oe/recipes-kernel/cpupower/cpupower.bb
> @@ -0,0 +1,41 @@
> +SUMMARY = "Shows and sets processor power related values"
> +DESCRIPTION = "cpupower is a collection of tools to examine and tune power \
> +saving related features of your processor."
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
> +DEPENDS = "pciutils"
> +
> +inherit kernelsrc kernel-arch
> +
> +do_configure[depends] += "virtual/kernel:do_shared_workdir"
> +do_populate_lic[depends] += "virtual/kernel:do_patch"
> +
> +PROVIDES = "virtual/cpupower"
> +
> +B = "${WORKDIR}/${BPN}-${PV}"
> +
> +EXTRA_OEMAKE = '\
> +    -C ${S}/tools/power/cpupower \
> +    O=${B} \
> +    CROSS=${TARGET_PREFIX} \
> +    ARCH=${ARCH} \
> +    CC="${CC}" \
> +    AR="${AR}" \
> +'
> +do_compile() {
> +	unset CFLAGS
> +	oe_runmake all

Use 4 spaces for indentation.

> +}
> +
> +do_install() {
> +	unset CFLAGS
> +	oe_runmake DESTDIR=${D} install
> +	chown root:root ${D}/${libdir}/*
> +}
> +
> +python do_package_prepend() {
> +    d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
> +}
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +RDEPENDS_${PN} = "bash"
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-12  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29  7:28 [PATCH][meta-oe] cpupower: add recipes rongqing.li
2016-03-30 18:13 ` Khem Raj
2016-04-12  9:05 ` Martin Jansa

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.