From 65636e38039c1933922d20fd764098e1c39ae278 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Apr 2026 21:26:37 +0000 Subject: [PATCH] Makefile: auto-enable MESA for rpi5 platforms Pi 5 ships only with the Mesa V3D driver; the legacy Broadcom VideoCore (-lbrcmGLESv2, /opt/vc) path does not exist. Without MESA=1 the rpi5 target fell through to the VideoCore branch and failed to link (or linked against the wrong GLES stack). Mirror the rpi4 behavior so platform=rpi5/rpi5_64 builds out of the box. https://claude.ai/code/session_01DieYJ7DZTyMLGtbzj4JsTr --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 97c160940..670b8dd3a 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,10 @@ else ifneq (,$(findstring rpi,$(platform))) GLES3 = 1 MESA = 1 endif + ifneq (,$(findstring rpi5,$(platform))) + GLES3 = 1 + MESA = 1 + endif ifeq ($(MESA), 1) GL_LIB := -lGLESv2 else