SQUAD: Update reference configs
Update reference configs for SQUAD and use ARMClang as default compiler.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I7632166c3219ba8cde3e7d4aa750a2968a582410
diff --git a/tfm_ci_pylib/utils.py b/tfm_ci_pylib/utils.py
index 66359a6..3ef5a48 100755
--- a/tfm_ci_pylib/utils.py
+++ b/tfm_ci_pylib/utils.py
@@ -9,7 +9,7 @@
__copyright__ = """
/*
- * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -366,6 +366,28 @@
"dec": size_data.group("dec"),
"hex": size_data.group("hex")}, eabi_size]
+def fromelf(filename):
+ """ Run fromelf command and parse the output using regex. Will
+ return a tuple with the formated data as well as the raw output of the
+ command """
+
+ size_info_rex = re.compile(r'^\s+(?P<Code>[0-9]+)\s+(?P<data>[0-9]+)\s+'
+ r'(?P<RO>[0-9]+)\s+(?P<RW>[0-9]+)\s+'
+ r'(?P<ZI>[0-9]+)\s+(?P<Debug>[0-9a-f]+)\s',
+ re.MULTILINE)
+
+ fromelf_size = check_output(["fromelf", "-z", filename],
+ timeout=18).decode('UTF-8').rstrip()
+
+ size_data = re.search(size_info_rex, fromelf_size)
+
+ return [{"Code": size_data.group("Code"),
+ "Inline Data": size_data.group("data"),
+ "RO Data": size_data.group("RO"),
+ "RW Data": size_data.group("RW"),
+ "ZI Data": size_data.group("ZI"),
+ "Debug": size_data.group("Debug")}, fromelf_size]
+
def list_subdirs(directory):