summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/powertop/powertop_1.13.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/powertop/powertop_1.13.bb')
-rw-r--r--meta/recipes-kernel/powertop/powertop_1.13.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-kernel/powertop/powertop_1.13.bb b/meta/recipes-kernel/powertop/powertop_1.13.bb
index dff4fcd27e..472a2bbcff 100644
--- a/meta/recipes-kernel/powertop/powertop_1.13.bb
+++ b/meta/recipes-kernel/powertop/powertop_1.13.bb
@@ -11,7 +11,7 @@ DEPENDS = "virtual/libintl ncurses"
11# powertop 1.13 needs lspci 11# powertop 1.13 needs lspci
12RDEPENDS_${PN} = "pciutils" 12RDEPENDS_${PN} = "pciutils"
13 13
14PR = "r0" 14PR = "r1"
15 15
16SRC_URI = "http://www.lesswatts.org/projects/powertop/download/powertop-${PV}.tar.gz \ 16SRC_URI = "http://www.lesswatts.org/projects/powertop/download/powertop-${PV}.tar.gz \
17 file://stub_out_the_ncurses_calls_in_dump_mode.patch" 17 file://stub_out_the_ncurses_calls_in_dump_mode.patch"
@@ -22,6 +22,12 @@ SRC_URI[sha256sum] = "2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcd
22CFLAGS += "${LDFLAGS}" 22CFLAGS += "${LDFLAGS}"
23EXTRA_OEMAKE = "VERSION=\"${PV}\"" 23EXTRA_OEMAKE = "VERSION=\"${PV}\""
24 24
25inherit update-alternatives
26ALTERNATIVE_NAME = "powertop"
27ALTERNATIVE_PATH = "${bindir}/powertop"
28ALTERNATIVE_LINK = "${base_bindir}/powertop"
29ALTERNATIVE_PRIORITY = "100"
30
25do_configure() { 31do_configure() {
26 # We do not build ncurses with wide char support 32 # We do not build ncurses with wide char support
27 sed -i -e "s/lncursesw/lncurses/" ${S}/Makefile 33 sed -i -e "s/lncursesw/lncurses/" ${S}/Makefile