[PATCH] ARM: Enable CONFIG_64BIT for static analysis

Dan Carpenter dan.carpenter at linaro.org
Thu Feb 22 07:47:58 CET 2024


In the Makefile there is a line that says this:

    # the checker needs the correct machine size
    CHECKFLAGS += $(if $(CONFIG_64BIT),-m64,-m32)

So set CONFIG_64BIT so that we don't pass -m32 to the static checker.

Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
---
 arch/arm/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fde85dc0d537..4c7be7cf9c33 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1,11 +1,15 @@
 menu "ARM architecture"
 	depends on ARM
 
+config 64BIT
+	bool
+
 config SYS_ARCH
 	default "arm"
 
 config ARM64
 	bool
+	select 64BIT
 	select PHYS_64BIT
 	select SYS_CACHE_SHIFT_6
 	imply SPL_SEPARATE_BSS
-- 
2.43.0



More information about the U-Boot mailing list