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 55941C433EF for ; Fri, 22 Oct 2021 03:19:37 +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 CE6F36197A for ; Fri, 22 Oct 2021 03:19:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CE6F36197A 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 6D45983545; Fri, 22 Oct 2021 05:17:59 +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="F4EvSUPj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6371983531; Fri, 22 Oct 2021 05:17:48 +0200 (CEST) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (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 C3A6183564 for ; Fri, 22 Oct 2021 05:09:24 +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-oi1-x22d.google.com with SMTP id q129so3439398oib.0 for ; Thu, 21 Oct 2021 20:09:24 -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=MEUhnUg0jO3BG5NCVSbJRsUBI6MZOjC3ck4Kb+m1xUE=; b=F4EvSUPjq+pEeDtvslvlP6yI6QKveKRGF0RzktW8XLpG9vtEROEGe/CXNoNYlrzCVk zOjrZLE0rKhPwfUJl3/pclZXjzCIvpOaFoHzGd+kzdtRnTGUqsKH890tMffQwkE3oC1+ 13ErKDO5aOXKFc/aHNjnmHskzaJPI6CfVZgCs= 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=MEUhnUg0jO3BG5NCVSbJRsUBI6MZOjC3ck4Kb+m1xUE=; b=nONTsXg4Gu2PK8B6IzzL7e0zT5cpWkwGo3SJP+ABAcemhN3HJ0rYbM5K9h+0OsrFl1 PkY48J9Cr1P2PLnsrh29fNGfhsAHc6fvvkXh9qwG9SJ7yuyms6f/VnEvBiu2OWCwoaQ+ vjGUDYFfqG/Bm/c6V9VFsqBFVw2mVlX3QxScfNAOD8xmf2rlnE6jPCbrEHtrfy3GZxiI eNnNJcPg39LyxC4W6/Pk357Q3bJknfMBnO8V8a+G7r1ZQ0ma506aaTp0I+Ig9qN4aylf qFe2jUN38LCXGg4clYpMsNnGazbYarhgqaf/AWsIpNy4NHsDSDLG9WVXO6YgaHMvMimf rGEw== X-Gm-Message-State: AOAM532fOTCCCcbv6P7/R+uJ1THdeGdDsZ87pbsEA+wL5RI4nZBL/GyD BFClzXPUmMTi4lW6JNV05P4yxL73h/pnUw== X-Google-Smtp-Source: ABdhPJzemkzbKcRHLNqoiJlcWgvNBWBZZ9oaqlQDz5mImqb5gL2gQE6eLdb+FPjlkZNTOqs7i/EWBA== X-Received: by 2002:a05:6808:615:: with SMTP id y21mr7203716oih.21.1634872163324; Thu, 21 Oct 2021 20:09:23 -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 az14sm1483350oib.51.2021.10.21.20.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 20:09:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Wolfgang Denk , u-boot-board-maintainers@lists.denx.de, Rasmus Villemoes , u-boot-custodians@lists.denx.de, Tom Rini , Heinrich Schuchardt , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Simon Glass Subject: [PATCH v10 5/9] doc: Mention CONFIG_DEFAULT_ENV_FILE Date: Thu, 21 Oct 2021 21:08:48 -0600 Message-Id: <20211022030852.1986718-4-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211022030852.1986718-1-sjg@chromium.org> References: <20211022030852.1986718-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 --- (no changes since v9) 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 043c02d9a94..6f3066e2b65 100644 --- a/doc/usage/environment.rst +++ b/doc/usage/environment.rst @@ -458,3 +458,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