diff --git a/packages/debug/powertop/build b/packages/debug/powertop/build index af3093299a..34a10c8a5c 100755 --- a/packages/debug/powertop/build +++ b/packages/debug/powertop/build @@ -21,6 +21,7 @@ ################################################################################ . config/options $1 + export CXXFLAGS="$CXXFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses" export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses" export LIBS="-ltinfo" @@ -28,18 +29,18 @@ export LDFLAGS="$LDFLAGS -ltinfo" cd $PKG_BUILD -ln -sf $ROOT/$TOOLCHAIN/usr/include/ncurses.h src/ - ac_cv_func_malloc_0_nonnull=yes \ ac_cv_func_realloc_0_nonnull=yes \ ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ --prefix=/usr \ --bindir=/usr/bin \ - --with-sysroot=$ROOT/$TOOLCHAIN \ -make PREFIX=/usr \ - CC="$TARGET_CC" \ - AR="$TARGET_AR" \ - CFLAGS="$TARGET_CFLAGS" \ - CPPFLAGS="$TARGET_CPPFLAGS" \ +make V=1 CC="$HOST_CC" \ + CFLAGS="$HOST_CFLAGS" \ + LDFLAGS="$HOST_LDFLAGS" \ + LIBS="" \ + AM_LDFLAGS="" \ + -C src csstoh + +make V=1 diff --git a/packages/debug/powertop/install b/packages/debug/powertop/install index fc3811fa6c..c62c9c95a2 100755 --- a/packages/debug/powertop/install +++ b/packages/debug/powertop/install @@ -23,5 +23,4 @@ . config/options $1 mkdir -p $INSTALL/usr/bin/ -cp $PKG_BUILD/src/powertop $INSTALL/usr/bin/ - + cp $PKG_BUILD/src/powertop $INSTALL/usr/bin/ diff --git a/packages/debug/powertop/meta b/packages/debug/powertop/meta index b2a1010221..b20e7065b4 100644 --- a/packages/debug/powertop/meta +++ b/packages/debug/powertop/meta @@ -25,12 +25,12 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="https://01.org/powertop/" PKG_URL="https://01.org/powertop/sites/default/files/downloads/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="ncurses" -PKG_BUILD_DEPENDS="toolchain ncurses" +PKG_DEPENDS="ncurses pciutils libnl" +PKG_BUILD_DEPENDS="toolchain ncurses pciutils libnl" PKG_PRIORITY="optional" PKG_SECTION="system" PKG_SHORTDESC="powertop: tool to diagnose issues with power consumption and power management" PKG_LONGDESC="PowerTOP is a Linux tool to diagnose issues with power consumption and power management. In addition to being a diagnostic tool, PowerTOP also has an interactive mode where the user can experiment various power management settings for cases where the Linux distribution has not enabled these settings." PKG_IS_ADDON="no" -PKG_AUTORECONF="no" +PKG_AUTORECONF="yes"