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 B543AC433EF for ; Fri, 8 Apr 2022 12:31:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0FF583D9B; Fri, 8 Apr 2022 14:31:20 +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="j/xBLzeZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8FF5C83A3A; Fri, 8 Apr 2022 14:31:14 +0200 (CEST) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 A5C8083D47 for ; Fri, 8 Apr 2022 14:31:09 +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-x830.google.com with SMTP id t2so10428302qtw.9 for ; Fri, 08 Apr 2022 05:31:09 -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=BXiE+efYlhPZGIq0T1O+e0z0qcXO/+c1IF4bfD4tJ1g=; b=j/xBLzeZeglXJY9a7ayhjALtJgbFwXA3d39J2fVmrWDZxgEZ5Eq4J/Jhj+MIpPWeVc JMc58zemiQJr5f2UosoMqnb8X034tBTTBjQLNPR66tblRhI/Hhyf6o5fw16Jb7YWMokH z/mHqwr+n/uf2JaU/dwrOMWfulmKev7sJ6/u4= 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=BXiE+efYlhPZGIq0T1O+e0z0qcXO/+c1IF4bfD4tJ1g=; b=LO4PZpuzHPBxXthOdI3J1MSBZGKKQCKCCNZjd9Z/ctEgs21RJ3x01/kRHvFBpbm45R WqHCEExkBAM2hcUEOtRhvwFn5lS5h31Er60Qy+RmE1y1Q8sga2nRU3jtS8A9+BlJTFVy 7uuDn6WNKfnsmRrNMm0LReoEdHTu12kwthbfWSBQt2ZzBTbCPO4cccgr9VK2N0LiQjwf bMl1nzM0hU8wAD2VLvY14x9PSmO10dmGyjwUNsk5btFpKyhgEdMKXYdPsaY6ew/O9TmC eFLpqlTD0Oj7RTnQ4VD6ZhTn71PppesOepBi8TfcT/PhET3WkXM1GOTO/gl6HzhTTngE WbJA== X-Gm-Message-State: AOAM531ucTNpuhGRGR6VRrhpPxtMrnJe/HR4kIzbgk5IdU+z8XTjMbHF r4erF0rTES+UYJF0/+LQHFrKCA== X-Google-Smtp-Source: ABdhPJy/97tdNF7DjkrQAM29Imzu61sCJOMjoPRokZCH6iPk9CI0gLFAfawAXwoRJS/qyUQel6ziAA== X-Received: by 2002:a05:622a:1102:b0:2e1:d3f9:ffa7 with SMTP id e2-20020a05622a110200b002e1d3f9ffa7mr15924588qty.506.1649421068162; Fri, 08 Apr 2022 05:31:08 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id s12-20020a05622a018c00b002e1cd88645dsm18254531qtw.74.2022.04.08.05.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 05:31:07 -0700 (PDT) Date: Fri, 8 Apr 2022 08:31:05 -0400 From: Tom Rini To: Samuel Dionne-Riel Cc: u-boot@lists.denx.de, Marek =?iso-8859-1?Q?Beh=FAn?= , Simon Glass Subject: Re: [PATCH] cmd: env: Add `indirect` to indirectly set values Message-ID: <20220408123105.GZ14282@bill-the-cat> References: <20211220183156.1910e71b.samuel@dionne-riel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yTwVabqJa5IUz21H" Content-Disposition: inline In-Reply-To: <20211220183156.1910e71b.samuel@dionne-riel.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.5 at phobos.denx.de X-Virus-Status: Clean --yTwVabqJa5IUz21H Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 20, 2021 at 06:31:56PM -0500, Samuel Dionne-Riel wrote: > This allows an ergonomic-enough approximation of ${!variable} expansion. > This could be used the following way: >=20 > ``` > for target in ${boot_targets}; do > env indirect target_name target_name_${target} > # ... > done > ``` >=20 > Assuming `target_name_mmc0` and similar are set appropriately. >=20 > A default value can be optionally provided. >=20 > Note: this acts on environment variables, not hush variables. >=20 > Signed-off-by: Samuel Dionne-Riel > Cc: Simon Glass > Cc: "Marek Beh=FAn" After making this not default y, applied to u-boot/master, thanks! --=20 Tom --yTwVabqJa5IUz21H Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmJQKwkACgkQFHw5/5Y0 tyxTzgwAr7ecpb4DoNGxUh+MkRE3CYtSnRSxYfXB8rv4CW/TYA+N5hGw6WECzvv9 r4dk03hvUCIaH8BXqtL4fWqdUWptqTtiBjLG63Sk8WsV7UVNYvmIqUg3Hgx1gHDo mLeCX5L8Pgnc8vnqp/Bs1ZXgdueg7qx0aShT/v74EXBt5fofhri8YJ0+OfW8eVN5 y+PdgCeidd0c4OPBUY1sRoMHAkl+QQ01SemqfKvh4vhchbqj17jfUCY6LpoHi+BI 9jaO4agm6SrzT367YmBQzG5upsfMlzoPZ7LelaplJWI7uuBGVHFUTf/M5NYpcKS6 ZaWqNtK5/o0zch47pqXerBx+CzLmbzsiv8FURdrdBqZTdBy12ZjqK61Bg/2GkQxg QKkASkkVlO29dN6JTKK/XC39jUcNIMW30rO9EMpjleENhKCPirn3TZ2au5zrKQW5 ewsi+I/pbiD5cZhN6SUfe5MpWaTD1Hcr/wNqdEcgKK971h/b42B7i1FQCHjkcpmG nFCU/bD8 =oWho -----END PGP SIGNATURE----- --yTwVabqJa5IUz21H--