Skip to content

Fix the USE_EMBEDDED_FILES build - #1261

Open
meeloo wants to merge 1 commit into
Duet3D:3.7-devfrom
meeloo:upstream/fix-embedded-files-compile
Open

Fix the USE_EMBEDDED_FILES build#1261
meeloo wants to merge 1 commit into
Duet3D:3.7-devfrom
meeloo:upstream/fix-embedded-files-compile

Conversation

@meeloo

@meeloo meeloo commented Aug 22, 2026

Copy link
Copy Markdown

Pins_Duet3_MB6HC.h has always had a USE_EMBEDDED_FILES branch, but nothing builds it and on 3.7-dev it does not compile: the TLS code in LwipEthernetInterface and WiFiInterface calls MassStorage::SecureDelete, which is declared only under HAS_MASS_STORAGE || HAS_SBC_INTERFACE - both of which USE_EMBEDDED_FILES turns off.

Guarded those two blocks with the same condition the declaration uses. An embedded filesystem is read-only, so there is nothing to wipe and the reply now says so instead of the build failing.

Duet3_MB6HC is byte-for-byte the same size afterwards, so the guards are inert on that path.

Testing note: nothing upstream builds USE_EMBEDDED_FILES, so this cannot be exercised without a build config for the embedded variant. I have one at meeloo/RepRapFirmware:build/embedded-mb6hc-config and can open it as a separate PR, fold it into this one, or leave it out - whichever suits

Pins_Duet3_MB6HC.h has always had a USE_EMBEDDED_FILES branch, but nothing builds
it and on 3.7.0-beta.3 it does not compile: the TLS code in LwipEthernetInterface
and WiFiInterface calls MassStorage::SecureDelete, which is declared only under
HAS_MASS_STORAGE || HAS_SBC_INTERFACE - both of which USE_EMBEDDED_FILES turns
off.

Guarded those two blocks with the same condition the declaration uses. An
embedded filesystem is read-only, so there is nothing to wipe and the reply now
says so instead of the build failing.

The normal Duet3_MB6HC build is byte-for-byte the same size afterwards (text
998468), so the guards are inert on that path.
@github-actions

github-actions Bot commented Aug 22, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@meeloo

meeloo commented Aug 22, 2026

Copy link
Copy Markdown
Author

I have read the Duet3D CLA v2.0 and I hereby sign it

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