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 467DDC00140 for ; Wed, 10 Aug 2022 14:34:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 16012841F5; Wed, 10 Aug 2022 16:34:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="cpWplw2E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B434384228; Wed, 10 Aug 2022 16:34:32 +0200 (CEST) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 0A4E5841A4 for ; Wed, 10 Aug 2022 16:34:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x732.google.com with SMTP id z7so5857320qki.11 for ; Wed, 10 Aug 2022 07:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=ruYadE4DSUkj/47rfEfAxlRifRhZaXFM1TdywAfLEvY=; b=cpWplw2EAi9FoqLkLxhMXftQoqn+/CARu0jfk8rQGEASphrNMi2yvoSoV47cQ6I3OK o7NHJJ1Y8Zt9WsDjpIXlN7UYMKYxdZXmS64BISfCCl8snnLJXkWTytfZ3ICuHBQqFg2U 3+S677LIVQuLcy2I495zS7l/4UD7uj0/pQ6Es= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=ruYadE4DSUkj/47rfEfAxlRifRhZaXFM1TdywAfLEvY=; b=1Qx1uYL0cquXvjsxvLX7pgEBgdZ7KXrAfl5cPFNhSQpSsVli5xFXltsrNp4CusXByB mz9C/C6shPIGTbhVuuSnJhv9JgVgwCqbSJOCO8qX+jQbYNId5hrHlAKl9gKoi/14bLj0 +pigdR7nI/bh0go2oD+Zc0gYv+wrbdScb46+GUACMLGTYivTvYpQP5rw2dR47Y+Oaxsu cv9Sseh27EVktYUNWDjtf0DPyvwASqU9niHeJTGUTXFiIQBtrR7wCqtFQSoOOIfLP32U UXvoPNBe3woe9vG0RHwS2XVgrKYnFh2qHCzl4cUwshD++1vQmlXmPN2pk2ihByFUWFfj t3lQ== X-Gm-Message-State: ACgBeo1n6Isjrh3VivB1Ja75sRJhYOC0DmyL1YqmN4Y5esUULNCxUCPP eekLSBOTQ4uhJBWttEJ0VmK4TMPUx4rUOBbX X-Google-Smtp-Source: AA6agR7M1sepQOmIcU7HwATb3x6ByDTmmAZRXqFUjqK3KNwGWKzU8ydZJ+wU3I26gL02dz5owrJxrA== X-Received: by 2002:a37:bdc2:0:b0:6b5:ec42:3476 with SMTP id n185-20020a37bdc2000000b006b5ec423476mr20270759qkf.380.1660142068861; Wed, 10 Aug 2022 07:34:28 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id x26-20020a05620a0b5a00b006b8d9d53605sm4800664qkg.125.2022.08.10.07.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 07:34:28 -0700 (PDT) Date: Wed, 10 Aug 2022 10:34:26 -0400 From: Tom Rini To: Francesco Dolcini Cc: u-boot@lists.denx.de, Simon Glass Subject: Re: default environment append from kconfig Message-ID: <20220810143426.GG1146598@bill-the-cat> References: <20220809104739.GA35570@francesco-nb.int.toradex.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2mbvjtb0oFdhBM0b" Content-Disposition: inline In-Reply-To: <20220809104739.GA35570@francesco-nb.int.toradex.com> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --2mbvjtb0oFdhBM0b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 09, 2022 at 12:47:39PM +0200, Francesco Dolcini wrote: > Hello all, > is there any kconfig mechanism in u-boot to append environment variable t= o the > default one? >=20 > I am aware of CONFIG_USE_DEFAULT_ENV_FILE, but this will completely > replace it, looking into the code I was not able to find anything, but I > wonder if something from this > https://lore.kernel.org/all/20211022030852.1986718-1-sjg@chromium.org/ > can be used. Yes, you can use the series above, which has been merged for some time, to append to the environment via board/..//.env and you can look at the existing .env files for examples of how it works. --=20 Tom --2mbvjtb0oFdhBM0b Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLzweoACgkQFHw5/5Y0 tyy8kwv7BscGLqbS+n9MuWPjzVUAq52Z+irxPoKvCqyqVgwg42X1twZCyHrwenVd f5k7vOUVXjIF8TiCj+XTF4wDYaMBLEpq4dTqHq6fmtcrc7YNYvhscpIZAnGU27b8 DT0B2ZmA/Sis4+hn7ZpRyYO1tlgW3iB+gfpzwj2kqIyTKDvzQmN39UbP83SKQvrF 6nRtukLWrSqP7PfnZP0GAMhLD4mDwn989NaKPHwc74HJJ7g6LTrKGWivVGcq3CHb rL3PbAQufzF1E8zfRuwx3vZxKg2o/nFYsKAXvri4Ld0cvqb00OxTqCoHv0FQjLY+ OUnR+N9MAfSH5uV3Mg4T37EfFcIwQZx9ntrJYgCY1vNGPhTuI9yDfkWLgDojyD6E gZLWmhfk1fgjDA0Xph8yKojIa/kzxyP5XOqyoJ/MkWmHvlLfY6XXbhqXWx2oAKQU EmKRx4XYAOGVb2K+sutiAOYrEx/4nRQ6rlx9YFxRBr770sFB6qgts7VzWQpR/5N6 DKkwOZx1 =Wx7i -----END PGP SIGNATURE----- --2mbvjtb0oFdhBM0b--