diff mbox series

[2/3] support/scripts/gen-bootlin-toolchains: add missing BR2_USE_MMU dependencies

Message ID SY8P300MB0041672EF4D2FB7673811ABBB5AB2@SY8P300MB0041.AUSP300.PROD.OUTLOOK.COM
State New
Headers show
Series support/scripts/gen-bootlin-toolchains: add missing BR2_USE_MMU dependencies | expand

Commit Message

Fengwei Tan Aug. 29, 2026, 11:12 a.m. UTC
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 <tfx2001@outlook.com>
---
 support/scripts/gen-bootlin-toolchains | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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',
     },
 }