[v2,30/35] boot: extension: allow longer overlay file names

Message ID 20261107143241.2236511-31-dario.binacchi@amarulasolutions.com
State New
Headers
Series Add Engicam MicroGEA-STM32MP257D-RMM board support |

Commit Message

Dario Binacchi Nov. 7, 2026, 2:32 p.m. UTC
The overlay file name is limited to 63 characters, which is too short
for the Linux overlays named after the base devicetree, such as:

  st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtbo

Increase the buffer size to 128 bytes. The structure is never passed to
the OS and all its users size the overlay field with sizeof() or
strlen(), so the change is safe.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>

---

Changes in v2:
- Add Reviewed-by tag

 include/extension_board.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.43.0
  

Patch

diff --git a/include/extension_board.h b/include/extension_board.h
index 0b9fb99ad7dc..f72db21441da 100644
--- a/include/extension_board.h
+++ b/include/extension_board.h
@@ -62,7 +62,7 @@  struct extension {
 	char name[32];
 	char owner[32];
 	char version[32];
-	char overlay[64];
+	char overlay[128];
 	char other[32];
 };