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: