arm-trusted-firmware/make_helpers/toolchains/host.mk
Chris Kay 9cea2c362f build: allow multiple toolchain defaults
This change enables a fairly commonly-requested use-case, which is to
fall back to the host system's native toolchain when building on AArch64
if the bare-metal toolchain is not available.

In this situation, if the `aarch64-none-elf` GCC toolchain cannot be
located, the build system will look for `aarch64-linux-gnu` before
giving up.

Change-Id: I39d2a8837b651b28cf0eafa92f6003a7f66767a0
Signed-off-by: Chris Kay <chris.kay@arm.com>
2024-09-10 12:36:19 +00:00

39 lines
829 B
Makefile

#
# Copyright (c) 2023-2024, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
host-name := host
host-cc-parameter := HOSTCC
host-cc-default-id := gnu-gcc
host-cc-default := gcc
host-cpp-parameter := HOSTCPP
host-cpp-default-id := gnu-gcc
host-cpp-default := gcc
host-as-parameter := HOSTAS
host-as-default-id := gnu-gcc
host-as-default := gcc
host-ld-parameter := HOSTLD
host-ld-default-id := gnu-gcc
host-ld-default := gcc
host-oc-parameter := HOSTOC
host-oc-default-id := gnu-objcopy
host-oc-default := objcopy
host-od-parameter := HOSTOD
host-od-default-id := gnu-objdump
host-od-default := objdump
host-ar-parameter := HOSTAR
host-ar-default-id := gnu-ar
host-ar-default := gcc-ar
host-dtc-parameter := HOSTDTC
host-dtc-default-id := generic-dtc
host-dtc-default := dtc