mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
powertop: fix crosscompile build, cleanup
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7217ea7b0d
commit
0c3eab9e19
@ -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
|
||||
|
@ -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/
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user