U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Schulz <quentin.schulz@cherry.de>
To: Simon Glass <sjg@chromium.org>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>,
	Jagan Teki <jagan@amarulasolutions.com>,
	Andre Przywara <andre.przywara@arm.com>,
	Andrew Davis <afd@ti.com>, Bryan Brattlof <bb@ti.com>,
	Caleb Connolly <caleb.connolly@linaro.org>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Janne Grunau <j@jannau.net>,
	Jesse Taube <mr.bossman075@gmail.com>,
	Joe Hershberger <joe.hershberger@ni.com>,
	"Leon M. Busch-George" <leon@georgemail.eu>,
	Marek Vasut <marex@denx.de>, Michal Simek <michal.simek@amd.com>,
	Ramon Fried <rfried.dev@gmail.com>,
	Rasmus Villemoes <rasmus.villemoes@prevas.dk>,
	Sumit Garg <sumit.garg@linaro.org>
Subject: Re: [PATCH v2 7/8] env: Provide a work-around for unquoting fdtfile
Date: Mon, 26 Aug 2024 17:56:41 +0200	[thread overview]
Message-ID: <da1bb893-a6f1-4dad-bacf-31e7b021d955@cherry.de> (raw)
In-Reply-To: <20240823204824.443631-8-sjg@chromium.org>

Hi Simon,

On 8/23/24 10:48 PM, Simon Glass wrote:
> Some boards use a CONFIG option to specify the value of this variable.
> This is normally handled by efi_get_distro_fdt_name() but in the case
> of sunxi this does not work, since 'soc' is sunxi, but the files are
> in the allwinner directory.
> 
> Provide a work-around for this particular case.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> (no changes since v1)
> 
>   Makefile                  |  1 +
>   doc/usage/environment.rst | 12 ++++++++++++
>   2 files changed, 13 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index 9a52cc8d0b4..2452a916244 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1844,6 +1844,7 @@ quiet_cmd_gen_envp = ENVP    $@
>   		$(CPP) -P $(cpp_flags) -x assembler-with-cpp -undef \
>   			-D__ASSEMBLY__ \
>   			-D__UBOOT_CONFIG__ \
> +			-DDEFAULT_DEVICE_TREE=$(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE)) \
>   			-I . -I include -I $(srctree)/include \
>   			-include linux/kconfig.h -include include/config.h \
>   			-I$(srctree)/arch/$(ARCH)/include \
> diff --git a/doc/usage/environment.rst b/doc/usage/environment.rst
> index cc33d3ec0f2..eaebf61742a 100644
> --- a/doc/usage/environment.rst
> +++ b/doc/usage/environment.rst
> @@ -87,6 +87,18 @@ settings. For example::
>   
>      #include <env/ti/mmc.env>
>   
> +Quotes are not supressed, for example::

s/supressed/suppressed/

> +
> +    fdtfile=CONFIG_DEFAULT_DEVICE_TREE.dtb
> +    # produces: fdtfile="sun7i-a20-pcduino3.dtb"
> +

Is this not rather
fdtfile="sun7i-a20-pcduino3".dtb
? (i have no clue but I've this gut feeling this doesn't match what the 
subst command does above and why the .dtb extension would be inside the 
quotes)

> +For this particular issue you can use DEFAULT_DEVICE_TREE instead::

Maybe use double tickquotes to highlight this is a variable? i.e.

``DEFAULT_DEVICE_TREE``

?

Cheers,
Quentin

  reply	other threads:[~2024-08-26 15:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-23 20:48 [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot Simon Glass
2024-08-23 20:48 ` [PATCH v2 1/8] blk: Make functions available unconditionally Simon Glass
2024-08-23 20:48 ` [PATCH v2 2/8] bootstd: Avoid calling unavailable block functions Simon Glass
2024-08-23 20:48 ` [PATCH v2 3/8] bootstd: Avoid depending on BLK Simon Glass
2024-08-26 15:58   ` Quentin Schulz
2024-08-23 20:48 ` [PATCH v2 4/8] sunxi: Add a bootmeth for FEL Simon Glass
2024-08-23 20:48 ` [PATCH v2 5/8] sunxi: Move to bootstd Simon Glass
2024-08-23 20:48 ` [PATCH v2 6/8] sunxi: Drop old distro boot variables Simon Glass
2024-08-23 20:48 ` [PATCH v2 7/8] env: Provide a work-around for unquoting fdtfile Simon Glass
2024-08-26 15:56   ` Quentin Schulz [this message]
2024-09-01 20:09     ` Simon Glass
2024-08-23 20:48 ` [PATCH v2 8/8] sunxi: Move to text environment Simon Glass
2024-10-01 11:18 ` [PATCH v2 0/8] bootstd: sunxi: Migrate to standard boot Simon Glass
2024-10-01 12:07   ` Mattijs Korpershoek
2024-10-01 12:23     ` Quentin Schulz
2024-10-01 13:06       ` Simon Glass
2024-10-01 12:10   ` Andre Przywara
2024-10-01 17:15   ` Heinrich Schuchardt
2024-10-01 17:29     ` Heinrich Schuchardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da1bb893-a6f1-4dad-bacf-31e7b021d955@cherry.de \
    --to=quentin.schulz@cherry.de \
    --cc=afd@ti.com \
    --cc=andre.przywara@arm.com \
    --cc=bb@ti.com \
    --cc=caleb.connolly@linaro.org \
    --cc=j@jannau.net \
    --cc=jagan@amarulasolutions.com \
    --cc=joe.hershberger@ni.com \
    --cc=leon@georgemail.eu \
    --cc=marex@denx.de \
    --cc=michal.simek@amd.com \
    --cc=mr.bossman075@gmail.com \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=rfried.dev@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox