From patchwork Mon May 10 18:26:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 433165 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3093413jao; Mon, 10 May 2021 11:26:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGIh2qT5e5hI9XC112UigNUI04ch2ixf9giGRkBMsK2JZoynBfSoUtLHeuoPYuLBZAahFV X-Received: by 2002:a17:906:c0c3:: with SMTP id bn3mr27253511ejb.498.1620671178441; Mon, 10 May 2021 11:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620671178; cv=none; d=google.com; s=arc-20160816; b=OU6ZurHwrN4lkWsV0nh/R4ktLQVaLeqW5sYjjoO5YhHDQY1UVrU61v/OC44wBytoCJ 3jjB8Arq0F5o3yqz0uiYf4zxGcownx4Ni9/l5DatG8drakA2/kbg1GRD0WpSQV12BbCz z1yQlUFkibo7poaAH7F3O8H7MsU+YfUwfa/ydEyrTRiB9wTyyAHpAJJ8tAysiyjqZgGM ndwKHzFV9sjeUDH/nwfo/byQM9vNU/tY+NqFHB0CfpDtQ7iBUbeX74/kJuwkF1e/ODOm shymmCCP31eEX4wkcW03kAhaNB6fhiDpRUv/aAzU9Sw7K/ahYLuIXWuNTQkeUPZKKarn /Jtg== 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=vXb6/zkwkw6IADr0ngm4+/adx1VHz6gEDYxKq8zl77M=; b=fsN6MsPrLBmwcfwxjlCnxel1YEnT2SXhRV3Dk8jRsGYZ/Lc9He985d4PTboz/WGVq6 UGALojQB0asO/SjLYftYFoXMseCLpXyaL04188mZ0fNuv1e99aOwtYXMEP+0Rod1OaGK eZWwf3nApYG5yP0fK9MVBxcTHzJc/WGvicv3qOtFoUFQ2Qf1lGjcrijmIA7jP+kmXz+i IQPhE5GW0ZLWlw1SysJDroMvVk1M2h1x6vD7Rh4M79EB4Sksn7++efpk3zqu8eH+vMga ogpq00D9NP5iUNEsBsKJyEuB5U1aas6fRaMSf7HIf5BKiGx4hhkSnFjy+U6NteWrw1I4 fPmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k7HtFq8o; 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 q21si12820333edr.182.2021.05.10.11.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 11:26:18 -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=k7HtFq8o; 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 0D58B82ECE; Mon, 10 May 2021 20:26:16 +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="k7HtFq8o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A981E82EDA; Mon, 10 May 2021 20:26:14 +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-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 10F2682EB6 for ; Mon, 10 May 2021 20:26:07 +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-wm1-x32d.google.com with SMTP id 82-20020a1c01550000b0290142562ff7c9so9431441wmb.3 for ; Mon, 10 May 2021 11:26:07 -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=vXb6/zkwkw6IADr0ngm4+/adx1VHz6gEDYxKq8zl77M=; b=k7HtFq8ojd0wmakTBUj1NiB9E4oSX/dWZSbJvJCtvWP6unN2WZYtMk1MY0VKbBxhYh trQ4A8RuhVe6TDN/X4GTgwtzB2WHlOq94IidA1fBhblmyJFhmSpvmiURN9o03L/nGq9w Bpfh4DS83iy4j10h6jhAkhpCYaIjfQgUlwWtFVGbiuKNmJYmJPfVnWqF5In+ZbqGudvd xttyrI1dB3c1HQcoPPscg6xS4gRpyHNUmwmyxFXNMyqQKcavyMkfbO73ffQXyzvQDyPL t2ougB+gz8UvFZA+VuLrHGwS0Q+w+oMDohYL7S1lZgebcwGWCf2+hmVGr0X+CFbpeBRj o52Q== 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=vXb6/zkwkw6IADr0ngm4+/adx1VHz6gEDYxKq8zl77M=; b=RegBk/TT0iSeWqeDzhqnavSDuToS9JHXtoYykIyhVJ4SZqTnaiPb/Zfz43wKivuMAm KehpIqz/4OtyTE4gJ27YzsNio/flsELEVSscvCBdxyLHZjPiZMAVigEULivgAak/i0Uk p+x4Ay2364qfi94WUXzd4311P+7eBYsaqrrYJgytBIV1rv763ym10euGNVFNe7wbpDeV dgbG8HI/UzI9D/TpVjv30FER5bHxtCWvsRtNg/JkFSnhUyj3XlHJxVf+B+i5R2EqRbfa Mf/V18tNimZbmIRvKxmMyW5Pw32YzFK8AguV9W7RVUqQG49IioZn8vKTk99oGx2PlAhL xxkg== X-Gm-Message-State: AOAM532Ub/ZpSR7I2o/VKLVixKRgODDm+pwARb/lMPMLqbsSrlaDmQ/W LE+POlb++bWU1h8XaeFC6KQVow== X-Received: by 2002:a05:600c:26c9:: with SMTP id 9mr518526wmv.176.1620671166709; Mon, 10 May 2021 11:26:06 -0700 (PDT) Received: from apalos.home ([2a02:587:466e:1389:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id p17sm24274969wru.1.2021.05.10.11.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 11:26:06 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: Ilias Apalodimas , Alexander Graf , u-boot@lists.denx.de Subject: [PATCH] efi_loader: Fix Kconfig for EFI_TCG2 protocol Date: Mon, 10 May 2021 21:26:04 +0300 Message-Id: <20210510182604.234679-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 add the missing SHA1, SHA256, SHA384 and SHA512 we currently support as depenmdencies Signed-off-by: Ilias Apalodimas --- lib/efi_loader/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.31.0 Reported-by: Michal Simek diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 0b99d7c7749b..6decdee6aa3e 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 + depends on SHA1 && SHA256 && SHA384 && SHA512 help Provide a EFI_TCG2_PROTOCOL implementation using the TPM hardware of the platform.