[PATCH] fwts_framwork: add ebbr test for RISC-V

Ivan Hu ivan.hu at canonical.com
Wed May 17 08:22:53 UTC 2023


BugLink: https://bugs.launchpad.net/ubuntu/+source/fwts/+bug/2019757

The EBBR specification is not ARM specific. It applies to RISC-V too.
Hence the --ebbr flag should not be rejected with "option not available on
this architecture".

The documentation should describe that --ebbr selects the following tests:

* dt_base
* uefibootpath
* uefirtmisc
* uefirttime
* uefirtvariable
* uefivarinfo

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 src/lib/src/fwts_framework.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c
index 9e06d24c..99df2400 100644
--- a/src/lib/src/fwts_framework.c
+++ b/src/lib/src/fwts_framework.c
@@ -1350,7 +1350,7 @@ int fwts_framework_options_handler(fwts_framework *fw, int argc, char * const ar
 			fwts_framework_strdup(&fw->clog, optarg);
 			break;
 		case 49: /* --ebbr */
-#if defined(FWTS_ARCH_AARCH64)
+#if defined(FWTS_ARCH_AARCH64) || defined(FWTS_ARCH_RISCV)
 			fw->flags |= FWTS_FLAG_EBBR;
 			break;
 #else
-- 
2.34.1




More information about the fwts-devel mailing list