diff mbox series

fwts_framwork: add ebbr test for RISC-V

Message ID 20230517082253.31874-1-ivan.hu@canonical.com
State Accepted
Headers show
Series fwts_framwork: add ebbr test for RISC-V | expand

Commit Message

Ivan Hu May 17, 2023, 8:22 a.m. UTC
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@canonical.com>
---
 src/lib/src/fwts_framework.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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