Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E512BC433EF for ; Tue, 19 Oct 2021 22:46:01 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 46283610E6 for ; Tue, 19 Oct 2021 22:46:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 46283610E6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C800C8326F; Wed, 20 Oct 2021 00:45:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Ubx4DbeP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C6A683328; Wed, 20 Oct 2021 00:45:25 +0200 (CEST) Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) (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 E0AD583373 for ; Wed, 20 Oct 2021 00:44:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oo1-xc2b.google.com with SMTP id w9-20020a4adec9000000b002b696945457so1203618oou.10 for ; Tue, 19 Oct 2021 15:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QoUYPpg5EY5pRjrwxFmv3FK1hjhzJOe/WQk9jrWpbB8=; b=Ubx4DbePWGU6VhQHSk8EgKvzL4rApnYUegandgjr0ie9GPeyeKdJcI5QLG3vySsrOo l9eL7lLbqQ2XBvMiWU4efSe0FU88HkAFpCUPSln2mP83yJTky55HATKGdGQdf4uTvBCh ELBmGo6ylzuXK70VuApiTpx7R4YBU5AWBskDM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QoUYPpg5EY5pRjrwxFmv3FK1hjhzJOe/WQk9jrWpbB8=; b=UwcQpJCkd1V2C3cFZlM9riWyEh62w8k3IG09N+hENqgmrb08HmImth4sy4Xx0U0Kj4 PjKR5RAaAATMpxa8KITjIgjNT9bNYQD6SyTCb+W8YpkcLey0IH1oygGBQvXqJn/ky7ru w+EqRjk/7psjXvmRuAr9QuW12RVeUQnuDhTPsjxfFK3Uy5lvKYXdwxdAWo1HeuTOvCHC GgVkc+1Ni+Sfd4m4eXRJlSQvoXhgezJIDnyD6bo93BrBkHyUcnkqDShxk24JsqxmSUUK /3fdKpzP9m26Fi0vsm9QuYBWdPkU0aJBRRUvF//3Pa+aVhQMJ6agIkOA+tkPSJ7tuLwT EZcw== X-Gm-Message-State: AOAM531m0xI5KyjAFbaW76jScX15/3z3b9XiBaxMcXqfYOhxOHHOh4/o i7F3mqlJnCsH/DdmJF6z9jbFWEZWgnVHow== X-Google-Smtp-Source: ABdhPJx1HBKflpPjiUXaUF/hjKtqshhtzb49H4pMZrZwj5PFiAFgSu4nw9OoYNQB6UA1LTPI+27tpw== X-Received: by 2002:a4a:3859:: with SMTP id o25mr6868180oof.10.1634683473346; Tue, 19 Oct 2021 15:44:33 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id r184sm89024oia.38.2021.10.19.15.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 15:44:32 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , Rasmus Villemoes , Heinrich Schuchardt , Tom Rini , Wolfgang Denk , Simon Glass Subject: [PATCH v9 5/7] doc: Mention CONFIG_DEFAULT_ENV_FILE Date: Tue, 19 Oct 2021 16:44:20 -0600 Message-Id: <20211019224422.1447059-4-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211019224422.1447059-1-sjg@chromium.org> References: <20211019224422.1447059-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean Add mention of this option since it does a similar thing to the text environment. Signed-off-by: Simon Glass Suggested-by: Rasmus Villemoes Reviewed-by: Marek BehĂșn --- Changes in v9: - Fix blank line between tags - Fix typo in commit message Changes in v8: - Fix ambiguity about what is ignored Changes in v7: - Add new patch to explain the relationship with DEFAULT_ENV_FILE doc/usage/environment.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst index 667fd193ea1..adf2e067b58 100644 --- a/doc/usage/environment.rst +++ b/doc/usage/environment.rst @@ -454,3 +454,18 @@ The signature of the callback functions is:: include/search.h The return value is 0 if the variable change is accepted and 1 otherwise. + + +External environment file +------------------------- + +The `CONFIG_USE_DEFAULT_ENV_FILE` option provides a way to bypass the +environment generation in U-Boot. If enabled, then `CONFIG_DEFAULT_ENV_FILE` +provides the name of a file which is converted into the environment, +completely bypassing the standard environment variables in `env_default.h`. + +The format is the same as accepted by the mkenvimage tool, with lines containing +key=value pairs. Blank lines and lines beginning with # are ignored. + +Future work may unify this feature with the text-based environment, perhaps +moving the contents of `env_default.h` to a text file. -- 2.33.0.1079.g6e70778dc9-goog