refactor(measured-boot): add USE_ROMLIB option to limit BL2 size in SRAM
The measured-boot build configuration now includes the USE_ROMLIB option
to avoid build failure caused by the BL2 image exceeding its SRAM limit.
This measured-boot patch-series[1] causes an increase in BL2 size in SRAM.
[1]: https://review.trustedfirmware.org/q/topic:%2522rss/mboot-attest%2522+
Change-Id: I7cd05fc5c7422a79f0e3684ceea18acd32e3aa43
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
diff --git a/group/tf-l2-coverity-misra/fvp-mb_hash256-tbb_hash256-romlib:coverity-tf-misra.diff b/group/tf-l2-coverity-misra/fvp-mb_hash256-tbb_hash256-romlib:coverity-tf-misra.diff
new file mode 100644
index 0000000..aab4796
--- /dev/null
+++ b/group/tf-l2-coverity-misra/fvp-mb_hash256-tbb_hash256-romlib:coverity-tf-misra.diff
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/group/tf-l3-code-coverage/fvp-mb_hash256-tbb_hash256-romlib,fvp-default:fvp-tftf-fip.tftf-aemv8a.bmcov-debug b/group/tf-l3-code-coverage/fvp-mb_hash256-tbb_hash256-romlib,fvp-default:fvp-tftf-fip.tftf-aemv8a.bmcov-debug
new file mode 100644
index 0000000..d52947d
--- /dev/null
+++ b/group/tf-l3-code-coverage/fvp-mb_hash256-tbb_hash256-romlib,fvp-default:fvp-tftf-fip.tftf-aemv8a.bmcov-debug
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/group/tftf-l2-fvp/fvp-mb_hash256-tbb_hash256-romlib,fvp-default:fvp-tftf-fip.tftf-aemv8a-debug b/group/tftf-l2-fvp/fvp-mb_hash256-tbb_hash256-romlib,fvp-default:fvp-tftf-fip.tftf-aemv8a-debug
new file mode 100644
index 0000000..d52947d
--- /dev/null
+++ b/group/tftf-l2-fvp/fvp-mb_hash256-tbb_hash256-romlib,fvp-default:fvp-tftf-fip.tftf-aemv8a-debug
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/tf_config/fvp-mb_hash256-tbb_hash256 b/tf_config/fvp-mb_hash256-tbb_hash256-romlib
similarity index 93%
rename from tf_config/fvp-mb_hash256-tbb_hash256
rename to tf_config/fvp-mb_hash256-tbb_hash256-romlib
index ad1a754..3fe3958 100644
--- a/tf_config/fvp-mb_hash256-tbb_hash256
+++ b/tf_config/fvp-mb_hash256-tbb_hash256-romlib
@@ -6,3 +6,4 @@
ROT_KEY=plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem
TPM_HASH_ALG=sha256
TRUSTED_BOARD_BOOT=1
+USE_ROMLIB=1