blob: 1304ba9e036b5587d445380264628ef8dad6eec6 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "To make access to the Linux kernel cpufreq subsystem easier for users and cpufreq userspace tools, a cpufrequtils package was created"
2
3inherit gettext
4
5DEPENDS = "libtool-cross"
6
Andrew Geissler9aee5002022-03-30 16:27:02 +00007LICENSE = "GPL-2.0-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
9
10SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0"
11# SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git
12
Andrew Geissler595f6302022-01-24 19:11:47 +000013SRC_URI = "git://github.com/emagii/cpufrequtils.git;branch=master;protocol=https \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 file://0001-dont-unset-cflags.patch \
15"
16
Patrick Williams213cb262021-08-07 19:21:33 -050017EXTRA_OEMAKE:append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} "
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018
19PR = "r5"
20
21S = "${WORKDIR}/git"
22
23TARGET_CC_ARCH += "${LDFLAGS}"
24
Andrew Geissler595f6302022-01-24 19:11:47 +000025EXTRA_OEMAKE = "V=1 CROSS=${TARGET_PREFIX} STRIPCMD=echo 'CP=cp'"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050026
27do_compile() {
28 oe_runmake
29}
30
31do_install() {
32 oe_runmake -e install DESTDIR=${D}
33 rm -f ${D}${libdir}/libcpufreq.so.0 ${D}${libdir}/libcpufreq.so
34 ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so.0
35 ln -s libcpufreq.so.0.0.0 ${D}${libdir}/libcpufreq.so
36}
37