1SUMMARY = "Shows and sets processor power related values" 2DESCRIPTION = "cpupower is a collection of tools to examine and tune power \ 3saving related features of your processor." 4LICENSE = "GPL-2.0-only" 5DEPENDS = "pciutils gettext-native" 6PROVIDES = "virtual/cpupower" 7 8inherit kernelsrc kernel-arch bash-completion 9 10do_populate_lic[depends] += "virtual/kernel:do_patch" 11 12EXTRA_OEMAKE = "-C ${S}/tools/power/cpupower O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}" 13 14do_configure[depends] += "virtual/kernel:do_shared_workdir" 15 16do_compile() { 17 oe_runmake 18} 19 20do_install() { 21 oe_runmake DESTDIR=${D} install 22 # Do not ship headers 23 rm -rf ${D}${includedir} 24 chown -R root:root ${D} 25} 26 27PACKAGE_ARCH = "${MACHINE_ARCH}" 28 29RDEPENDS:${PN} = "bash" 30 31python do_package:prepend() { 32 d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0]) 33} 34 35B = "${WORKDIR}/${BPN}-${PV}" 36