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 1ACF1C433EF for ; Sat, 16 Oct 2021 00:35:05 +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 7180261027 for ; Sat, 16 Oct 2021 00:35:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7180261027 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 4B6F98385F; Sat, 16 Oct 2021 02:34:58 +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="DIsk5kJ3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DDACA837DD; Sat, 16 Oct 2021 02:34:11 +0200 (CEST) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (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 B5BEC8387B for ; Sat, 16 Oct 2021 02:33:50 +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-x22e.google.com with SMTP id q129so15498207oib.0 for ; Fri, 15 Oct 2021 17:33:50 -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=mqvbEeeedv18gTW0unZ4trNVgNX9brS10cz5WHdSWfI=; b=DIsk5kJ35jFCEV0SAzmq5b0uUBMNnLKR6WQzygFB0EnP7WkrXZ6OZrvGrsSMeBJeCK I+z9oxJ5BnlMS8nryGpPR5PmeFYfHawBZ6e0WhP1igVtOOIpHewkewWffw5EcIliXcVI raGuowLXNZkEQPxOE2s6iPw3rmsFT3PbnbnLQ= 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=mqvbEeeedv18gTW0unZ4trNVgNX9brS10cz5WHdSWfI=; b=AckGLQgwptNshwo0ORz3lD2V11wYf9VmeIKXJ2w5k4Bxh2RlLt4xb+BPViQg1lBFH1 KGAlFTAcFa1Fn2W2IbndL7ZrJN8tXXV/k+si8olDjGh7jhT6JGMOrylRIHCwmb2GsWCR Y1oZv+jMff1EtSEqgblw+I4At3spaHwNtM8gi1iaRUOAl9IIDbbz0ngdTzyEMtEWbz9U 1nHItyM/sc/F4UQUYCDbaLmi1Zfp5JPQy5rKdK/NZ2hdf5JcbUC9SUiugpnlWWAcTNsM sQDET1VpfNXsbk2SQrftWPXp2Dx6QfipWm6ZjaawuqjUlYdTDFUAvqp6tbc/KCcbmb8w qYVg== X-Gm-Message-State: AOAM531cMgWsgQ401pzh0YcNXnB3t1fQPWLHhe5pvJ/rRDbk6IWP+q19 jXvTj4Di60p49YGeecwq4+sIBlWPo9xobQ== X-Google-Smtp-Source: ABdhPJx3T9IZK0eOW75f3gx0x6+7HXV+TYYhZjMjmOU3aOv9S3wjDp+ZRRXd8uoeV9TrQwyX5HXuIQ== X-Received: by 2002:aca:5e83:: with SMTP id s125mr20727259oib.99.1634344429191; Fri, 15 Oct 2021 17:33:49 -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 j65sm1531965oif.5.2021.10.15.17.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 17:33:48 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Rasmus Villemoes , Tom Rini , Wolfgang Denk , Heinrich Schuchardt , Simon Glass Subject: [PATCH v7 5/7] doc: Mention CONFIG_DEFAULT_ENV_FILE Date: Fri, 15 Oct 2021 18:33:37 -0600 Message-Id: <20211016003339.723169-4-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog In-Reply-To: <20211016003339.723169-1-sjg@chromium.org> References: <20211016003339.723169-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 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..a2410607e9f 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: 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