From: Michal Simek <michal.simek@amd.com>
To: u-boot@lists.denx.de, git@xilinx.com
Cc: Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH] xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME
Date: Mon, 17 Feb 2025 15:35:57 +0100 [thread overview]
Message-ID: <13ceed63-081f-4cbb-a11b-00181cdcf1ef@amd.com> (raw)
In-Reply-To: <f15a9762494945814b06a71db90ee4db59dd17ed.1738910601.git.michal.simek@amd.com>
On 2/7/25 07:43, Michal Simek wrote:
> Guard code around CONFIG_SPL_FS_LOAD_PAYLOAD_NAME usage to avoid
> compilation failure.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> board/xilinx/zynq/board.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
> index a852d5b8ed53..8dbfa5604231 100644
> --- a/board/xilinx/zynq/board.c
> +++ b/board/xilinx/zynq/board.c
> @@ -179,6 +179,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
> memset(buf, 0, sizeof(buf));
>
> switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
> +#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
> case ZYNQ_BM_SD:
> snprintf(buf, DFU_ALT_BUF_LEN,
> "mmc 0=boot.bin fat 0 1;"
> @@ -192,6 +193,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
> CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
> CONFIG_SYS_SPI_U_BOOT_OFFS);
> break;
> +#endif
> #endif
> default:
> return;
applied.
M
prev parent reply other threads:[~2025-02-17 14:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 6:43 [PATCH] xilinx: zynq: Guard code around SPL_FS_LOAD_PAYLOAD_NAME Michal Simek
2025-02-17 14:35 ` Michal Simek [this message]
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=13ceed63-081f-4cbb-a11b-00181cdcf1ef@amd.com \
--to=michal.simek@amd.com \
--cc=git@xilinx.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.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