Skip to contentSkip to conversation

common: Make MMU_PGPROT depend on !SANDBOX

PATCH In review Tom Rini 2 participants 3 messages Sep 26, 2025 – Oct 9, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 common: Make MMU_PGPROT depend on !SANDBOX

While MMU_PGPROT is currently only functional for arm64 it can be extended for other real platforms as well. It does not however make sense for sandbox to enable and create dummy functions for. Make this depend on !SANDBOX.

---
 common/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/Kconfig +1 -0
index 1c340710a33d..30bf225362ee 100644
@@ -938,6 +938,7 @@ config STACKPROTECTOR
 
 config MMU_PGPROT
 	bool "Enable RO, RW and RX mappings"
+	depends on !SANDBOX
 	help
 	  U-Boot maps all pages as RWX. If selected pages will
 	  be marked as RO(.rodata), RX(.text), RW(.data) right after
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Tom Rini

While MMU_PGPROT is currently only functional for arm64 it can be extended for other real platforms as well. It does not however make sense for sandbox to enable and create dummy functions for. Make this depend on !SANDBOX.

author
#2 lore raw
In reply to Tom Rini
Quoted 6 lines · Tom Rini

While MMU_PGPROT is currently only functional for arm64 it can be extended for other real platforms as well. It does not however make sense for sandbox to enable and create dummy functions for. Make this depend on !SANDBOX.

Applied to u-boot/master, thanks!

[1/1] common: Make MMU_PGPROT depend on !SANDBOX

      commit: 0cdca862cb68a7f896e2095f5a248d3bc780bd29
Signature · 1 line
Tom