Message ID | 20200722060539.15168-6-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp253729ilg; Tue, 21 Jul 2020 23:07:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkFMRYiwFRaSbaS0PiNUU5McLruepFTxNd8BwpH1yau1H5UqH0TzVDy5n7TlMQSEoSQk4r X-Received: by 2002:a17:906:b0d5:: with SMTP id bk21mr27706888ejb.93.1595398034291; Tue, 21 Jul 2020 23:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595398034; cv=none; d=google.com; s=arc-20160816; b=e/vGfwVl59mDcMLDjF2L+pdW6Ewz3O+ymaialhe90xLqdfq3Jd8hPYq2XWpxJmOfnN ZAGifD6lVg4rwtTiT1ZTvwrHFTf31Lsu10n0C3RjenFNJPzzCRoEo9tMMBQjQ6c5Lorr d9+aXM3VwVn3DziJDjBC3zYXSlRGLgjQOwPSVTDTtEXx91BaFpsI1utXI33zK3vO55ck L408tKKseJbAvsjXrm2zXyUJkaiDTjg8RjALqzmyzrsb5mJpRKYd9yE2tPqb8I8tMHPw EwY2OsXuetgouyU7OXQesmvgTZUMKyVY0PLpl0AZdZaIhDXB49MaqnxE3WZ4egKEBtwT 4oHQ== 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=bfAa+G45cI1/eZmIRyaiTY0k6vXq7f7tHKpREIxUg80=; b=PO49P4bj92iU+wu+8LTv0sTwuWytNVuw/tgXsOzYrjZx5SQIpqG4xG1RUzo0VStYW4 aHcHfb+0zkXJOJSebNg79gzu9EE/n6vBgpFKPqopFpUFwaSWHXBxs/mNjOOmSf98bJ5l tz/+3DF1AQx8291WT+9tzGuQu3CMNAfVPQQL/U0/HGfYfYE4NJ2KK6UTtJFtUcFd2e57 iAWRs8zyTSRMoC4Y+prI2x58FPLtGGxQuFMnUksW9GRWjgy3z+LhqcDnuUd308tYkEZm NBFrBof+gN10HUBH7wWDhEydbrJsLLGEQKsa0pJPbFklO50tAhWZbwYDPAG2A4KWRg7j Cpgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bkQW14hm; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id dg2si14885407edb.326.2020.07.21.23.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 23:07:14 -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=bkQW14hm; 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 202EF81F3B; Wed, 22 Jul 2020 08:06:41 +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="bkQW14hm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2CA4D81EDE; Wed, 22 Jul 2020 08:06:33 +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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 25A6781EF5 for <u-boot@lists.denx.de>; Wed, 22 Jul 2020 08:06:30 +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=takahiro.akashi@linaro.org Received: by mail-pg1-x542.google.com with SMTP id t6so642184pgq.1 for <u-boot@lists.denx.de>; Tue, 21 Jul 2020 23:06:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=bfAa+G45cI1/eZmIRyaiTY0k6vXq7f7tHKpREIxUg80=; b=bkQW14hmFtH8Cwe50KrRnb68p6CM6GykAABmxtveUT8BdrOLbFXh+8hUQHFajEN34G YHqq7kbfQcm7kP8TDPq0NGf6Umh68k7AndOYMUPtGbCwCHo7J1Qc36CyA/9BATB6D8CM Iys7O3h8k8fJx8t7qrNhQd0B8NuXYVd7VZl6vYOQcwXmcivw+6xSs2hlh2bqoHMlCoK5 84rEbxcf+Zq3+h6/YUdl+Fpqe2ZCeF0N9sig8oIdPeosc89WigzncsNyfysdKhiAGfvC JFaCPUkhESVBDXRBWUQbR4zrHLG/+PGpTNRnMbeIYrv0k4i6I01Tnom5w8g6UrO4FzQP wYYQ== 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=bfAa+G45cI1/eZmIRyaiTY0k6vXq7f7tHKpREIxUg80=; b=cDKprN0J3DfCIodPDLApfr+88zLD3UxuLqfJYHuOZ01YyLOGyNcmQ4Ss43NlRCx7VC tvdN2EOcYBdtfl80Rw7wt5wwhLHhdM8LsIs3BdOwTZn/3TinC1GfWquAhdx87DyB4smR +Uie4Snz4k7WAFs6hnTKGcemL1MJt17DnOkUe3eIioCUWoFAuoeVY0gcH4XgKX3j2xzP kDLnguuvLQFAiWnwA0anQHYA64RikqWxVtwU68PPQvcK1jwkiXkP05U9YJTx6GDO+6Ca gMJzKXoeqLYdCdOdV/nZ0dMGYCwFtFtRe1hBA9GHplNBHsFMda+gpj4IcfTyxbV3EpkR +85w== X-Gm-Message-State: AOAM533QYdpGZ2gnT9pyHo07++U7l6oEmK6K/03xN7WkOGsiunNK7HDI 5ROPz/QnIBPxPO8YAqyVxLu8sg== X-Received: by 2002:a62:164a:: with SMTP id 71mr28237713pfw.266.1595397988531; Tue, 21 Jul 2020 23:06:28 -0700 (PDT) Received: from localhost.localdomain (p6e424d9a.tkyea130.ap.so-net.ne.jp. [110.66.77.154]) by smtp.gmail.com with ESMTPSA id p10sm19578759pgn.6.2020.07.21.23.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 23:06:27 -0700 (PDT) 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 v4 05/16] efi_loader: add option to initialise EFI subsystem early Date: Wed, 22 Jul 2020 15:05:28 +0900 Message-Id: <20200722060539.15168-6-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200722060539.15168-1-takahiro.akashi@linaro.org> References: <20200722060539.15168-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 67dc25c7d282..9994ee34b585 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -68,6 +68,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; @@ -844,6 +847,9 @@ static init_fnc_t init_sequence_r[] = { #endif #if defined(CONFIG_M68K) && defined(CONFIG_BLOCK_CACHE) blkcache_init, +#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 bad1a29ba804..cbd8fe8c0ad2 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.27.0