[PATCH v2 2/2] valgrind: Disable on Risc-V

Sean Anderson seanga2 at gmail.com
Fri May 27 15:58:14 CEST 2022


There are no defined instruction sequences in include/valgrind.h for
Risc-V, so CONFIG_VALGRIND will do nothing on this arch (and possibly won't
compile?). Update Kconfig accordingly.

Signed-off-by: Sean Anderson <seanga2 at gmail.com>
---

Changes in v2:
- New

 Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Kconfig b/Kconfig
index bdae59e06f..a83b534b34 100644
--- a/Kconfig
+++ b/Kconfig
@@ -307,6 +307,7 @@ config TPL_SYS_MALLOC_F_LEN
 
 config VALGRIND
 	bool "Inform valgrind about memory allocations"
+	depends on !RISCV
 	help
 	  Valgrind is an instrumentation framework for building dynamic analysis
 	  tools. In particular, it may be used to detect memory management bugs
-- 
2.35.1



More information about the U-Boot mailing list