diff --git a/recipes-bsp/trusted-firmware-a/tf-a-stm32mp/0001-correct-DTC-version-detection.patch b/recipes-bsp/trusted-firmware-a/tf-a-stm32mp/0001-correct-DTC-version-detection.patch new file mode 100644 index 0000000..3cccaeb --- /dev/null +++ b/recipes-bsp/trusted-firmware-a/tf-a-stm32mp/0001-correct-DTC-version-detection.patch @@ -0,0 +1,26 @@ +From a9163bb270c27524c36cfc216ddb61169a7ccef8 Mon Sep 17 00:00:00 2001 +From: Christophe Priouzeau +Date: Fri, 29 Apr 2022 16:57:28 +0200 +Subject: [PATCH] correct DTC version detection + +Signed-off-by: Christophe Priouzeau +--- + plat/st/stm32mp1/platform.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plat/st/stm32mp1/platform.mk b/plat/st/stm32mp1/platform.mk +index 55acd6742..2db7b506c 100644 +--- a/plat/st/stm32mp1/platform.mk ++++ b/plat/st/stm32mp1/platform.mk +@@ -109,7 +109,7 @@ endif + endif + + $(eval DTC_V = $(shell $(DTC) -v | awk '{print $$NF}')) +-$(eval DTC_VERSION = $(shell printf "%d" $(shell echo ${DTC_V} | cut -d- -f1 | sed "s/\./0/g"))) ++$(eval DTC_VERSION = $(shell printf "%d" $(shell echo ${DTC_V} | cut -d- -f1 | sed "s/\./0/g" | grep -o [0-9]*))) + DTC_CPPFLAGS += ${INCLUDES} + DTC_FLAGS += -Wno-unit_address_vs_reg + ifeq ($(shell test $(DTC_VERSION) -ge 10601; echo $$?),0) +-- +2.25.1 + diff --git a/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.4.bb b/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.4.bb index d2fb5fb..c992165 100644 --- a/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.4.bb +++ b/recipes-bsp/trusted-firmware-a/tf-a-stm32mp_2.4.bb @@ -16,6 +16,8 @@ SRC_URI += " \ file://0001-st-update-v2.4-r1.0.0.patch \ file://0002-v2.4-stm32mp-r1.1-rc1.patch \ file://0003-v2.4-stm32mp-r2.patch \ + \ + file://0001-correct-DTC-version-detection.patch \ " TF_A_VERSION = "v2.4"