[PATCH] cmd: fpga: Fix wrong preprocessor guard for loadb help text

Michal Simek michal.simek at amd.com
Tue Apr 7 10:07:11 CEST 2026


The help text for the "fpga loadb" command was incorrectly guarded by
CONFIG_CMD_FPGA_LOADP instead of CONFIG_CMD_FPGA_LOADB. This meant the
loadb help text would only be shown when LOADP was enabled, rather than
when LOADB was enabled.

Fix the preprocessor condition to use the correct config option.

Signed-off-by: Michal Simek <michal.simek at amd.com>
---

 cmd/fpga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/fpga.c b/cmd/fpga.c
index d51c380d7b3e..d347a7002906 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -417,7 +417,7 @@ U_BOOT_CMD(fpga, 6, 1, do_fpga_wrapper,
 	 "info   [dev]                  List known device information\n"
 	 "fpga dump   <dev> <address> <size> Load device to memory buffer\n"
 	 "fpga load   <dev> <address> <size> Load device from memory buffer\n"
-#if defined(CONFIG_CMD_FPGA_LOADP)
+#if defined(CONFIG_CMD_FPGA_LOADB)
 	 "fpga loadb  <dev> <address> <size> Load device from bitstream buffer\n"
 #endif
 #if defined(CONFIG_CMD_FPGA_LOADP)
-- 
2.43.0

base-commit: 950bf29f73f44e8edc6b22cb7ea2d9a56cfe2872
branch: debian-sent3


More information about the U-Boot mailing list