powertop: fix crosscompile build, cleanup

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-02-08 04:10:45 +01:00
parent 7217ea7b0d
commit 0c3eab9e19
3 changed files with 13 additions and 13 deletions

View File

@ -21,6 +21,7 @@
################################################################################ ################################################################################
. config/options $1 . config/options $1
export CXXFLAGS="$CXXFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses" export CXXFLAGS="$CXXFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses"
export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses" export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/ncurses"
export LIBS="-ltinfo" export LIBS="-ltinfo"
@ -28,18 +29,18 @@ export LDFLAGS="$LDFLAGS -ltinfo"
cd $PKG_BUILD cd $PKG_BUILD
ln -sf $ROOT/$TOOLCHAIN/usr/include/ncurses.h src/
ac_cv_func_malloc_0_nonnull=yes \ ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \ ac_cv_func_realloc_0_nonnull=yes \
./configure --host=$TARGET_NAME \ ./configure --host=$TARGET_NAME \
--build=$HOST_NAME \ --build=$HOST_NAME \
--prefix=/usr \ --prefix=/usr \
--bindir=/usr/bin \ --bindir=/usr/bin \
--with-sysroot=$ROOT/$TOOLCHAIN \
make PREFIX=/usr \ make V=1 CC="$HOST_CC" \
CC="$TARGET_CC" \ CFLAGS="$HOST_CFLAGS" \
AR="$TARGET_AR" \ LDFLAGS="$HOST_LDFLAGS" \
CFLAGS="$TARGET_CFLAGS" \ LIBS="" \
CPPFLAGS="$TARGET_CPPFLAGS" \ AM_LDFLAGS="" \
-C src csstoh
make V=1

View File

@ -23,5 +23,4 @@
. config/options $1 . config/options $1
mkdir -p $INSTALL/usr/bin/ mkdir -p $INSTALL/usr/bin/
cp $PKG_BUILD/src/powertop $INSTALL/usr/bin/ cp $PKG_BUILD/src/powertop $INSTALL/usr/bin/

View File

@ -25,12 +25,12 @@ PKG_ARCH="any"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="https://01.org/powertop/" PKG_SITE="https://01.org/powertop/"
PKG_URL="https://01.org/powertop/sites/default/files/downloads/$PKG_NAME-$PKG_VERSION.tar.gz" PKG_URL="https://01.org/powertop/sites/default/files/downloads/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="ncurses" PKG_DEPENDS="ncurses pciutils libnl"
PKG_BUILD_DEPENDS="toolchain ncurses" PKG_BUILD_DEPENDS="toolchain ncurses pciutils libnl"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="system" PKG_SECTION="system"
PKG_SHORTDESC="powertop: tool to diagnose issues with power consumption and power management" 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_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_IS_ADDON="no"
PKG_AUTORECONF="no" PKG_AUTORECONF="yes"