mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
WC/WP: use older linaro compiler for WeTek_Core/Play
- linux-3.10 are not able to build with gcc-8.1
This commit is contained in:
parent
bce7fc9535
commit
ca54a7f1a9
10
config/path
10
config/path
@ -38,10 +38,14 @@ LIB_PREFIX=$SYSROOT_PREFIX/usr
|
|||||||
TARGET_PREFIX=$TOOLCHAIN/bin/$TARGET_NAME-
|
TARGET_PREFIX=$TOOLCHAIN/bin/$TARGET_NAME-
|
||||||
|
|
||||||
# use linaro toolchain on 64/32 split builds
|
# use linaro toolchain on 64/32 split builds
|
||||||
if [ "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then
|
if [ -z "$TARGET_KERNEL_RELATIVE_PREFIX" ]; then
|
||||||
TARGET_KERNEL_PREFIX=$TOOLCHAIN/lib/gcc-linaro-aarch64-linux-gnu/bin/aarch64-linux-gnu-
|
if [ "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then
|
||||||
|
TARGET_KERNEL_PREFIX=$TOOLCHAIN/lib/gcc-linaro-aarch64-linux-gnu/bin/aarch64-linux-gnu-
|
||||||
|
else
|
||||||
|
TARGET_KERNEL_PREFIX=$TARGET_PREFIX
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
TARGET_KERNEL_PREFIX=$TARGET_PREFIX
|
TARGET_KERNEL_PREFIX="$TOOLCHAIN/$TARGET_KERNEL_RELATIVE_PREFIX"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FAKEROOT_SCRIPT=$BUILD/.fakeroot
|
FAKEROOT_SCRIPT=$BUILD/.fakeroot
|
||||||
|
54
packages/lang/gcc-linaro-arm-linux-gnuebihf/package.mk
Normal file
54
packages/lang/gcc-linaro-arm-linux-gnuebihf/package.mk
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of LibreELEC - https://libreelec.tv
|
||||||
|
# Copyright (C) 2017-present Team LibreELEC
|
||||||
|
#
|
||||||
|
# LibreELEC is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LibreELEC is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PKG_NAME="gcc-linaro-arm-linux-gnuebihf"
|
||||||
|
PKG_VERSION="7.2.1-2017.11"
|
||||||
|
PKG_SHA256="72919a3a99d4e28309bc8b0e615f44c65824ef012de50db3ffe9a34776e6f510"
|
||||||
|
PKG_ARCH="any"
|
||||||
|
PKG_LICENSE="GPL"
|
||||||
|
PKG_SITE=""
|
||||||
|
PKG_URL="https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabihf/gcc-linaro-7.2.1-2017.11-i686_arm-linux-gnueabihf.tar.xz"
|
||||||
|
PKG_SOURCE_DIR="gcc-linaro-$PKG_VERSION-i686_arm-linux-gnueabihf"
|
||||||
|
PKG_DEPENDS_HOST="ccache:host"
|
||||||
|
PKG_SECTION="lang"
|
||||||
|
PKG_SHORTDESC="Linaro Aarch64 GNU Linux Binary Toolchain"
|
||||||
|
PKG_TOOLCHAIN="manual"
|
||||||
|
|
||||||
|
makeinstall_host() {
|
||||||
|
mkdir -p $TOOLCHAIN/lib/gcc-linaro-arm-linux-gnuebihf/
|
||||||
|
cp -a * $TOOLCHAIN/lib/gcc-linaro-arm-linux-gnuebihf
|
||||||
|
|
||||||
|
# wrap gcc and g++ with ccache like in gcc package.mk
|
||||||
|
PKG_GCC_PREFIX="$TOOLCHAIN/lib/gcc-linaro-arm-linux-gnuebihf/bin/arm-linux-gnueabihf-"
|
||||||
|
|
||||||
|
cp "${PKG_GCC_PREFIX}gcc" "${PKG_GCC_PREFIX}gcc.real"
|
||||||
|
cat > "${PKG_GCC_PREFIX}gcc" << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
$TOOLCHAIN/bin/ccache ${PKG_GCC_PREFIX}gcc.real "\$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x "${PKG_GCC_PREFIX}gcc"
|
||||||
|
|
||||||
|
cp "${PKG_GCC_PREFIX}g++" "${PKG_GCC_PREFIX}g++.real"
|
||||||
|
cat > "${PKG_GCC_PREFIX}g++" << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
$TOOLCHAIN/bin/ccache ${PKG_GCC_PREFIX}g++.real "\$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x "${PKG_GCC_PREFIX}g++"
|
||||||
|
}
|
@ -76,6 +76,11 @@ if [ "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then
|
|||||||
HEADERS_ARCH=$TARGET_ARCH
|
HEADERS_ARCH=$TARGET_ARCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$LINUX" = "amlogic-3.10" -a "$TARGET_KERNEL_ARCH" = "arm" -a "$TARGET_ARCH" = "arm" ]; then
|
||||||
|
PKG_DEPENDS_HOST="$PKG_DEPENDS_HOST gcc-linaro-arm-linux-gnuebihf:host"
|
||||||
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET gcc-linaro-arm-linux-gnuebihf:host"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$PKG_BUILD_PERF" != "no" ] && grep -q ^CONFIG_PERF_EVENTS= $PKG_KERNEL_CFG_FILE ; then
|
if [ "$PKG_BUILD_PERF" != "no" ] && grep -q ^CONFIG_PERF_EVENTS= $PKG_KERNEL_CFG_FILE ; then
|
||||||
PKG_BUILD_PERF="yes"
|
PKG_BUILD_PERF="yes"
|
||||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET binutils elfutils libunwind zlib openssl"
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET binutils elfutils libunwind zlib openssl"
|
||||||
|
@ -33,6 +33,9 @@
|
|||||||
# neon-vfpv4.
|
# neon-vfpv4.
|
||||||
TARGET_FPU="neon-fp16"
|
TARGET_FPU="neon-fp16"
|
||||||
TARGET_FEATURES="32bit"
|
TARGET_FEATURES="32bit"
|
||||||
|
|
||||||
|
# TARGET_KERNEL_PREFIX
|
||||||
|
TARGET_KERNEL_RELATIVE_PREFIX="lib/gcc-linaro-arm-linux-gnuebihf/bin/arm-linux-gnueabihf-"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -33,6 +33,9 @@
|
|||||||
# neon-vfpv4.
|
# neon-vfpv4.
|
||||||
TARGET_FPU="neon-fp16"
|
TARGET_FPU="neon-fp16"
|
||||||
TARGET_FEATURES="32bit"
|
TARGET_FEATURES="32bit"
|
||||||
|
|
||||||
|
# TARGET_KERNEL_PREFIX
|
||||||
|
TARGET_KERNEL_RELATIVE_PREFIX="lib/gcc-linaro-arm-linux-gnuebihf/bin/arm-linux-gnueabihf-"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user