From patchwork Wed May 17 08:22:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 1782510 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=H2GizgV3; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QLmMN3znCz20KF for ; Wed, 17 May 2023 18:23:11 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1pzCR5-0001wa-Qo; Wed, 17 May 2023 08:23:03 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pzCR4-0001wT-BP for fwts-devel@lists.ubuntu.com; Wed, 17 May 2023 08:23:02 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 691263F305 for ; Wed, 17 May 2023 08:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684311782; bh=4xWkeCKp/t7508hOdwZxKJFdOZ4Z16B3V8XGe1mfw9w=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=H2GizgV3sG9CyUF3jUdcME7Txm1a/wc1pqqgMym4kRWxFzHwX4MOhFPfBAw2qLtGg Sb2OEZ3HKteDZVhpSoK1n7z+rbq/2Uu5d7yeNdURaRQv/yQU7LG+D2qbsshxeix8dg kCnMA0PqaGwSBjo5rHDmj2YiUC+qhJko3OfToio4Tb8eCNZ7Mnn3OMGkomDa2noZh9 jfKuqMxW9YeWqx6Pzj5UkL2gK9AEgWNbTFoALmYflTbfZ7UXzXsSINq3FVLMGCAcpg CWonFqUx1kqoxZnMvSeoVPy+b33IM1p0l0O2X1XQgDKrLtpKepE/OjhcAybK+Wi6el vUWJClBzEiCRw== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] fwts_framwork: add ebbr test for RISC-V Date: Wed, 17 May 2023 16:22:53 +0800 Message-Id: <20230517082253.31874-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" 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 --- 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