[PATCH master 3/8] sandbox: do not enable SANDBOX_LINUX_I386 in allyesconfig
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Mar 19 22:16:36 PDT 2025
On sandbox, CONFIG_32BIT and CONFIG_64BIT are determined by the used
compiler. As special case, building sandbox on x86_64 allows
selecting a 32-bit build via CONFIG_SANDBOX_LINUX_I386 if the compiler
supports it.
This option is disabled by default, but allyesconfig turns it on,
alongside drivers requiring host libraries like FTDI and SDL, which
are usually not required.
To make allyesconfig work out-of-the-box, restructure the config
symbols and give 64BIT a prompt only if i386 support is possible.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
v1 -> v2:
- fix typo in symbol name (32_BIT -> 32BIT)
---
arch/sandbox/Kconfig | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig
index c1a51d4f021d..d4380aba0b5f 100644
--- a/arch/sandbox/Kconfig
+++ b/arch/sandbox/Kconfig
@@ -44,17 +44,23 @@ config CC_HAS_LINUX_I386_SUPPORT
config 64BIT
bool
- default n if SANDBOX_LINUX_I386
+ prompt "64-bit barebox" if CC_HAS_LINUX_I386_SUPPORT
default CC_IS_64BIT
select ARCH_DMA_ADDR_T_64BIT
select PHYS_ADDR_T_64BIT
select ARCH_HAS_ASAN_FIBER_API if ASAN
+ help
+ Say n here if you want to build a 32-bit barebox, either
+ to be more similar to a target platform or to reduce
+ memory usage when fuzzing for example.
+
+ If unsure, say y.
config 32BIT
def_bool !64BIT
config SANDBOX_LINUX_I386
- bool "32-bit x86 barebox" if CC_HAS_LINUX_I386_SUPPORT
+ def_bool 32BIT && CC_HAS_LINUX_I386_SUPPORT
config SANDBOX_REEXEC
prompt "exec(2) reset handler"
--
2.39.5
More information about the barebox
mailing list