Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "To make access to the Linux kernel cpufreq subsystem easier for users and cpufreq userspace tools, a cpufrequtils package was created" |
| 2 | |
| 3 | inherit gettext |
| 4 | |
| 5 | DEPENDS = "libtool-cross" |
| 6 | |
| 7 | LICENSE = "GPLv2" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 9 | |
| 10 | SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0" |
| 11 | # SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git |
| 12 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 13 | SRC_URI = "git://github.com/emagii/cpufrequtils.git;branch=master;protocol=https \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | file://0001-dont-unset-cflags.patch \ |
| 15 | " |
| 16 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | EXTRA_OEMAKE:append = " ${@['', 'NLS=false']['${USE_NLS}' == 'no']} " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | |
| 19 | PR = "r5" |
| 20 | |
| 21 | S = "${WORKDIR}/git" |
| 22 | |
| 23 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 24 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame^] | 25 | EXTRA_OEMAKE = "V=1 CROSS=${TARGET_PREFIX} STRIPCMD=echo 'CP=cp'" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 26 | |
| 27 | do_compile() { |
| 28 | oe_runmake |
| 29 | } |
| 30 | |
| 31 | do_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 | |