From patchwork Tue May 11 10:57:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 434193 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3706843jao; Tue, 11 May 2021 03:57:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsP3Rxr2xAWYVjFByuDJkftQY8WyIiH0AiuGfZ1JSZTO54RLBzIQkrpfaXETxQ2zxN0Wh3 X-Received: by 2002:a17:906:c09:: with SMTP id s9mr31336007ejf.145.1620730654639; Tue, 11 May 2021 03:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620730654; cv=none; d=google.com; s=arc-20160816; b=0MVgn20BjT6Lk/ur9Qr3ggo3nq2uS32US5MoT4cQCDNgMIrpfjEwjtpo7r+EyWyQFU mEo7gvLDygEdWN8Dor+Ao58YN0AQ8KNiBvbgNDkmLwbyO78f7PfbO+x4GQC4bzX9jvNU 1EM9xoi7K2y/NV0v4llohOFKmPOdKVAO0PrPiRwopTohY9yW4fuuBuX8rziddYwESsZ3 1/KV6wq9PMBil54gpUHvUFiMn4xNGN3bcu+EUA09KBgIshjrBD06yaRoUIbiroVIKDVC +2mP3viUaWOye8hIESGd5ahVqiM/UFrl7IhHfCr+Z8/ZmA/vDhWwMPHszdr0IIhOuDMu 12Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=2eenGGpI4ZD9nK6H/URgAGUZP+6nRIbfPH4x8gT1PYY=; b=uVqEXCY/F5n4F9CKJFSEvKauIauYTl/QvKfGRWWFn2uC0zkFjf6ljQI8OZ56HNRnBE i0U8gNr708rCmoyUcNHzvPCS0zKPS86YXWn67in4XGGVhhQgxgvN30/FCDhVv2hhhDmd xmUm+gmIJOXaY09K32TE5OSWYkjYy7s4mS5mrZ4DpeF34ogimanP8JOopsUe7dezFj5c zl/GY8EePGBPHCtSTRhNceScsT6dUZZiwt6g/SQLDmhpj3Y0yNpecyq1GPda/JP206Fg AtQt42KhkhuRFgItG2vgvdZ4I99iGpuz31WdmixIfYTScoVQeHWHkQLPPYwWXXxEjibQ 7lew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfwQkucp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id s13si17694855edr.539.2021.05.11.03.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfwQkucp; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 045FB82F3E; Tue, 11 May 2021 12:57:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PfwQkucp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 16A0D82F3E; Tue, 11 May 2021 12:57:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 73F8582F52 for ; Tue, 11 May 2021 12:57:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x432.google.com with SMTP id l2so19662463wrm.9 for ; Tue, 11 May 2021 03:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2eenGGpI4ZD9nK6H/URgAGUZP+6nRIbfPH4x8gT1PYY=; b=PfwQkucpWoBInp32p+X+UPDLpog4WnzhBHEdry5TnGUf4CMnwxr1GUCAGGyMXpAEaO b7WCFQgIkBoQaa5q4RsUQi8OoaDhGm9vcGxOwbgefI84PPMlppic6SRzUmUfgb85S75U dhig1wUqOu5dDI/UrP2i/85VSDbCVZrFZr4RC90rCERjr+GoCEaqgF0MN+gHiW9djfI6 P/IPCbY7YT28XY7mNpr8GlmWYYNHrK7AMconHmXM4341eNBvA9o6E6FLCMot5qTqnu0z jvI/Z6Q0NE/LtKGrCkK1Bk2bPbgz7iWyI1DlC//dC0ocNT7pX7uDkxAP8YYHPuovzovS yvDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2eenGGpI4ZD9nK6H/URgAGUZP+6nRIbfPH4x8gT1PYY=; b=Jc8D3n27IRmvDckdMwZ+/VOByk2WNCRGwlQohty2dEeEmxryRBRTq37/DpEuX6/q4F qG/vyQFIz3C4Cjmn8LO8VJX4Ykqa5+cicIHrS3xLcSueiuSUIwttfJBpLytIuz6ymtfV dj1cHJnMqIFqkFSn94d9KP21VC+lqK4ZkrVecCukwZDAXk5S+QtGvMt38gaBk99PqBLo vo7dqfDnFJed0gZwVGeN8jduca8dC4tI2y1cD7nV3YB7bd9KkhMFfS3uvFnUyTTRrG9I 0h0t1bpFiQlkbWKC28HUCpuTTXhq1F/C9SbfUAHqw63CqghuJKGvrfCOqjV+Nkr6VTnX 6VlQ== X-Gm-Message-State: AOAM533GZUsIlaGFBZeTYe+SNsAM49wUZWKyo2SgLmQ+0rnlT+HTkpfo ylXyH3hiSox2gxeSWaU7XjToLg== X-Received: by 2002:adf:f907:: with SMTP id b7mr9659863wrr.357.1620730645032; Tue, 11 May 2021 03:57:25 -0700 (PDT) Received: from apalos.home ([2a02:587:466e:1389:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id m22sm3217158wml.40.2021.05.11.03.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:57:24 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: Ilias Apalodimas , Michal Simek , Alexander Graf , u-boot@lists.denx.de Subject: [PATCH v2] efi_loader: Fix Kconfig for EFI_TCG2 protocol Date: Tue, 11 May 2021 13:57:21 +0300 Message-Id: <20210511105721.258754-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean EFI_TCG2 depends not only on TPMv2 but also on the underlying algorithms. So select the missing SHA1, SHA256, SHA384 and SHA512 we currently support Reported-by: Michal Simek Signed-off-by: Ilias Apalodimas --- Changes since v1: - use 'select' instead of 'depends' lib/efi_loader/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.31.0 diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 0b99d7c7749b..660236c1fc20 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -301,6 +301,7 @@ config EFI_RNG_PROTOCOL config EFI_TCG2_PROTOCOL bool "EFI_TCG2_PROTOCOL support" depends on TPM_V2 + select on SHA1 && SHA256 && SHA384 && SHA512 help Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware of the platform.