diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-07-26 16:45:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-15 14:26:30 +0100 |
commit | 90bb29cc3162d75457ca6fd478b2a904eb2a1c78 (patch) | |
tree | 9cccecdff8ad50be82a274b56078c729abb45655 /meta | |
parent | 41ab6b5f5e5f9da3e2a063a3c33fb048a1fc0c14 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-kernel/powertop/powertop_1.13.bb | 13 |
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 |
12 | RDEPENDS_${PN} = "pciutils" | 12 | RDEPENDS_${PN} = "pciutils" |
13 | 13 | ||
14 | PR = "r3" | 14 | PR = "r4" |
15 | 15 | ||
16 | SRC_URI = "http://www.lesswatts.org/projects/powertop/download/powertop-${PV}.tar.gz \ | 16 | SRC_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 | ||
26 | EXTRA_LIBS_libc-uclibc = "-lintl" | 26 | EXTRA_LIBS_libc-uclibc = "-lintl" |
27 | 27 | ||
28 | inherit update-alternatives | ||
29 | ALTERNATIVE_NAME = "powertop" | ||
30 | ALTERNATIVE_PATH = "${bindir}/powertop" | ||
31 | ALTERNATIVE_LINK = "${base_bindir}/powertop" | ||
32 | ALTERNATIVE_PRIORITY = "100" | ||
33 | |||
34 | do_configure() { | 28 | do_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 | ||
37 | inherit update-alternatives | ||
38 | ALTERNATIVE_${PN} = "powertop" | ||
39 | ALTERNATIVE_TARGET[powertop] = "${bindir}/powertop" | ||
40 | ALTERNATIVE_LINK_NAME[powertop] = "${base_bindir}/powertop" | ||
41 | ALTERNATIVE_PRIORITY = "100" | ||