mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

Up until recently the build system accepted an arbitrary value for `AS` and, unbeknownst to anybody, was simply not making use of it. Recent feedback has revealed that a number of contributors have `AS` explicitly configured to use the GNU assembler, which is not a supported assembler, and this breakage has yielded some cryptic error messages, e.g.: aarch64-none-elf-as: unrecognized option '-x' This change introduces human-readable diagnostics to help developers with diagnosing unsupported toolchain tools: The configured AArch64 assembler could not be identified and may not be supported: aarch64-none-elf-as The default AArch64 assembler is: aarch64-none-elf-gcc The following tools are supported: - Arm® Compiler for Embedded `armclang` - LLVM Clang (`clang`) - GNU GCC (`gcc`) The build system will treat this assembler as GNU GCC (`gcc`). Change-Id: I316036c83be2d45ee83a88846cf65c6ce7ae3c26 Signed-off-by: Chris Kay <chris.kay@arm.com>
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
#
|
|
# Copyright (c) 2023-2024, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
aarch32-name := AArch32
|
|
|
|
aarch32-cc := $(if $(filter-out default,$(origin CC)),$(CC))
|
|
aarch32-cc-default := $(or $(CROSS_COMPILE),arm-none-eabi-)gcc
|
|
aarch32-cc-id-default := gnu-gcc
|
|
|
|
aarch32-cpp := $(if $(filter-out default,$(origin CPP)),$(CPP))
|
|
aarch32-cpp-default := $(or $(CROSS_COMPILE),arm-none-eabi-)gcc
|
|
aarch32-cpp-id-default := gnu-gcc
|
|
|
|
aarch32-as := $(if $(filter-out default,$(origin AS)),$(AS))
|
|
aarch32-as-default := $(or $(CROSS_COMPILE),arm-none-eabi-)gcc
|
|
aarch32-as-id-default := gnu-gcc
|
|
|
|
aarch32-ld := $(if $(filter-out default,$(origin LD)),$(LD))
|
|
aarch32-ld-default := $(or $(CROSS_COMPILE),arm-none-eabi-)gcc
|
|
aarch32-ld-id-default := gnu-gcc
|
|
|
|
aarch32-oc := $(if $(filter-out default,$(origin OC)),$(OC))
|
|
aarch32-oc-default := $(or $(CROSS_COMPILE),arm-none-eabi-)objcopy
|
|
aarch32-oc-id-default := gnu-objcopy
|
|
|
|
aarch32-od := $(if $(filter-out default,$(origin OD)),$(OD))
|
|
aarch32-od-default := $(or $(CROSS_COMPILE),arm-none-eabi-)objdump
|
|
aarch32-od-id-default := gnu-objdump
|
|
|
|
aarch32-ar := $(if $(filter-out default,$(origin AR)),$(AR))
|
|
aarch32-ar-default := $(or $(CROSS_COMPILE),arm-none-eabi-)gcc-ar
|
|
aarch32-ar-id-default := gnu-ar
|
|
|
|
aarch32-dtc := $(if $(filter-out default,$(origin DTC)),$(DTC))
|
|
aarch32-dtc-default := dtc
|
|
aarch32-dtc-id-default := generic-dtc
|