summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/powertop
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/powertop')
-rw-r--r--meta/recipes-kernel/powertop/powertop_1.13.bb13
1 files changed, 6 insertions, 7 deletions
diff --git a/meta/recipes-kernel/powertop/powertop_1.13.bb b/meta/recipes-kernel/powertop/powertop_1.13.bb
index b4f45ddbbc..db54ed0f59 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 = "r3" 14PR = "r4"
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 \
@@ -25,12 +25,6 @@ EXTRA_OEMAKE = "VERSION=\"${PV}\" EXTRA_LIBS=${EXTRA_LIBS}"
25 25
26EXTRA_LIBS_libc-uclibc = "-lintl" 26EXTRA_LIBS_libc-uclibc = "-lintl"
27 27
28inherit update-alternatives
29ALTERNATIVE_NAME = "powertop"
30ALTERNATIVE_PATH = "${bindir}/powertop"
31ALTERNATIVE_LINK = "${base_bindir}/powertop"
32ALTERNATIVE_PRIORITY = "100"
33
34do_configure() { 28do_configure() {
35 # We do not build ncurses with wide char support 29 # We do not build ncurses with wide char support
36 sed -i -e 's:lncursesw:lncurses ${EXTRA_LIBS}:g' ${S}/Makefile 30 sed -i -e 's:lncursesw:lncurses ${EXTRA_LIBS}:g' ${S}/Makefile
@@ -40,3 +34,8 @@ do_install() {
40 oe_runmake install DESTDIR=${D} 34 oe_runmake install DESTDIR=${D}
41} 35}
42 36
37inherit update-alternatives
38ALTERNATIVE_${PN} = "powertop"
39ALTERNATIVE_TARGET[powertop] = "${bindir}/powertop"
40ALTERNATIVE_LINK_NAME[powertop] = "${base_bindir}/powertop"
41ALTERNATIVE_PRIORITY = "100"