From f1caf74d3384c8368f9085a2f75e0db56858835f Mon Sep 17 00:00:00 2001 From: mikecarper Date: Fri, 24 Jul 2026 01:13:57 -0700 Subject: [PATCH] Keep certificate bundle in full ESP32 builds --- scripts/generate_cert_bundle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/generate_cert_bundle.py b/scripts/generate_cert_bundle.py index f4f8f158a..e42659d58 100644 --- a/scripts/generate_cert_bundle.py +++ b/scripts/generate_cert_bundle.py @@ -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: