![Suniel Mahesh](/assets/img/avatar_default.png)
A number of AArch64 platforms need to build some bits of ARM32 code, for example in TF-A (ARM Trusted Firmware) or other firmware/bootloader. This package allows to get a pre-built cross-compilation toolchain to build bare-metal ARM32 code. https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads Signed-off-by: Suniel Mahesh <sunil@amarulasolutions.com> [Thomas: - drop empty LICENSE_FILES - use VERSION variable in SITE variable - simplify symlink creation - drop visible Config.in.host option] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
27 lines
922 B
Makefile
27 lines
922 B
Makefile
################################################################################
|
|
#
|
|
# arm-gnu-a-toolchain
|
|
#
|
|
################################################################################
|
|
|
|
ARM_GNU_A_TOOLCHAIN_VERSION = 9.2-2019.12
|
|
ARM_GNU_A_TOOLCHAIN_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/$(ARM_GNU_A_TOOLCHAIN_VERSION)/binrel
|
|
ARM_GNU_A_TOOLCHAIN_SOURCE = gcc-arm-$(ARM_GNU_A_TOOLCHAIN_VERSION)-x86_64-arm-none-eabi.tar.xz
|
|
ARM_GNU_A_TOOLCHAIN_LICENSE = GPL-3.0+
|
|
|
|
HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR = $(HOST_DIR)/opt/gcc-arm-none-eabi
|
|
|
|
define HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_CMDS
|
|
rm -rf $(HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR)
|
|
mkdir -p $(HOST_ARM_GNU_A_TOOLCHAIN_INSTALL_DIR)
|
|
cp -rf $(@D)/* $(HOST_ARM_GNU_A_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))
|