kumquat-buildroot/package/arm-gnu-toolchain/arm-gnu-toolchain.mk
Xuanhao Shi f1017a5834 package/arm-gnu-toolchain: revert to version 10
Revert the toolchain to version 10.x because of bug in 11.x:
when the pre-packaged GCC was built, it could be targeting
a newer x86_64 architecture than the processor being used.
Confirmed fix will be implemented in the next release:

https://bugs.linaro.org/show_bug.cgi?id=5825#c19
Signed-off-by: Xuanhao Shi <x-shi@ti.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-08-01 19:44:43 +02:00

27 lines
896 B
Makefile

################################################################################
#
# arm-gnu-toolchain
#
################################################################################
ARM_GNU_TOOLCHAIN_VERSION = 10.3-2021.10
ARM_GNU_TOOLCHAIN_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-rm/$(ARM_GNU_TOOLCHAIN_VERSION)
ARM_GNU_TOOLCHAIN_SOURCE = gcc-arm-none-eabi-$(ARM_GNU_TOOLCHAIN_VERSION)-x86_64-linux.tar.bz2
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))