From 3469c6793ce6db8f813b3c203d3fc5eeb398e107 Mon Sep 17 00:00:00 2001 From: Fengwei Tan Date: Sat, 29 Aug 2026 19:12:11 +0800 Subject: [PATCH] support/scripts/gen-bootlin-toolchains: add missing BR2_USE_MMU dependencies The Bootlin uClibc toolchains for m68k-68xxx, riscv32-ilp32d, and xtensa-lx60 require an MMU. However, their generated Kconfig entries lack a BR2_USE_MMU dependency, allowing them to be selected for noMMU configurations. External toolchain validation then fails with: MMU support available in C library, please enable BR2_USE_MMU Add the missing BR2_USE_MMU dependencies for these architectures to prevent them from being selected for noMMU targets. Signed-off-by: Fengwei Tan Signed-off-by: Thomas Petazzoni --- support/scripts/gen-bootlin-toolchains | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/scripts/gen-bootlin-toolchains b/support/scripts/gen-bootlin-toolchains index 75fa2c7e0f..4579949d18 100755 --- a/support/scripts/gen-bootlin-toolchains +++ b/support/scripts/gen-bootlin-toolchains @@ -68,7 +68,7 @@ arches = { 'prefix': 'arm', }, 'm68k-68xxx': { - 'conditions': ['BR2_m68k_m68k'], + 'conditions': ['BR2_m68k_m68k', 'BR2_USE_MMU'], 'test_options': ['BR2_m68k', 'BR2_m68k_68040'], 'prefix': 'm68k', }, @@ -156,7 +156,7 @@ arches = { 'prefix': 'powerpc64le', }, 'riscv32-ilp32d': { - 'conditions': ['BR2_riscv', 'BR2_riscv_g', 'BR2_RISCV_32', 'BR2_RISCV_ABI_ILP32D'], + 'conditions': ['BR2_riscv', 'BR2_riscv_g', 'BR2_RISCV_32', 'BR2_RISCV_ABI_ILP32D', 'BR2_USE_MMU'], 'prefix': 'riscv32', }, 'riscv64-lp64d': { @@ -269,7 +269,7 @@ arches = { 'prefix': 'i686', }, 'xtensa-lx60': { - 'conditions': ['BR2_xtensa', 'BR2_XTENSA_CUSTOM', 'BR2_XTENSA_LITTLE_ENDIAN'], + 'conditions': ['BR2_xtensa', 'BR2_XTENSA_CUSTOM', 'BR2_XTENSA_LITTLE_ENDIAN', 'BR2_USE_MMU'], 'prefix': 'xtensa', }, }