build: disable suffix rules globally

This change centralises the logic that disables the default suffix rules
that Make provides. These rules are a hold-over from legacy standards of
Make, and occasionally conflict with our rules.

Change-Id: I9e023edbc01b5ae48a96fa1078d0b81faabb0cb9
Signed-off-by: Chris Kay <chris.kay@arm.com>
This commit is contained in:
Chris Kay 2024-09-03 12:36:45 +00:00
parent 6e6228181e
commit daab00cf29
5 changed files with 1 additions and 6 deletions

View file

@ -1503,7 +1503,6 @@ endif #(SPD)
################################################################################
.PHONY: all msg_start clean realclean distclean cscope locate-checkpatch checkcodebase checkpatch fiptool sptool fip sp tl fwu_fip certtool dtbs memmap doc enctool
.SUFFIXES:
all: msg_start

View file

@ -11,6 +11,7 @@ ifndef build-rules-mk
include $(dir $(build-rules-mk))utilities.mk
.SECONDEXPANSION:
.SUFFIXES:
%/:
$(s)echo ' MD '$(call escape-shell,$(abspath $@))

View file

@ -17,8 +17,6 @@ ARCH := cortex-m0
PLAT_M0 ?= rk3399m0
PLAT_M0_PMU ?= rk3399m0pmu
.SUFFIXES:
INCLUDES += -Iinclude/ \
-I../../include/shared/

View file

@ -6,7 +6,6 @@
# Compilation rules
.PHONY: check_dtc_version stm32image clean_stm32image check_boot_device
.SUFFIXES:
all: check_dtc_version stm32image ${STM32_TF_STM32}

View file

@ -204,8 +204,6 @@ BL31_SOURCES += plat/common/plat_psci_common.c
# Compilation rules
.PHONY: check_ddr_type
.SUFFIXES:
bl2: check_ddr_type
check_ddr_type: