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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7D449EB64DD for ; Mon, 31 Jul 2023 03:02:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0124A86A0D; Mon, 31 Jul 2023 05:02:41 +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="JCkkQfcJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3FE4B86A2C; Mon, 31 Jul 2023 05:02:34 +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 700D2869EE for ; Mon, 31 Jul 2023 05:02:27 +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 e9e14a558f8ab-3490a1f8ae0so11200375ab.2 for ; Sun, 30 Jul 2023 20:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690772546; x=1691377346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zvtq5hZzn4+Wz6kwgZFGo6vmP/0KzOIGlsUEQ19iQko=; b=JCkkQfcJb/V58x8WJi0ik7dhnd/dXrqA532Pist2nfSRRO1WAUVPaiQ8HHYJi/wr7C cF90VAbAJD7lTsIlPnSASo1smhZMkg32H0fEwOAcGF7DxjpNjCObniomyWM91DrU9/tK 8yQuyrOU38s+yfIShvt0yh50Hdkb4NuQ5HqwM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690772546; x=1691377346; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zvtq5hZzn4+Wz6kwgZFGo6vmP/0KzOIGlsUEQ19iQko=; b=Tcb+hPCCYjN/Kve9eSZLQtjNpdoLJAnXVAb+IkMOgjzjsToiegT7FfIuD8pVJ0F4sB U/mSSAim3ig7b40JSlW6jRzJk9LwWYD98UM2uvavfHHi3BJSyFeQaZvBrvFcyJ0eROq1 jFgODE54unQbUn56HJpePo1xDwc2izO/FfAtuTx40g2TNEAF4S6AWLhHxRBCkhgeVqn+ vtJgeivxZnEEnWkTlog/UDx+bnaoZYcnkZkiY5gFKjJdcDLU0eyqpk/dPE7ffV/8M3ge GYtkgRby7o/9VIiMFJOJIDrLfZCdpqKkA7+A75PQ/yi6yXD3ToRlwByVCFgKqe4z7JxF 7RAg== X-Gm-Message-State: ABy/qLa8PWkdSHxPLPzFWGpuRKtbWjxojvzM+dHLKB3dx6oGaCRVnVua 3WYsjjX9O8EMn7lbZZpxqD1p/5X1cz1CYqlC9Co= X-Google-Smtp-Source: APBJJlETNcGKbd0ArE07dkrXATwYt0hgUdizhs3Ecz+eDCq/NTYpFgDnlaqMHxDP+/cb/PJvhb22eQ== X-Received: by 2002:a92:c9c3:0:b0:348:f28d:d06 with SMTP id k3-20020a92c9c3000000b00348f28d0d06mr1422955ilq.31.1690772546005; Sun, 30 Jul 2023 20:02:26 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id e20-20020a02a794000000b0042bb5a8e074sm2749997jaj.8.2023.07.30.20.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 20:02:25 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Tom Rini , Simon Glass , Joe Hershberger , Wolfgang Denk Subject: [PATCH 03/22] env: Explain how to use #include files in text environment Date: Sun, 30 Jul 2023 21:01:46 -0600 Message-ID: <20230731030211.955875-4-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230731030211.955875-1-sjg@chromium.org> References: <20230731030211.955875-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Provide documentation on how to share common settings among boards. Signed-off-by: Simon Glass --- doc/usage/environment.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst index 91dc07b17bce..c6439dde6689 100644 --- a/doc/usage/environment.rst +++ b/doc/usage/environment.rst @@ -81,6 +81,12 @@ Example:: echo CONFIG_SYS_BOARD boot failed - please check your image echo Load address is CONFIG_SYS_LOAD_ADDR +Settings which are common to a group of boards can use #include to bring in +a common file in the `include/env` directory, containing environment +settings. For example:: + + #include + If CONFIG_ENV_SOURCE_FILE is empty and the default filename is not present, then the old-style C environment is used instead. See below. -- 2.41.0.487.g6d72f3e995-goog