mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 14:55:16 +00:00
Merge changes from topics "gr/gcc12", "jc/toolchain_update_2.9" into integration
* changes: docs(build): update GCC to 12.2.Rel1 version fix(build): allow lower address access with gcc-12
This commit is contained in:
commit
fbce34912f
3 changed files with 11 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -414,6 +414,10 @@ ifeq ($(findstring clang,$(notdir $(CC))),)
|
||||||
WARNINGS += -Wunused-but-set-variable -Wmaybe-uninitialized \
|
WARNINGS += -Wunused-but-set-variable -Wmaybe-uninitialized \
|
||||||
-Wpacked-bitfield-compat -Wshift-overflow=2 \
|
-Wpacked-bitfield-compat -Wshift-overflow=2 \
|
||||||
-Wlogical-op
|
-Wlogical-op
|
||||||
|
|
||||||
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||||
|
TF_CFLAGS += $(call cc_option, --param=min-pagesize=0)
|
||||||
|
|
||||||
else
|
else
|
||||||
# using clang
|
# using clang
|
||||||
WARNINGS += -Wshift-overflow -Wshift-sign-overflow \
|
WARNINGS += -Wshift-overflow -Wshift-sign-overflow \
|
||||||
|
|
|
@ -26,7 +26,7 @@ Toolchain
|
||||||
|TF-A| can be built with any of the following *cross-compiler* toolchains that
|
|TF-A| can be built with any of the following *cross-compiler* toolchains that
|
||||||
target the Armv7-A or Armv8-A architectures:
|
target the Armv7-A or Armv8-A architectures:
|
||||||
|
|
||||||
- GCC >= 11.3.Rel1 (from the `Arm Developer website`_)
|
- GCC >= 12.2.Rel1 (from the `Arm Developer website`_)
|
||||||
|
|
||||||
You will need the targets ``arm-none-eabi`` and ``aarch64-none-elf`` for
|
You will need the targets ``arm-none-eabi`` and ``aarch64-none-elf`` for
|
||||||
AArch32 and AArch64 builds respectively.
|
AArch32 and AArch64 builds respectively.
|
||||||
|
|
|
@ -104,6 +104,12 @@ define ld_option
|
||||||
$(shell if $(LD) $(1) -v >/dev/null 2>&1; then echo $(1); fi )
|
$(shell if $(LD) $(1) -v >/dev/null 2>&1; then echo $(1); fi )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Convenience function to check for a given compiler option. A call to
|
||||||
|
# $(call cc_option, --no-XYZ) will return --no-XYZ if supported by the compiler
|
||||||
|
define cc_option
|
||||||
|
$(shell if $(CC) $(1) -c -x c /dev/null -o /dev/null >/dev/null 2>&1; then echo $(1); fi )
|
||||||
|
endef
|
||||||
|
|
||||||
# CREATE_SEQ is a recursive function to create sequence of numbers from 1 to
|
# CREATE_SEQ is a recursive function to create sequence of numbers from 1 to
|
||||||
# $(2) and assign the sequence to $(1)
|
# $(2) and assign the sequence to $(1)
|
||||||
define CREATE_SEQ
|
define CREATE_SEQ
|
||||||
|
|
Loading…
Add table
Reference in a new issue