mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
config: switch aarch64 toolchain
This commit is contained in:
parent
973cc6c57f
commit
771d19715b
12
config/path
12
config/path
@ -56,18 +56,12 @@ XORG_PATH_DRIVERS=/usr/lib/xorg/modules/drivers
|
|||||||
|
|
||||||
. config/optimize
|
. config/optimize
|
||||||
|
|
||||||
# use ARM toolchain on 64/32 split builds
|
# use different toolchain for 64/32 split builds
|
||||||
if [ -z "$KERNEL_TOOLCHAIN" -a "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then
|
if [ -z "$KERNEL_TOOLCHAIN" -a "$TARGET_KERNEL_ARCH" = "arm64" -a "$TARGET_ARCH" = "arm" ]; then
|
||||||
if [ "${MACHINE_HARDWARE_NAME}" = "x86_64" ]; then
|
KERNEL_TOOLCHAIN="aarch64"
|
||||||
KERNEL_TOOLCHAIN="aarch64-none-linux-gnu"
|
|
||||||
elif [ "${MACHINE_HARDWARE_NAME}" = "aarch64" ]; then
|
|
||||||
KERNEL_TOOLCHAIN="aarch64-none-elf"
|
|
||||||
else
|
|
||||||
die "No known toolchain available for ${MACHINE_HARDWARE_NAME}."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
if [ -n "$KERNEL_TOOLCHAIN" ]; then
|
if [ -n "$KERNEL_TOOLCHAIN" ]; then
|
||||||
TARGET_KERNEL_PREFIX=$TOOLCHAIN/lib/gcc-arm-$KERNEL_TOOLCHAIN/bin/$KERNEL_TOOLCHAIN-
|
TARGET_KERNEL_PREFIX=$KERNEL_TOOLCHAIN-none-elf-
|
||||||
else
|
else
|
||||||
TARGET_KERNEL_PREFIX=$TARGET_PREFIX
|
TARGET_KERNEL_PREFIX=$TARGET_PREFIX
|
||||||
fi
|
fi
|
||||||
|
@ -38,8 +38,8 @@ esac
|
|||||||
PKG_KERNEL_CFG_FILE=$(kernel_config_path) || die
|
PKG_KERNEL_CFG_FILE=$(kernel_config_path) || die
|
||||||
|
|
||||||
if [ -n "${KERNEL_TOOLCHAIN}" ]; then
|
if [ -n "${KERNEL_TOOLCHAIN}" ]; then
|
||||||
PKG_DEPENDS_HOST+=" gcc-arm-${KERNEL_TOOLCHAIN}:host"
|
PKG_DEPENDS_HOST+=" gcc-${KERNEL_TOOLCHAIN}:host"
|
||||||
PKG_DEPENDS_TARGET+=" gcc-arm-${KERNEL_TOOLCHAIN}:host"
|
PKG_DEPENDS_TARGET+=" gcc-${KERNEL_TOOLCHAIN}:host"
|
||||||
HEADERS_ARCH=${TARGET_ARCH}
|
HEADERS_ARCH=${TARGET_ARCH}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ PKG_DEPENDS_TARGET="toolchain"
|
|||||||
PKG_LONGDESC="ARM Trusted Firmware is a reference implementation of secure world software, including a Secure Monitor executing at Exception Level 3 and various Arm interface standards."
|
PKG_LONGDESC="ARM Trusted Firmware is a reference implementation of secure world software, including a Secure Monitor executing at Exception Level 3 and various Arm interface standards."
|
||||||
PKG_TOOLCHAIN="manual"
|
PKG_TOOLCHAIN="manual"
|
||||||
|
|
||||||
[ -n "${KERNEL_TOOLCHAIN}" ] && PKG_DEPENDS_TARGET+=" gcc-arm-${KERNEL_TOOLCHAIN}:host"
|
[ -n "${KERNEL_TOOLCHAIN}" ] && PKG_DEPENDS_TARGET+=" gcc-${KERNEL_TOOLCHAIN}:host"
|
||||||
|
|
||||||
make_target() {
|
make_target() {
|
||||||
CROSS_COMPILE="${TARGET_KERNEL_PREFIX}" LDFLAGS="" CFLAGS="" make PLAT=${ATF_PLATFORM} bl31
|
CROSS_COMPILE="${TARGET_KERNEL_PREFIX}" LDFLAGS="" CFLAGS="" make PLAT=${ATF_PLATFORM} bl31
|
||||||
|
@ -11,7 +11,7 @@ PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems."
|
|||||||
|
|
||||||
PKG_STAMP="${UBOOT_SYSTEM} ${UBOOT_TARGET}"
|
PKG_STAMP="${UBOOT_SYSTEM} ${UBOOT_TARGET}"
|
||||||
|
|
||||||
[ -n "${KERNEL_TOOLCHAIN}" ] && PKG_DEPENDS_TARGET+=" gcc-arm-${KERNEL_TOOLCHAIN}:host"
|
[ -n "${KERNEL_TOOLCHAIN}" ] && PKG_DEPENDS_TARGET+=" gcc-${KERNEL_TOOLCHAIN}:host"
|
||||||
|
|
||||||
if [ -n "${UBOOT_FIRMWARE}" ]; then
|
if [ -n "${UBOOT_FIRMWARE}" ]; then
|
||||||
PKG_DEPENDS_TARGET+=" ${UBOOT_FIRMWARE}"
|
PKG_DEPENDS_TARGET+=" ${UBOOT_FIRMWARE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user