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 \
           file://cpufrequtils-nls.patch \
          "

PR = "r1"

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


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 \

SRC_URI = "git://github.com/emagii/cpufrequtils.git \
           file://cpufrequtils-nls.patch \
          "

PR = "r2"

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


Replace non-existant kernel.org git source
cpufrequtils: Replace non-existant kernel.org git source

git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git
no longer exists so build fails, unless it is already present in
downloads directory.

Source has been retrieved from a mirror:
(http://mirror.nexcess.net/kernel.org/scm/utils/kernel/cpufreq/cpufrequtils.git)
and a new git source has been established on github.

kernel.org link kept in a comment to allow the old
link to be easily reestablished once it is available.

Signed-off-by: Ulf Samuelsson <25af59facbd48a9742a6255393a3e51f1739b12d@emagii.com>
Signed-off-by: Koen Kooi <42e3d96910f922bdd7dd1805fe3f8aff634f391d@dominion.thruhere.net>
