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 580CEC433EF for ; Mon, 18 Oct 2021 18:14:50 +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 D56E56134F for ; Mon, 18 Oct 2021 18:14:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D56E56134F 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 E527283389; Mon, 18 Oct 2021 20:14:38 +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="JSA8S2CH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BC0EB82E8E; Mon, 18 Oct 2021 20:14:14 +0200 (CEST) Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (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 2461683328 for ; Mon, 18 Oct 2021 20:13:39 +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-il1-x12d.google.com with SMTP id y17so15826829ilb.9 for ; Mon, 18 Oct 2021 11:13:39 -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=O6OckeIYhWs02ig+SOkh81DxojbTJ2EumUM/jG4t0rI=; b=JSA8S2CHbMOxqXfkWR7c+SsDDp1kpyyHASGPeGDaAMUoCTN/Q359pdQoxVeUfL6I37 qaOOvDVs21fW3P6sB0+4DDcavCUZi3ZWfoEt1Lp/rx8Sswx/VfN+92NIYGOG5iMfiKpJ lDALiyGaoibvatfz9T6ptStxwHd69OnSnuf74= 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=O6OckeIYhWs02ig+SOkh81DxojbTJ2EumUM/jG4t0rI=; b=fLO/+scF/olOqxswqCqDHj/4gY1ENADRuwFiM21X3MB8Tkqlf1eTQDYSIQINloafrm cPQdPKtnWaL45vuZwliXQvUHt7qQ0sjb+KTAk40c3ir+vtlvtYnjpMW1DTk1Ic/9fcvX GjtQ/upo9HvIWQxY4p/u7tfv9KQskDZxygtCZxt/JG2SfhC1kjJX6AXs3qqh4u01wpd2 bIn4aCJvFv3PSwu79S1X2NyMQUySLcpjtsMnc6uouWb3lLua5u/raSzWek1s9QOZ2k+W LvK5qERtliDtkYgXZ6hjq15x0BoTaS9vF+VoXLwY0Qb4H5yisNKZoEWTselzcD/hf6Im vzHA== X-Gm-Message-State: AOAM532DpJWeg1gFcnYw5q6wFenzETHoGzL5ssUCOGiV2bL3MDP0UnNk baZXXeMpvgQVZdbFQ9aamujh/45wzGZxjA== X-Google-Smtp-Source: ABdhPJxSATC/QzmmlzlbU5C/MZGRdWd1+f97McXDb8sl+f8hLRdJE3XbUk3Lzn//VNO3jRQ/hlyy7g== X-Received: by 2002:a92:1a43:: with SMTP id z3mr15245972ill.46.1634580817513; Mon, 18 Oct 2021 11:13:37 -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 r24sm7118265ioa.5.2021.10.18.11.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 11:13:37 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Rasmus Villemoes , Heinrich Schuchardt , Wolfgang Denk , Tom Rini , Simon Glass Subject: [PATCH v8 6/8] doc: Mention CONFIG_DEFAULT_ENV_FILE Date: Mon, 18 Oct 2021 12:13:20 -0600 Message-Id: <20211018181322.1181847-5-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211018181322.1181847-1-sjg@chromium.org> References: <20211018181322.1181847-1-sjg@chromium.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 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 this it does a similar thing to the text environment. Suggested-by: Rasmus Villemoes Signed-off-by: Simon Glass --- 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