From patchwork Wed Nov 28 06:00:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 152197 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp700725ljp; Tue, 27 Nov 2018 22:00:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/UEqqUDXy1lXwnk3/JUAcDGfZwyRlZfJlBQRePv0Z6PCYtXjm9xpSiiVrB2ltduKPsNSGtD X-Received: by 2002:aa7:c55a:: with SMTP id s26mr28769153edr.132.1543384839195; Tue, 27 Nov 2018 22:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543384839; cv=none; d=google.com; s=arc-20160816; b=xov5eXCdg0R3s56u/HJz70Yk1Ssoa35l8tqQPmQSxIaj02aip1CKjlOX+1v8siIfWU wsUF6S0fdBdA99wpu7g4EwRHAMFsSOPowCJ4idw+m1b6XGWSuTlLTqQ5yh50/VaTlgzm 2yUYJaKPw31L+OVMcKSxYejJLzZebvZB/Me69fPugF9KdwcC1tU55id65kyTRimCHvHT sWu+nHuI3mbV8TanqXrfoSu1gvB0Npn+PBsqAVvbF+qi7IDlcxFX5cIj1Fv2wiD4ixLF vh01tl1PYNVZnHBZkhNFUL/Thw5HM5tlLU3pQZGVO/GFJHqqpscX9taPn4ZnG+fQ1m8O G3Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=FT51urVIbT/Oar5mlAPUzIPT3+80Z4gZDNEut5Gaj1Y=; b=oY/6t/x2xxSQ0Jv4n0pk/DhvnRzjG7SYpQf59Tx2c5iqOpD817LdsZk1kDr7KbXJlr wPsZx5diCjcsJBcQTU9qXFQ7OlJJA2m3wt9lRyyzbCbMWiKxBytWlBtYfPEJA+0pRsYy JdufCJbzdrXD3QrxX7otAm3B3g13WPvTt/xRbVN4ggFKW7djPALtAwWs9feZGUkdBxFU mOPZ5CEZGMv3JYFIfs2JHBU0WAfal3xe19fgclICoCIaakuEY1WvAjDNUji6S3cmKRiu 4tYhbzMOd18RTs48yV0fHsWydVSYcfMXo6qplB47B+xyFMJegSCCRC72AIx/Gnevfan2 yQuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GndXOaGM; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id i48si3511067ede.239.2018.11.27.22.00.38; Tue, 27 Nov 2018 22:00:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GndXOaGM; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 90D21C22167; Wed, 28 Nov 2018 06:00:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 75925C22187; Wed, 28 Nov 2018 06:00:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 543AFC220CF; Wed, 28 Nov 2018 05:59:04 +0000 (UTC) Received: from mail-yw1-f68.google.com (mail-yw1-f68.google.com [209.85.161.68]) by lists.denx.de (Postfix) with ESMTPS id 98FF3C22198 for ; Wed, 28 Nov 2018 05:59:00 +0000 (UTC) Received: by mail-yw1-f68.google.com with SMTP id l200so10238428ywe.10 for ; Tue, 27 Nov 2018 21:59:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W2vLMV0wm/qktDI0Ug4BM8Tu1VihZA+iOGKku2NHzf8=; b=GndXOaGM1bS91OWoxkKOT4g9dc0Q7rXatvA42F0naoRqMVjej2q79CLZ6m83VjaEyT D9KO39JCEAdpt23t7goVkvSEq9abIxwINz41J7fUZROK/8GPRinFlt/QHJCS1b5E5ixo zNTi5Z/gdEA1K57k0RO7Z+Xaeq1paNkzTYrgU= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=W2vLMV0wm/qktDI0Ug4BM8Tu1VihZA+iOGKku2NHzf8=; b=UMnVQiTTcy2w18Zb5xtSM6XnxYtwx7b+mduksZmaQnNnaksXRimMk7JJLTMslvUUa3 /QWLXwLgPZ6dx7rXzRaBck9sxBlcf6hd0v01h3vKjy3PB3fXfbOowTvVsz/HW6hBJ6xX 7As64xhUgErrsg35MQ0yfFGTWuu2z1VFvJ25x7F8Fy88j/050anDtiTXx0x9LW04g/pb W68RQyBlpWUS7y8vosIFyryfBFeo+Tf/MqYTgGJUir0fuFOdCpkQCo9W5i+2JR2CySU4 ECBngu+bwLbscc9osfA/7Iy2alpIXUM5aPgEvEBNxdKmb7ZnMau0M+1Pe8RL6v5TRNzL ASHg== X-Gm-Message-State: AGRZ1gLhoqh4gZWP6+z9yVb1Ve+P+lurpeoudetsLTEuUVWt97Q9ObfC 6hwzW/H9OgpiJR7gqIFT24tcgz1VjpU= X-Received: by 2002:a81:4514:: with SMTP id s20mr37170639ywa.76.1543384739559; Tue, 27 Nov 2018 21:58:59 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id d85sm1843664ywd.22.2018.11.27.21.58.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 21:58:59 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Wed, 28 Nov 2018 15:00:59 +0900 Message-Id: <20181128060059.5508-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181128060059.5508-1-takahiro.akashi@linaro.org> References: <20181128060059.5508-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 4/4] efi_loader: bootmgr: make BootNext non-volatile X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" See UEFI specification v2.7a, section 3.3 for details attributes. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_bootmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index db391147fb2d..128d1e887cb4 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_bootmgr.c @@ -210,7 +210,8 @@ void *efi_bootmgr_load(int boot_id, if (!bootnext) goto run_list; - attributes = EFI_VARIABLE_BOOTSERVICE_ACCESS | + attributes = EFI_VARIABLE_NON_VOLATILE | + EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS; size = 0; ret = rs->set_variable(L"BootNext",