Keep certificate bundle in full ESP32 builds

This commit is contained in:
mikecarper committed 2026-07-24 01:13:57 -07:00
1 parent 455b3f97e0
commit f1caf74d33
1 file changed
+4 -1
+4 -1
View File
@@ -182,7 +182,10 @@ def main():
# Portable observer presets pin their required roots directly in
# MQTTPresets.h. Keep the embedded bundle structurally valid but empty so
# custom TLS trust stores do not consume 66 KB of the legacy app slot.
if "observer_mqtt" in env.subst("$PIOENV").lower():
if (
"observer_mqtt" in env.subst("$PIOENV").lower()
and os.environ.get("MESHCORE_ESP32_FULL_BUILD") != "1"
):
os.makedirs(binary_dir, exist_ok=True)
output_file = os.path.join(binary_dir, ca_bundle_bin_file)
with open(output_file, 'wb') as f: