]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
valgrind: Disable on Risc-V
authorSean Anderson <seanga2@gmail.com>
Fri, 27 May 2022 14:03:00 +0000 (10:03 -0400)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 28 May 2022 08:59:27 +0000 (10:59 +0200)
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@gmail.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Kconfig

diff --git a/Kconfig b/Kconfig
index 797038b0371db228933df6494cf611cbdafdd62c..f7e3c332f0785d261be5afc2d35ef7dd762adc61 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -305,6 +305,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