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 D849EC433EF for ; Thu, 21 Oct 2021 12:23:41 +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 034B561221 for ; Thu, 21 Oct 2021 12:23:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 034B561221 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 DFC2183409; Thu, 21 Oct 2021 14:23:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="YQ/0P41l"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9B85C83409; Thu, 21 Oct 2021 14:23:36 +0200 (CEST) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (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 6ADB683374 for ; Thu, 21 Oct 2021 14:23:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id c28so220252qtv.11 for ; Thu, 21 Oct 2021 05:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=NKB34eemIm7IEhxeDn5a8Zczyexe1SP/ELidTQZRXv0=; b=YQ/0P41lXyRIU3XTePC9ZscAaT4NthJSpTl3NO0GhG0lkeQDRy+8tqY3TERqGO0Ec0 pfK0+501gnqnvSEWk9JaJBq27J+HTxCIM2/IWEAUYTZ/v21rzBk8W7dD27hpSBQz6ABg s1J+CvGQnQ5waQq0tnK8xxw7mDEzlKdzvi/gY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NKB34eemIm7IEhxeDn5a8Zczyexe1SP/ELidTQZRXv0=; b=hTSHUBrz3kPxI62P1QaxajVAJVGNz0AcaqcZWgNIiAgB+/xT/yy80zFV4EiZ7QZJPF KoFf8r+ZBTrE3VdqVsLLuNByXb+kaWj+GNfKkTIb4wtnWquJiv9gMxgAxvVUeawB51DW OVHEgtSrWPn/fA+4kJLEQeHlVSodpeOMKk/8frIZMxv/t2WbbRbiBpdt6BauDOvrxISn O0ze3JAOrz125qw6V5LsFusqwY1fpqcHN8lp494BqK0qlYU91ubWVrf6tkKNXgdyO7TZ LNgNrl7Hi1jUaSmDT1saRbqD2U4ygEthDBjLV7goYGVIas86K+rCNl9hAbzLNyiRTc9Z PGAw== X-Gm-Message-State: AOAM533w0k4gOFd7LSSNcO3q3reQ4LDAvG5qWJs+rQ6FQLw3JSE9o7GY m1bw34Qmw6KJWY6I0HY/iyjKOw== X-Google-Smtp-Source: ABdhPJzoDFFdxoeoX4NPHdg70As4cmbpqSejmZWX3HbppMdJyPWhrVFMUUd3WGoPDFMAbl/HEqPTHw== X-Received: by 2002:aed:3022:: with SMTP id 31mr5559741qte.322.1634819008038; Thu, 21 Oct 2021 05:23:28 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2501-70e1-0160-7cd3.res6.spectrum.com. [2603:6081:7b01:cbda:2501:70e1:160:7cd3]) by smtp.gmail.com with ESMTPSA id n123sm2492365qke.36.2021.10.21.05.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 05:23:27 -0700 (PDT) Date: Thu, 21 Oct 2021 08:23:25 -0400 From: Tom Rini To: Wolfgang Denk Cc: Simon Glass , U-Boot Mailing List , Marek =?iso-8859-1?Q?Beh=FAn?= , Rasmus Villemoes , Heinrich Schuchardt , Joe Hershberger Subject: Re: [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file Message-ID: <20211021122325.GX7964@bill-the-cat> References: <20211019224422.1447059-1-sjg@chromium.org> <20211019164418.v9.3.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe@changeid> <3682215.1634809802@gemini.denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IpoABRWCCI7wIQYF" Content-Disposition: inline In-Reply-To: <3682215.1634809802@gemini.denx.de> X-Clacks-Overhead: GNU Terry Pratchett 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 --IpoABRWCCI7wIQYF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 21, 2021 at 11:50:02AM +0200, Wolfgang Denk wrote: > Dear Simon, >=20 > In message <20211019164418.v9.3.Ie78bfbfca0d01d9cba501e127f446ec48e1f7afe= @changeid> you wrote: > > At present U-Boot environment variables, and thus scripts, are defined > > by CONFIG_EXTRA_ENV_SETTINGS. It is painful to add large amounts of text > > to this file and dealing with quoting and newlines is harder than it > > should be. It would be better if we could just type the script into a > > text file and have it included by U-Boot. > > > > Add a feature that brings in a .env file associated with the board > > config, if present. To use it, create a file in a board/ > > directory, typically called .env and controlled by the > > CONFIG_ENV_SOURCE_FILE option. > > > > The environment variables should be of the form "var=3Dvalue". Values c= an > > extend to multiple lines. See the README under 'Environment Variables:' > > for more information and an example. Note that variables names may > > not end in + due to the +=3D syntax below. >=20 > I still object to placing new, arbitrary restrictions on what may or > may not be used in environment variable names. >=20 > We have discussed alternative implementations, and trivial changes > like using "=3D+" instead of "+=3D" as append operator do not require > such restictions. >=20 > Thus, and only for the restictions on variable names: >=20 > Naked-by: Wolfgang Denk Do you have any other feedback on the entire rest of the series? Because I'm not sure the benefit of "we can still support '+' at the end of a variable name, if anyone uses that" outweighs "we can more easily append variables in constructing our environment without relying on uncommon operators". To me "=3D+" as the append syntax is worse than "no + at the end of your variables". --=20 Tom --IpoABRWCCI7wIQYF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFxW7MACgkQFHw5/5Y0 tyxzywwAnxamofr/9UOqPWt8JB/tVbjL4uW1nezNmRq3EyYiaGWc1iWjwX0/EDyO 3Ow3Ufqr4Pp3XC18/pltpdDith9kq0Wn5sUk8oNLh6NuZla/m/ecxo0obmoBexTF MsBLXRGp/5NEIeV7tSBY2SN/PLTEHwpHWsOEq7nwo8kjFlY2DHkmatEQVp9mtYib cbIBYshC58Xz/gjOrgkXAkfYgY1Yb1cpZ4r5SLWbypJXFEE00NrAzEmNFgB8YX7U VpJcejUkDBDZ7ASH1koaeUM15zcW/bqgxSe8LMQvTv7wxY1fD0mgfTuoC8sk3g9K q5XFFFXEHGfb87R9fygPJ9Q6lUBQVuLlOG/zJQZqtd9wngB+sZK6g9XjlKibpe27 PRla0ucKHdEQyxJMKvRXhre+OXSTlamgBjycyTeNV28KA8rYuntHVwAZ0nekJhNM 9iboVnfgiyci7E/vGt1ZqSjKw6dOzHbIWfOO96X/DM++kVXKZA/NzojCh2Ag5tXz JP+LRNZv =JQlh -----END PGP SIGNATURE----- --IpoABRWCCI7wIQYF--