[PATCH 2/4] xilinx: Fix logic when dfu_alt_info is generated
Michal Simek
michal.simek at amd.com
Tue Aug 9 16:32:52 CEST 2022
Generate dfu_alt_info only when it is not defined.
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
board/xilinx/zynq/board.c | 3 +--
board/xilinx/zynqmp/zynqmp.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 63aff0474bea..26ef0488358d 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -168,8 +168,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
{
ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
- if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
- env_get("dfu_alt_info"))
+ if (env_get("dfu_alt_info"))
return;
memset(buf, 0, sizeof(buf));
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 57259b60a02e..29a6e3675f3c 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -641,8 +641,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
- if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
- env_get("dfu_alt_info"))
+ if (env_get("dfu_alt_info"))
return;
memset(buf, 0, sizeof(buf));
--
2.36.1
More information about the U-Boot
mailing list