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 0DD54C00140 for ; Wed, 10 Aug 2022 14:36:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 11B1A845A3; Wed, 10 Aug 2022 16:36:37 +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="mCQMSHJ/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 67C22845BE; Wed, 10 Aug 2022 16:36:34 +0200 (CEST) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 BBFC3841F5 for ; Wed, 10 Aug 2022 16:36:31 +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-qt1-x835.google.com with SMTP id j17so6511177qtp.12 for ; Wed, 10 Aug 2022 07:36:31 -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=PpuqjKwWUB+/+8GW0IGkAJKegt76sXvN+NDuqqbsr38=; b=mCQMSHJ/qVtIFaXDKt0mVppVn4ZGgoyS2lG/MCfFt9VehUy2S+bNhE3TTvmW1bqX1o d/zvDvw988lVSlhTuy6xYj12GU3h/qWH4MGBbh100YKi2ry0qbyD3euaE9vauSX9Cd6S fx3KlwUXVezenRsddI6kbZv2w6F6Xa+nQghvg= 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=PpuqjKwWUB+/+8GW0IGkAJKegt76sXvN+NDuqqbsr38=; b=4DWAFX0WBCHGP8yzDHhJr4AKqVMY73A1inTva3UW81UpN8ZFwyWQq87lig3gRfduFy s+PXEWKOvabj+YixT5FXZlq6OTrqjc3j/qnWUwseO0UEVV96S/KbPBRt2TmSA6wiYifb +SOxCTYBRpY7nIL9fgMTdAkccXtSfB6+hY7eg9JdahH7ikpwNJbQKIxN926WN0aD3gL/ OfZ17yCHi1O5iSt35WMxcQFl0d2jbEVHqOh9DGKcj/hbzY59H22AGr4Vy0beTI341fQa gzNRbpaeSuRpXAtw886v101MsQ84GjZ5O/kVL/IdBSQ2rSWlpR5uhhA+1pIafmusZVtA VShw== X-Gm-Message-State: ACgBeo1+3pI2OE6H3qcjlAeMfyfaQWxaHY8crLD0EuhKgQvrDd1z5vV0 nB4JDGMzCkiyEh0UTJ3OlV1E6g== X-Google-Smtp-Source: AA6agR4tUGRIr9T+7Lrw1uFEcPSkOVqHhXE3+/LcM23QN52zcX+1VfKRW/deGzYh/CdEbehzLQbXlQ== X-Received: by 2002:a05:622a:393:b0:342:e821:674 with SMTP id j19-20020a05622a039300b00342e8210674mr20432736qtx.151.1660142190083; Wed, 10 Aug 2022 07:36:30 -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 y20-20020a05620a44d400b006a6ebde4799sm14168581qkp.90.2022.08.10.07.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 07:36:29 -0700 (PDT) Date: Wed, 10 Aug 2022 10:36:27 -0400 From: Tom Rini To: Rasmus Villemoes Cc: Francesco Dolcini , u-boot@lists.denx.de, Simon Glass Subject: Re: default environment append from kconfig Message-ID: <20220810143627.GH1146598@bill-the-cat> References: <20220809104739.GA35570@francesco-nb.int.toradex.com> <9f77520a-20fb-970f-cc84-d414a87e879c@prevas.dk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u/Gf75oZqaUR+DJF" Content-Disposition: inline In-Reply-To: <9f77520a-20fb-970f-cc84-d414a87e879c@prevas.dk> 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 --u/Gf75oZqaUR+DJF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 09, 2022 at 01:02:24PM +0200, Rasmus Villemoes wrote: > On 09/08/2022 12.47, Francesco Dolcini wrote: > > Hello all, > > is there any kconfig mechanism in u-boot to append environment variable= to the > > default one? > >=20 >=20 > Well, despite the name, CONFIG_EXTRA_ENV_SETTINGS is not settable via > kconfig, but only from board header file. And while it works, it's > rather cumbersome to maintain that macro expanding to a string with all > the embedded \0 and the required \ continuations etc. I just want to chime in here to note that the biggest blocker to removing CONFIG_EXTRA_ENV_SETTINGS and migrating it to board.env files is how to handle, exactly, distroboot support. Aside from that, whatever is done in CONFIG_EXTRA_ENV_SETTINGS can be done in the .env file (unless there's some other fancy macro work being done that I've missed). --=20 Tom --u/Gf75oZqaUR+DJF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmLzwmoACgkQFHw5/5Y0 tyxh7wv8CiSLK+3bf1Q1Nj4HCWdgIL1C3wdsnD2eayfV1GJT8FmiZ8ByMuBItmx4 WWe4l7woq7cmwYlfJuxmDIXHR5VC/znSgt5zvFSPBLtTrH4TvGszj6SEpenbpmWh 3IkQPPla45tkevkTrucG7A3Y3koWQbPMrouv+btX8fLHqkRZHurz8hoJemOi2cbz 2u9af0Tl0sWZql1OSuRO+FJEJUph1+TKNjHt659a2raKSEN7Sn3K1KNHfCYFoWkj 8sf35AMh7pLwRTiZycYcBPQ1cK+LmEpU5Y857so07snPXSEcyqml9JPCpIy6Ay8A DuEK/GYavr+e/dNSp2fR44E68SqPTQKYIt6gMGDhGP5+MdPTqD69KIhClhcqQl6m sAId92KxeVHixDk5a8YxvEg4JmKhZoyInZF/WMeB0RM9D2NBGX8+JcEJwTcQMjoB mEgM/7oOZWNTzQuwZRCtsfr5PYaVbu0MWQwgcXT+SkvBM7pxGKQtLaUV4sz9+wYv mrPu1LsY =BwQK -----END PGP SIGNATURE----- --u/Gf75oZqaUR+DJF--