Skip to content

Fix emcc build inheriting stale SYSTEM config#645

Merged
jserv merged 1 commit into
masterfrom
fix-emcc-workflow
Dec 25, 2025
Merged

Fix emcc build inheriting stale SYSTEM config#645
jserv merged 1 commit into
masterfrom
fix-emcc-workflow

Conversation

@jserv

@jserv jserv commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

The emcc build without ENABLE_SYSTEM was failing because it inherited a stale .config file from the previous 'make ENABLE_SYSTEM=1 artifact' step. This caused the build to attempt creating minimal.dtb even though SYSTEM mode was not explicitly enabled.

The fix adds 'make distclean' before the emcc build without SYSTEM to ensure a clean configuration state. This mirrors the pattern already used for the SYSTEM emulation build.

Root cause: The .config file persists across make invocations, and 'make ENABLE_SYSTEM=1 artifact' sets SYSTEM=1 in the config. Without distclean, subsequent builds read this stale config.

The emcc build without ENABLE_SYSTEM was failing because it inherited
a stale .config file from the previous 'make ENABLE_SYSTEM=1 artifact'
step. This caused the build to attempt creating minimal.dtb even though
SYSTEM mode was not explicitly enabled.

The fix adds 'make distclean' before the emcc build without SYSTEM to
ensure a clean configuration state. This mirrors the pattern already
used for the SYSTEM emulation build.

Root cause: The .config file persists across make invocations, and
'make ENABLE_SYSTEM=1 artifact' sets SYSTEM=1 in the config. Without
distclean, subsequent builds read this stale config.
@jserv jserv added this to the release-2025.2 milestone Dec 25, 2025
@jserv jserv merged commit 3d6acf5 into master Dec 25, 2025
20 of 21 checks passed
@jserv jserv deleted the fix-emcc-workflow branch December 25, 2025 19:06
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.

1 participant