From patchwork Tue May 11 11:09:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 434194 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3716745jao; Tue, 11 May 2021 04:09:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/dI7UO2XwyTYp2jXk14J/yvk5yaQUvxjrYZ5lmcv0eUBa0kFb3BLO6sz92sxB6Sh3tFx8 X-Received: by 2002:a05:6402:487:: with SMTP id k7mr5140851edv.315.1620731389602; Tue, 11 May 2021 04:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620731389; cv=none; d=google.com; s=arc-20160816; b=zFu5Qkhp7KTOybJmexemi93OCcMiJwItxdzctsgw7mjnE/lgFhejgXkC8vGBYfUqXV 1qkdqAtAK5os/+4AYSHVN1tgQ2979rkNjY1Va3kwZvxX8lSHsj/9uNeJeXhIB6bBW+Hz 3RvPfAYQywrLJd9h9wqFlA7AfH25Y7jzlFKXaIRVj7oFdW+L9pmnAeuSJDUYPIiguhws l0M+LhfnhJ79CTAwwU5Bu3GaI3MicSdjv+OQEFZaAA5uTVJySuGsJh9hZlB4p6L4Hwmn cuicEER3fQtY34F6mHJ13Mzy9wddkFfSntdnWb+eTsEsLcyhKZEbITRhuDfH8/JnRJ0K WvZQ== 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=xBMblBD3SamYcASm4IS5Xnvu0w4xOXognM+wnrzg/nM=; b=kabk0WWrz5YHnp7eJUTBOhvPHgbvOVL2jmWeX+e9zDQZ4JjJfvWi7FM17fRdgRLNtB AU7cjSO8Qzv1mqQn0n3p1rWXAAWV2AS8lb2bgJDT2XsR0OtOtm9sU2YzeJpegcGf4ZJ/ JuZ449g8s0fsGqu8Pk5cm02/w1c8h99mq0d9LUacXLzCQ/UX3q6KkraeAIxIMuu5aydz GxomA+V3G/26O2Acww+50K2sgBW7ZnVgRroZR7GSax1hsTna+3leEBpVrDv9qjwqv/de eo1CzoioSlQBHkRsvdTjL3ZC/vv0w+mTFEilNt1ASLNb+qBbIe2qr+7aPGu4ahj5TxfF CQgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SLLaiLxu; 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 e19si16066687edy.251.2021.05.11.04.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 04:09:49 -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=SLLaiLxu; 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 834BF82F59; Tue, 11 May 2021 13:09:48 +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="SLLaiLxu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3555B82F62; Tue, 11 May 2021 13:09:47 +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-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 7263482F56 for ; Tue, 11 May 2021 13:09:44 +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-x42a.google.com with SMTP id e7so1174467wrc.11 for ; Tue, 11 May 2021 04:09:44 -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=xBMblBD3SamYcASm4IS5Xnvu0w4xOXognM+wnrzg/nM=; b=SLLaiLxu3LFX+fudKEhqjTHxu3l6AFqUV6Xpuxd6+o7talz4gZ9VpFXKxwqDowl/8B KDSWcJxUMVaqwJz9Npm5HaluTCtjhrFGtRXwSe/kw+a0sCt7F6HKeoTQ3eo/fhMSYY4b JI983sG2cpW+pD+hW5kGBgssIdJFQ9VbVqHwHWOQcU2ZAeoXFVdaxkfhRVWYJ+N0O1M6 3DfkgceYfebeDQrQ+HY0N9HgAX1hxpc1DYGfY0hHF05qyQ6sCU45GAAiKayMmum6O8jh bqUH4y5qdaF3TXd5Mx7ISxA4E6Y/w+bMmWbQCvPIKHXvLRITYTV1ZJkYOOYwkIFnNibq ngjg== 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=xBMblBD3SamYcASm4IS5Xnvu0w4xOXognM+wnrzg/nM=; b=SblMQWARf20VUUrMtMeBuVSnlJLQgDXAb31DdN7IOWk5SZnzUUxuqKJvJByCYHuFTm OL+vCZZ+RKDzB/e1GwQTIGNm7QizCDrKtjdyFtabbXUJU2CEpDrc4TWhbU7J0VBOHA0h 1uyDi/Xhli1Yk46yocINOK/5Dtu+ekozSVLqXEct/9Xe9iXCX7DD6A5RJ52RjKd2usPQ p3MzejjaPQWTXY7ss9+92UaufnrVYHFjCL7dNU9LG/TyReXWuvO1Gtq0EfKAPDgW6mdO cyoKGsG69+7NJLoXdhoifa8jUemoP0P2M7OngBOJHRkD7tX8r7J99uGdyFtL/3nCGu9A sG7g== X-Gm-Message-State: AOAM532NmI4b2rYhJugb2L47h2ULtMcybYA76QyYSV/Pp38WsAu7sX8+ 07xXHpipoH7WEUWRqk/VzsyGNA== X-Received: by 2002:a5d:58d0:: with SMTP id o16mr825451wrf.420.1620731384049; Tue, 11 May 2021 04:09:44 -0700 (PDT) Received: from apalos.home ([2a02:587:466e:1389:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id y5sm25615273wrm.61.2021.05.11.04.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 04:09:43 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: Ilias Apalodimas , Michal Simek , Alexander Graf , u-boot@lists.denx.de Subject: [PATCH v3] efi_loader: Fix Kconfig for EFI_TCG2 protocol Date: Tue, 11 May 2021 14:09:41 +0300 Message-Id: <20210511110941.259492-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 'depend' changes since v2: - remove 'on' after select 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..4acc0d14e4cc 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 SHA1 && SHA256 && SHA384 && SHA512 help Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware of the platform.