games: Support supervised loadable game processes. - #3661
Open
aviralgarg05 wants to merge 1 commit into
Open
Conversation
6 tasks
aviralgarg05
force-pushed
the
gsoc/games-loadable-modules-pr11
branch
from
August 14, 2026 15:11
d7b08fd to
5a8920d
Compare
aviralgarg05
marked this pull request as ready for review
August 14, 2026 15:14
aviralgarg05
force-pushed
the
gsoc/games-loadable-modules-pr11
branch
from
August 15, 2026 10:02
1a43eda to
f9a8113
Compare
Let cgol, match4 and snake build as modules. Handle SIGTERM from cgol's render loop so it can release the framebuffer cleanly. Assisted-by: OpenAI Codex:gpt-5.6-sol Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
aviralgarg05
force-pushed
the
gsoc/games-loadable-modules-pr11
branch
from
August 15, 2026 11:03
f9a8113 to
291da8f
Compare
xiaoxiang781216
approved these changes
Aug 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: Please adhere to Contributing Guidelines.
Summary
cgol renders forever and has no exit condition of its own, so once started
there was no way to ask it to stop other than killing the task, which can
land in the middle of a framebuffer write.
This adds a SIGTERM handler that only records the request, with the actual
shutdown taken from the render loop where it is safe to unmap and close.
The Kconfig entries for cgol, match4 and snake also become tristate so the
games can be built as loadable modules rather than only into the image.
Impact
the game now exiting cleanly on SIGTERM instead of being killed.
Testing
Build host: macOS 26.5, arm64,
xtensa-esp-elf-gcc 14.2.0(
esp-14.2.0_20251107).Target: Xtensa / ESP32-S3, Waveshare ESP32-S3-Touch-LCD-7.
nxstyle,tools/checkpatch.sh,codespellandgit diff --checkthe framebuffer released;
psshowed no leftover task afterwardsPR verification Self-Check