Message ID | 20201113041511.48207-6-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp899068ils; Thu, 12 Nov 2020 20:17:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwopzMAIhAhpET4/tUa6/SL1osCYsYG7oQNs5myj1Fiwm32ngl7hj02T69IX7GXMyj2Zac X-Received: by 2002:a05:6402:142f:: with SMTP id c15mr625414edx.33.1605241028295; Thu, 12 Nov 2020 20:17:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605241028; cv=none; d=google.com; s=arc-20160816; b=JN7m5Y7aNKyJDQU1LbqPzsXzsB1cSe7WoYqEqv7yG4mF6rr0ByarfNKqgZDF5iexFP ndOAWq9m4Rj5EFoTeIzhiOva2cDAcmwwdP7gIS1J+qhnvSh33Yyi7jaF2VVUBplDvBoS 2Bf6NwhG8Luv81k04+jg6Idqh4xumrMiH8PvagWC/wpdFtG8zJIQp3fpkeTo9/9Hz4uW /E+M33p06Hu7nV/AKjKAF8fflMLxMAK97Ea43kP/nmzO7RxHugXCFpkqSA2Odoar6ja3 C9PC3uwl1h9/btZQSth2zkPHvLp49MNxE9xfH6xF59JMKGDJ9v0Q/jhr+12q0CEBDbRS HFag== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=n5F2thosGyZvZniKXgGd9Rsns7gjUVAKncs8BSfblsY=; b=HI3It7f63FB6gktE53Ugl0YH5vJ3ETVtla/vuX2IQ19unUFTxLL3sXjzQPQnhnpE3B D3gBupgwKLgNg/4xigALEJq4V8tlYLa6ANLY7IyI8lvXkF7zg5aQEtrm+XCLFMILJTYm +NdQXSkkBP0uAnaJuVuuZHn/SeIDoTW4vTX5xw70oPKdxMegj5ZmMfTMGKs6UbKuzA3A 6qgK1AlJkIC0V15ZFne7zPELHLKw5qWgUho848W3u5EaPwNmAFrNIs68afuUN5qU0SyJ jmZMrH51OzF/JQmOz/dbMfsBB62OQ4gHKfL0k7tGSyCONIDaldVCPmXao0HvFoVg98mN bRuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IvuPDge6; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id gn26si5667200ejc.739.2020.11.12.20.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 20:17:08 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IvuPDge6; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 939F38255C; Fri, 13 Nov 2020 05:16:25 +0100 (CET) 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="IvuPDge6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C2C4F82573; Fri, 13 Nov 2020 05:15:59 +0100 (CET) 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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (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 E773E82556 for <u-boot@lists.denx.de>; Fri, 13 Nov 2020 05:15:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pl1-x641.google.com with SMTP id k7so3944490plk.3 for <u-boot@lists.denx.de>; Thu, 12 Nov 2020 20:15:51 -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=n5F2thosGyZvZniKXgGd9Rsns7gjUVAKncs8BSfblsY=; b=IvuPDge6aH+JPkxVi+I3o4PVuA/6JD5fhbJXnYHmJug0KwK01cOL85vqN8KGmIkhb1 o69QJzi5u1RT9+w4L0Kcw6CU6V8V0rGGiVtN/slcjtyMzwQpllyfX5OCdLuP0KyzkFJQ R0Uj/llDhs3jLwHgX7iZYD2tp1MWYpHXQscoaVekKhER1xneKaq54lkITPRBPv2JN1B/ Yf0EZ+tKYxGogEs1fvJROkUj1ULlafNLv6r95FjR2vEG4frhdFHeokyqYqaPzJH2Jdx5 zeG+7671Om9OE4Z9hW2ptNx6p9mJxwdwziRZcX6FskGq/YHVqRMiq+oR7U4ZIn1hNrny Y58g== 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=n5F2thosGyZvZniKXgGd9Rsns7gjUVAKncs8BSfblsY=; b=kcVfkewlPEA7BfNMIVou6murXCrq0v0r1Vkp9fah6gTbSeQgfmGL3y6Q1bIFBRqq/R /NKaVJMacEDI9xg2iyhuTphpJ/zJSB098ntL39bfK4QMD1nJtchdbvymfX57/MJEOQzf fdYV36eESJkd7igZ2hf7gx5bIlG0YPKXE6nb2eRrLPo8FKwr3OHlkIPG1tqN0fhr/kNx RRd98w0yQbN6KkIImOC+wkgRazUgXb9mDSwKijUsa3furbDDkFou0dIqi+WWXJiMIxRU e4X1e3ZoEqhaVPxkT122gF13Vx+DAStcbnKEE6DGdW4cYw4ayCB3BD/bVAKzDRoDhN0V D6Mw== X-Gm-Message-State: AOAM5337+2eTxpTq2p00VaYEnuQhIhB+I4tDMAtUXPIBzym1XaOV3uFY 990b7qKI2Ij2NJRTHZUtCGug8g== X-Received: by 2002:a17:902:8605:b029:d5:a6dc:ad0a with SMTP id f5-20020a1709028605b02900d5a6dcad0amr356697plo.56.1605240945472; Thu, 12 Nov 2020 20:15:45 -0800 (PST) Received: from localhost.localdomain (p784a5642.tkyea130.ap.so-net.ne.jp. [120.74.86.66]) by smtp.gmail.com with ESMTPSA id s10sm4588340pjn.35.2020.11.12.20.15.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 20:15:44 -0800 (PST) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: lukma@denx.de, trini@konsulko.com, xypron.glpk@gmx.de, agraf@csgraf.de Cc: sughosh.ganu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v8 05/18] efi_loader: add option to initialise EFI subsystem early Date: Fri, 13 Nov 2020 13:14:58 +0900 Message-Id: <20201113041511.48207-6-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201113041511.48207-1-takahiro.akashi@linaro.org> References: <20201113041511.48207-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: add capsule update support
|
expand
|
diff --git a/common/board_r.c b/common/board_r.c index b9217b2e27f0..2212d981e5ea 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -73,6 +73,9 @@ #if defined(CONFIG_GPIO_HOG) #include <asm/gpio.h> #endif +#ifdef CONFIG_EFI_SETUP_EARLY +#include <efi_loader.h> +#endif DECLARE_GLOBAL_DATA_PTR; @@ -889,6 +892,9 @@ static init_fnc_t init_sequence_r[] = { #endif #if defined(CONFIG_PRAM) initr_mem, +#endif +#ifdef CONFIG_EFI_SETUP_EARLY + (init_fnc_t)efi_init_obj_list, #endif run_main_loop, }; diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig index ab42f3ba75b1..075481428cdf 100644 --- a/lib/efi_loader/Kconfig +++ b/lib/efi_loader/Kconfig @@ -27,6 +27,10 @@ config EFI_LOADER if EFI_LOADER +config EFI_SETUP_EARLY + bool + default n + choice prompt "Store for non-volatile UEFI variables" default EFI_VARIABLE_FILE_STORE
If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation of UEFI subsystem will be done as part of U-Boot initialisation. Please note that this option won't be enabled explicitly by users, instead, should be enabled implicitly by other configuration options. Specifically, this feature will be utilised in implementing capsule-on-disk feature. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- common/board_r.c | 6 ++++++ lib/efi_loader/Kconfig | 4 ++++ 2 files changed, 10 insertions(+) -- 2.28.0