diff options
Diffstat (limited to 'meta-oe/recipes-kernel/cpupower/cpupower.bb')
| -rw-r--r-- | meta-oe/recipes-kernel/cpupower/cpupower.bb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta-oe/recipes-kernel/cpupower/cpupower.bb b/meta-oe/recipes-kernel/cpupower/cpupower.bb index 453ebe8c7f..b453308770 100644 --- a/meta-oe/recipes-kernel/cpupower/cpupower.bb +++ b/meta-oe/recipes-kernel/cpupower/cpupower.bb | |||
| @@ -5,6 +5,8 @@ LICENSE = "GPL-2.0-only" | |||
| 5 | DEPENDS = "pciutils gettext-native" | 5 | DEPENDS = "pciutils gettext-native" |
| 6 | PROVIDES = "virtual/cpupower" | 6 | PROVIDES = "virtual/cpupower" |
| 7 | 7 | ||
| 8 | B = "${WORKDIR}/${BPN}-${PV}" | ||
| 9 | |||
| 8 | inherit kernelsrc kernel-arch bash-completion | 10 | inherit kernelsrc kernel-arch bash-completion |
| 9 | 11 | ||
| 10 | do_populate_lic[depends] += "virtual/kernel:do_shared_workdir" | 12 | do_populate_lic[depends] += "virtual/kernel:do_shared_workdir" |
| @@ -19,17 +21,16 @@ do_compile() { | |||
| 19 | 21 | ||
| 20 | do_install() { | 22 | do_install() { |
| 21 | oe_runmake DESTDIR=${D} install | 23 | oe_runmake DESTDIR=${D} install |
| 22 | # Do not ship headers | ||
| 23 | rm -rf ${D}${includedir} | ||
| 24 | chown -R root:root ${D} | 24 | chown -R root:root ${D} |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 27 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 28 | PACKAGES =+ "${PN}-systemd" | ||
| 29 | |||
| 30 | FILES:${PN}-systemd = "${sysconfdir}/cpupower-service.conf ${systemd_unitdir}" | ||
| 28 | 31 | ||
| 29 | RDEPENDS:${PN} = "bash" | 32 | RDEPENDS:${PN} = "bash" |
| 30 | 33 | ||
| 31 | python do_package:prepend() { | 34 | python do_package:prepend() { |
| 32 | d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0]) | 35 | d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0]) |
| 33 | } | 36 | } |
| 34 | |||
| 35 | B = "${WORKDIR}/${BPN}-${PV}" | ||
