summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-07-26 16:45:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-15 14:26:30 +0100
commit90bb29cc3162d75457ca6fd478b2a904eb2a1c78 (patch)
tree9cccecdff8ad50be82a274b56078c729abb45655 /meta/recipes-kernel
parent41ab6b5f5e5f9da3e2a063a3c33fb048a1fc0c14 (diff)
downloadpoky-90bb29cc3162d75457ca6fd478b2a904eb2a1c78.tar.gz
powertop: cleanup update-alternatives deprecated code
(From OE-Core rev: 443473a88dd94a5fe0d6bc7a5d14d45ea5bbdec5) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-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"