From patchwork Tue Jun 18 15:49:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 805207 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:144:b0:362:4979:7f74 with SMTP id r4csp264840wrx; Tue, 18 Jun 2024 08:50:03 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUA86Ek1YxBYcjL4UkeDMv2Imwf0Ky7OEvCRYyrgMlMVPRjPluIy0F5JqAEZ7ZAf0LFtU7RFeL5Wrft3TDY6G9i X-Google-Smtp-Source: AGHT+IEvFKeTV1/FAxIfKXRSzfNzfPB2TqduIaiHaivBsUEme7AxfQxvAc8SZxgG1QRfoSTMV++l X-Received: by 2002:a17:906:2288:b0:a6f:1443:1e24 with SMTP id a640c23a62f3a-a6f60d3fd34mr837376366b.34.1718725803755; Tue, 18 Jun 2024 08:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718725803; cv=none; d=google.com; s=arc-20160816; b=SmpJ7VBH2a8mgmT+kLKDjqkRu/6hjawUelL3cOPMGGvT0M+fZ3+/N0O7z17DZ3itJw AuUyu4vjl7YDLxWyduF7eK0nDqjQUq0AwKLYhC3bfcMH1iHecr63BpPJYI8aNz5m70YH yScXxxznaash5jj/kJjNET3JYWe0+8wrGfVIytXV3/FddId5SGPBVQMW9a/yh8gt7Uot HPMSdsWRQXKaMpCr1vpE4Jj+RmoVgPyRbYIdKZWjEU06Fp6X9Jh+uqEgHcfff3/XQhG9 lU/ph9EnI/QIMfcqe8UFR6E6VRA14W/VoSo36g8GjhGp0YdH5J94fyOM7bhkgF1fVl7h zyMA== 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=EUt0vP1DvKduH+Sw1vMHEyp08EqoNWqet+e5YZUlITY=; fh=/JeJsCxW6lsweE3/hONtS51yWvA9r6mBB57kx6ISPko=; b=KZjccwN5HtwtGU1MzPCN+/XIllu5lgknFYNbavcVcqKwNoLvt3p3h9RAjGu+roHhXi 3i+PuQe4yfjaPVKlHzSma5vqgZc7R5TIAdlKXoxVJXZ+RFO97C07w24nh9vGxQjjsQMy 25+keutzyW4OZkeBwfp8SS1MkzWmJZvu1uzQQPxRuFbr1N1aMjG27UJXW4MML7G784nj xBUGv21izTehp7NeH8IqoGg7CEliwaq3Uf0yS+vq2AahySUWMKdv9VnIhFH9bO9u8EVb F+0CNkjhM/qgWHEmKIfjm+D8vs9B4AJ3M/ILZbnJbtfhdTkyRTXLktQhd4q6K8CdKkQu bdCA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AqSXXVzr; 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 a640c23a62f3a-a6f56df8897si528874766b.620.2024.06.18.08.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 08:50:03 -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=AqSXXVzr; 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 20A0C882D4; Tue, 18 Jun 2024 17:50:03 +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="AqSXXVzr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7492A882EF; Tue, 18 Jun 2024 17:50:01 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 14D968332E for ; Tue, 18 Jun 2024 17:49:58 +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-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52bd48cf36bso6384722e87.3 for ; Tue, 18 Jun 2024 08:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718725798; x=1719330598; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EUt0vP1DvKduH+Sw1vMHEyp08EqoNWqet+e5YZUlITY=; b=AqSXXVzrrEkfd5ehMDVWS+bKIKGOaeWN/tKQSMNREX0R1V8ObuNKFRJVbskTq/c9tV zVAQrHOkzoVPeS92dk5pWy/MGfZVaW6O8734w5ApUT+qyP6YrKWzzJiyWggPYqyZD3Dy vnU0hrbc/24ooBvJVqo95uah9jrQxfOuZVlgtvnoKIVlvrhibBlYVrXKpBPAWXMOtpCx o5Op8NW86jHn1/hhQu3BEo0e/mCBs+dRPmLCpmASRvg/OjIoE6d1sY+KOjdg6lSm8NmS zmFSErmZosSb08/sQ1jXCEJblAvVh5oM25APr8RyiswZgtczou4NXKJgwKtFG6Ue1X9y kO8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718725798; x=1719330598; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EUt0vP1DvKduH+Sw1vMHEyp08EqoNWqet+e5YZUlITY=; b=L61PBaf7cmFtkvunOFrxR2mErWrFFjVNuqvrdZdtOoOj0dv4RfYbT+p/8DiNKxAfmI IQCwv9Pb+XoGC77ny02h6CBiQiLIctuBzfGxYKaS8715AGui4AY0kZA21iU0uGAPkPEo Pna6pFpBUIQxuAr/zL6Scs76Aqf+kSsqADW6cOkJlwW9mrumHTDLPPHZbQPnZLma7lCB Sb4b9eIeq1qKFXsnNhlKhOfeUKkzaDnDdB+BWf/Cv2RHA58aY2wrcpQK+ITk2ZNKWcLL mEhL+guYrTmIk2SBTxY1uwhb66eweZ7787r3KHSqsPeTYXZj9urX9Jnr0NV8KReiqMi9 D8Rw== X-Gm-Message-State: AOJu0YwtqPgT4B0owfmABmfqRv3Cy1BKm4VQFCBiQ6lhQXCni0rhuS2S l8oLR11bJM/vO6FJqqXHo+c4h8Wnv5WAakFNqL6gSJhlY4WsH8EEQ96S/woi0RGMlep63fXoCyY wmZQ= X-Received: by 2002:a05:6512:b90:b0:52c:aa8e:12da with SMTP id 2adb3069b0e04-52ccaa55645mr20705e87.7.1718725797816; Tue, 18 Jun 2024 08:49:57 -0700 (PDT) Received: from localhost.localdomain (ppp046103020130.access.hol.gr. [46.103.20.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-362822f53f6sm1012254f8f.0.2024.06.18.08.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 08:49:57 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: u-boot@lists.denx.de, Ilias Apalodimas Subject: [PATCH] efi_loader: adjust config options for capsule updates Date: Tue, 18 Jun 2024 18:49:52 +0300 Message-ID: <20240618154952.12314-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean EFI_IGNORE_OSINDICATIONS is used to ignore OsIndications if setvariable at runtime is not supported and allow the platform to perform capsule updates on disk. With the recent changes boards can conditionally enable setvariable at runtime using EFI_RT_VOLATILE_STORE. So let's make the options depend on each other and clarify their functionality. When EFI_RT_VOLATILE_STORE, setvariable at runtime is supported and EFI_IGNORE_OSINDICATIONS, which also breaks the EFI spec, is not needed anymore. Signed-off-by: Ilias Apalodimas --- lib/efi_loader/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index 430bb7f0f7dc..c84064de1366 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -220,6 +220,8 @@ config EFI_CAPSULE_ON_DISK config EFI_IGNORE_OSINDICATIONS bool "Ignore OsIndications for CapsuleUpdate on-disk" depends on EFI_CAPSULE_ON_DISK + depends on !EFI_RT_VOLATILE_STORE + default y help There are boards where U-Boot does not support SetVariable at runtime. Select this option if you want to use the capsule-on-disk feature