aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/cpufrequtils/cpufrequtils/fix-proc-stat-reading.patch59
-rw-r--r--meta-oe/recipes-support/cpufrequtils/cpufrequtils_006.bb24
-rw-r--r--meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb24
3 files changed, 24 insertions, 83 deletions
diff --git a/meta-oe/recipes-support/cpufrequtils/cpufrequtils/fix-proc-stat-reading.patch b/meta-oe/recipes-support/cpufrequtils/cpufrequtils/fix-proc-stat-reading.patch
deleted file mode 100644
index a9e3407b355..00000000000
--- a/meta-oe/recipes-support/cpufrequtils/cpufrequtils/fix-proc-stat-reading.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From 6657831200419d7509edcc04434d03b994c86adb Mon Sep 17 00:00:00 2001
-From: Anton Arapov <anton@redhat.com>
-Date: Wed, 11 Nov 2009 21:33:09 +0100
-Subject: [PATCH] cpufreq/aperf : fix the /proc/stat read routine, always fails otherwise.
-
- the statement:
- if (!fgets(value, LINE_LEN, fp)) {
- always fails(==0) at the end of proc file, so we will have err_out:
- firing all the time.
-
- I've aligned the code to the one that other utils of cpufreq has.
-
-Signed-off-by: Anton Arapov <aarapov@redhat.com>
-Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
----
- utils/aperf.c | 18 +++++++-----------
- 1 files changed, 7 insertions(+), 11 deletions(-)
-
-diff --git a/utils/aperf.c b/utils/aperf.c
-index a37f8b1..8ecff2c 100644
---- a/utils/aperf.c
-+++ b/utils/aperf.c
-@@ -76,14 +76,15 @@ static unsigned int count_cpus(void)
- unsigned int cpunr = 0;
-
- fp = fopen("/proc/stat", "r");
-- if(!fp)
-- goto err_out;
-+ if(!fp) {
-+ printf("Couldn't count the number of CPUs (%s: %s), "
-+ "assuming 1\n", "/proc/stat", strerror(errno));
-+ return 1;
-+ }
-
- while (!feof(fp)) {
-- if (!fgets(value, LINE_LEN, fp)) {
-- fclose(fp);
-- goto err_out;
-- }
-+ if (!fgets(value, LINE_LEN, fp))
-+ continue;
- value[LINE_LEN - 1] = '\0';
- if (strlen(value) < (LINE_LEN - 2))
- continue;
-@@ -98,11 +99,6 @@ static unsigned int count_cpus(void)
-
- /* cpu count starts from 0, on error return 1 (UP) */
- return (ret+1);
--
--err_out:
-- printf("Couldn't count the number of CPUs (%s: %s), "
-- "assuming 1\n", "/proc/stat", strerror(errno));
-- return 1;
- }
-
- static int has_mperf_aperf_support(int cpu)
---
-1.7.0
-
diff --git a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_006.bb b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_006.bb
deleted file mode 100644
index ccc7be7dd90..00000000000
--- a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_006.bb
+++ /dev/null
@@ -1,24 +0,0 @@
-DESCRIPTION = "To make access to the Linux kernel cpufreq subsystem easier for users and cpufreq userspace tools, a cpufrequtils package was created"
-
-DEPENDS = "libtool-cross"
-
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-
-SRC_URI = "http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-${PV}.tar.bz2 \
- file://fix-proc-stat-reading.patch \
-"
-SRC_URI[md5sum] = "124b0de8f3a4d672539a85ce13eed869"
-SRC_URI[sha256sum] = "b8e77854a1400b0cc73295f3ee5d0a0c3650438e677526a199e08f6680c15aa1"
-
-export CROSS = "${TARGET_PREFIX}"
-export LIBTOOL = "${HOST_SYS}-libtool --tag cc"
-TARGET_CC_ARCH += "${LDFLAGS}"
-
-do_compile() {
- oe_runmake -e
-}
-do_install() {
- oe_runmake -e install DESTDIR=${D}
-}
-
diff --git a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb
new file mode 100644
index 00000000000..a28ab831be3
--- /dev/null
+++ b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "To make access to the Linux kernel cpufreq subsystem easier for users and cpufreq userspace tools, a cpufrequtils package was created"
+
+DEPENDS = "libtool-cross"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+SRCREV = "adb7e044755aa06b12212d05c4acbcccb023d2cd"
+SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git"
+
+S = "${WORKDIR}/git"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+EXTRA_OEMAKE = "V=1 CROSS=${TARGET_PREFIX} LIBTOOL='${HOST_SYS}-libtool --tag cc' STRIPCMD=echo"
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ oe_runmake -e install DESTDIR=${D}
+}
+