mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
When building on an ARM64 build server, the build of configs/ti_am62x_sk_defconfig fails when building the Cortex-R5 U-Boot, as it uses host-arm-gnu-toolchain, which assumes the host machine is x86-64. Use $(HOSTARCH) instead so that it can download the bare-metal toolchain also provided by ARM for the ARM64 host architecture. Signed-off-by: Bryce Johnson <bryce@redpinelabs.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
27 lines
909 B
Makefile
27 lines
909 B
Makefile
################################################################################
|
|
#
|
|
# arm-gnu-toolchain
|
|
#
|
|
################################################################################
|
|
|
|
ARM_GNU_TOOLCHAIN_VERSION = 13.2.rel1
|
|
ARM_GNU_TOOLCHAIN_SITE = https://developer.arm.com/-/media/Files/downloads/gnu/$(ARM_GNU_TOOLCHAIN_VERSION)/binrel
|
|
ARM_GNU_TOOLCHAIN_SOURCE = arm-gnu-toolchain-$(ARM_GNU_TOOLCHAIN_VERSION)-$(HOSTARCH)-arm-none-eabi.tar.xz
|
|
ARM_GNU_TOOLCHAIN_LICENSE = GPL-3.0+
|
|
|
|
HOST_ARM_GNU_TOOLCHAIN_INSTALL_DIR = $(HOST_DIR)/opt/gcc-arm-none-eabi
|
|
|
|
define HOST_ARM_GNU_TOOLCHAIN_INSTALL_CMDS
|
|
rm -rf $(HOST_ARM_GNU_TOOLCHAIN_INSTALL_DIR)
|
|
mkdir -p $(HOST_ARM_GNU_TOOLCHAIN_INSTALL_DIR)
|
|
cp -rf $(@D)/* $(HOST_ARM_GNU_TOOLCHAIN_INSTALL_DIR)/
|
|
|
|
mkdir -p $(HOST_DIR)/bin
|
|
cd $(HOST_DIR)/bin && \
|
|
for i in ../opt/gcc-arm-none-eabi/bin/*; do \
|
|
ln -sf $$i; \
|
|
done
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|