mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
linux: build and install 'perf' on development builds
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5caed7f096
commit
248df9fc20
@ -65,3 +65,27 @@ LDFLAGS="" make $KERNEL_IMAGE
|
|||||||
DEBUG=false \
|
DEBUG=false \
|
||||||
NLS=false \
|
NLS=false \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [ "$DEVTOOLS" = yes ]; then
|
||||||
|
( cd tools/perf
|
||||||
|
|
||||||
|
# dont use some optimizations because of build problems
|
||||||
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
|
||||||
|
|
||||||
|
export FLAGSGLIBC="$CFLAGS -I$SYSROOT_PREFIX/usr/include"
|
||||||
|
export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include"
|
||||||
|
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/lib -L$SYSROOT_PREFIX/usr/lib"
|
||||||
|
|
||||||
|
make CROSS_COMPILE="$TARGET_PREFIX" \
|
||||||
|
V=1 \
|
||||||
|
DEBUG=false \
|
||||||
|
NLS=false \
|
||||||
|
NO_GTK2=true \
|
||||||
|
NO_LIBELF=true \
|
||||||
|
NO_LIBPERL=true \
|
||||||
|
NO_LIBPYTHON=false \
|
||||||
|
PYTHON=$SYSROOT_PREFIX/usr/bin/python \
|
||||||
|
WERROR=0 \
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -46,3 +46,12 @@ mkdir -p $INSTALL/usr/lib
|
|||||||
|
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp -P $PKG_BUILD/tools/power/cpupower/cpupower $INSTALL/usr/bin
|
cp -P $PKG_BUILD/tools/power/cpupower/cpupower $INSTALL/usr/bin
|
||||||
|
|
||||||
|
if [ "$DEVTOOLS" = "yes" ]; then
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp -P $PKG_BUILD/tools/perf/perf $INSTALL/usr/bin/
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/libexec/perf-core/scripts/python/
|
||||||
|
cp -P $PKG_BUILD/tools/perf/perf-archive $INSTALL/usr/libexec/perf-core/
|
||||||
|
cp -rP $PKG_BUILD/tools/perf/scripts/python/* $INSTALL/usr/libexec/perf-core/scripts/python/
|
||||||
|
fi
|
||||||
|
@ -26,7 +26,7 @@ PKG_LICENSE="GPL"
|
|||||||
PKG_SITE="http://www.kernel.org"
|
PKG_SITE="http://www.kernel.org"
|
||||||
PKG_URL="http://www.kernel.org/pub/linux/kernel/v3.x/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="http://www.kernel.org/pub/linux/kernel/v3.x/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS="busybox linux-drivers linux-firmware pciutils $BOOTLOADER"
|
PKG_DEPENDS="busybox linux-drivers linux-firmware pciutils $BOOTLOADER"
|
||||||
PKG_BUILD_DEPENDS="toolchain module-init-tools xz cpio pciutils"
|
PKG_BUILD_DEPENDS="toolchain cpio module-init-tools pciutils xz"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="linux"
|
PKG_SECTION="linux"
|
||||||
PKG_SHORTDESC="linux26: The Linux kernel 2.6 precompiled kernel binary image and modules"
|
PKG_SHORTDESC="linux26: The Linux kernel 2.6 precompiled kernel binary image and modules"
|
||||||
@ -44,3 +44,8 @@ if [ "$LINUX" = "ti-omap4" ]; then
|
|||||||
PKG_VERSION="2.6.38-ti-omap4"
|
PKG_VERSION="2.6.38-ti-omap4"
|
||||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DEVTOOLS" = "yes" ]; then
|
||||||
|
PKG_DEPENDS="$PKG_DEPENDS newt"
|
||||||
|
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS newt"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user