diff options
| -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" | ||
