mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
gcc-linaro-arm-eabi: new package for compiling u-boot bl301.bin
Also changes u-boot build command not to override makefiles variables, allows bl301.bin/scp_task to compile using arm-eabi-gcc Clearing C/LDFLAGS makes it possible to compile using the 4.8-2013.11 linaro toolchain
This commit is contained in:
parent
44cbace0b7
commit
a375705d49
43
packages/lang/gcc-linaro-arm-eabi/package.mk
Normal file
43
packages/lang/gcc-linaro-arm-eabi/package.mk
Normal file
@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2016 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-eabi"
|
||||
PKG_VERSION="4.9-2016.02"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE=""
|
||||
PKG_URL="https://releases.linaro.org/components/toolchain/binaries/${PKG_VERSION}/arm-eabi/gcc-linaro-${PKG_VERSION}-x86_64_arm-eabi.tar.xz"
|
||||
PKG_SOURCE_DIR="gcc-linaro-${PKG_VERSION}-x86_64_arm-eabi"
|
||||
PKG_DEPENDS_HOST="toolchain"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="lang"
|
||||
PKG_SHORTDESC=""
|
||||
PKG_LONGDESC=""
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
make_host() {
|
||||
:
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
mkdir -p $ROOT/$TOOLCHAIN/lib/gcc-linaro-arm-eabi/
|
||||
cp -a * $ROOT/$TOOLCHAIN/lib/gcc-linaro-arm-eabi
|
||||
}
|
@ -27,7 +27,7 @@ elif [ "$UBOOT_VERSION" = "hardkernel" ]; then
|
||||
PKG_VERSION="83bf8f0"
|
||||
PKG_SITE="https://github.com/hardkernel/u-boot"
|
||||
PKG_URL="https://github.com/hardkernel/u-boot/archive/$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET gcc-linaro-aarch64-elf:host"
|
||||
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET gcc-linaro-aarch64-elf:host gcc-linaro-arm-eabi:host"
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
@ -67,10 +67,10 @@ make_target() {
|
||||
|
||||
for UBOOT_TARGET in $UBOOT_CONFIG; do
|
||||
if [ "$PROJECT" = "Odroid_C2" ]; then
|
||||
export PATH=$ROOT/$TOOLCHAIN/lib/gcc-linaro-aarch64-elf/bin/:$PATH
|
||||
make CROSS_COMPILE=aarch64-elf- ARCH=arm mrproper
|
||||
make CROSS_COMPILE=aarch64-elf- ARCH=arm $UBOOT_TARGET
|
||||
make CROSS_COMPILE=aarch64-elf- ARCH=arm HOSTCC="$HOST_CC" HOSTSTRIP="true"
|
||||
export PATH=$ROOT/$TOOLCHAIN/lib/gcc-linaro-aarch64-elf/bin/:$ROOT/$TOOLCHAIN/lib/gcc-linaro-arm-eabi/bin/:$PATH
|
||||
CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make mrproper
|
||||
CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make $UBOOT_TARGET
|
||||
CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make HOSTCC="$HOST_CC" HOSTSTRIP="true"
|
||||
else
|
||||
make CROSS_COMPILE="$TARGET_PREFIX" ARCH=arm mrproper
|
||||
make CROSS_COMPILE="$TARGET_PREFIX" ARCH=arm $UBOOT_TARGET
|
||||
|
Loading…
x
Reference in New Issue
Block a user