1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-05-07 16:59:30 +00:00

arm/trusted-firmware-a: drop clang tweaks

These Clang patches don't appear to be needed anymore.  TF-A doesn't
build for various platforms but the unusual errors these patches work
around are not the cause.

Change-Id: I41dffc4f19d298d5861bb0274e6ffef6c24f4ca3
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2021-06-16 15:13:22 +01:00
committed by Jon Mason
parent f5e82358d0
commit 7edf8de381
3 changed files with 0 additions and 67 deletions
@@ -1,31 +0,0 @@
From c9209fa0f474d41bc5ecf2b988ab404123038c1b Mon Sep 17 00:00:00 2001
From: Brett Warren <brett.warren@arm.com>
Date: Tue, 3 Nov 2020 13:34:26 +0000
Subject: [PATCH] pmf.h: made PMF_STOTE_ENABLE pass -Wtautological
When compiling with clang, PMF_STORE_ENABLE triggers
-Wtautological-constant-compare. To mitigate, the definition
is modified cosmetically to not trigger this error.
Upstream-Status: Pending
Signed-off-by: Brett Warren <brett.warren@arm.com>
---
include/lib/pmf/pmf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/lib/pmf/pmf.h b/include/lib/pmf/pmf.h
index df7c9ff31..baa2dfd60 100644
--- a/include/lib/pmf/pmf.h
+++ b/include/lib/pmf/pmf.h
@@ -25,7 +25,7 @@
/*
* Flags passed to PMF_REGISTER_SERVICE
*/
-#define PMF_STORE_ENABLE (1 << 0)
+#define PMF_STORE_ENABLE 1
#define PMF_DUMP_ENABLE (1 << 1)
/*
--
2.17.1
@@ -1,31 +0,0 @@
From a0b72074ee4cfdf0ff3b807b01a962898761def4 Mon Sep 17 00:00:00 2001
From: Brett Warren <brett.warren@arm.com>
Date: Fri, 27 Nov 2020 10:29:48 +0000
Subject: [PATCH] xlat_tables_v2: remove tautological assert
When compiling with clang for aarch32, an assert triggered
-Wtautological error. This assertion is removed, as
this means there is no way for it to resolve as false anyway.
Upstream-Status: Pending
Signed-off-by: Brett Warren <brett.warren@arm.com>
---
lib/xlat_tables_v2/aarch32/xlat_tables_arch.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c b/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c
index b69c6702b..52a75b37a 100644
--- a/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c
+++ b/lib/xlat_tables_v2/aarch32/xlat_tables_arch.c
@@ -203,8 +203,6 @@ void setup_mmu_cfg(uint64_t *params, unsigned int flags,
assert(virtual_addr_space_size >=
xlat_get_min_virt_addr_space_size());
- assert(virtual_addr_space_size <=
- MAX_VIRT_ADDR_SPACE_SIZE);
assert(IS_POWER_OF_TWO(virtual_addr_space_size));
/*
--
2.17.1
@@ -55,11 +55,6 @@ LIC_FILES_CHKSUM_append = "${@bb.utils.contains('TFA_MBEDTLS', '1', ' ${LIC_FILE
# add mbed TLS to version
SRCREV_FORMAT_append = "${@bb.utils.contains('TFA_MBEDTLS', '1', '_mbedtls', '', d)}"
SRC_URI_append = " \
file://0002-pmf.h-made-PMF_STOTE_ENABLE-pass-Wtautological.patch \
file://0003-xlat-tables-v2-remove-tautological-assert.patch \
"
# U-boot support (set TFA_UBOOT to 1 to activate)
# When U-Boot support is activated BL33 is activated with u-boot.bin file
TFA_UBOOT ?= "0"