Skip to content

feat(build_mp): esp32 displayif PSRAM preflight check#11

Draft
bdbarnett wants to merge 1 commit into
mainfrom
cursor/build-mp-preflight-d50b
Draft

feat(build_mp): esp32 displayif PSRAM preflight check#11
bdbarnett wants to merge 1 commit into
mainfrom
cursor/build-mp-preflight-d50b

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Summary

Adds esp32_displayif_preflight() to build_mp.sh, called before esp32 builds when displayif/ is present in the workspace.

  • Warns if CONFIG_SPIRAM is not enabled on S3/P4 boards (needed for rgbframebuffer / mipidsi large framebuffers)
  • Interactive builds prompt to continue; non-interactive builds log and continue
  • Escape hatch: DISPLAYIF_SKIP_SPIRAM_CHECK=1

Not included (optional follow-up)

Automatic sdkconfig patching to enable SPIRAM in board defaults — preflight warning only for now.

Test plan

  • ./build_mp.sh --port esp32 --board ESP32_GENERIC_S3 with displayif present, no SPIRAM → warning
  • Same with DISPLAYIF_SKIP_SPIRAM_CHECK=1 → silent
  • Non-esp32 ports unaffected
Open in Web Open in Cursor 

Warn before esp32 builds when displayif is present but CONFIG_SPIRAM is
not enabled on S3/P4 boards. Supports interactive continue, non-interactive
bypass via DISPLAYIF_SKIP_SPIRAM_CHECK=1.

Co-authored-by: bbarnett <bbarnett@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants