From 8fa7cb18d451fc892343401d4b83e2b48b57c878 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 8 Mar 2026 12:19:01 -1000 Subject: [PATCH] Revert "Merge branch 'libsodium-native-le' into integration" This reverts commit c49957fe9a6f32fd0c72b3c9d317aac073624357, reversing changes made to 3cde02443de8f4b3173c229c4a41c3b973d03dd9. --- esphome/components/api/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/esphome/components/api/__init__.py b/esphome/components/api/__init__.py index 0e28836806c..5f1f0f884b5 100644 --- a/esphome/components/api/__init__.py +++ b/esphome/components/api/__init__.py @@ -456,10 +456,7 @@ async def to_code(config: ConfigType) -> None: # libsodium uses NATIVE_LITTLE_ENDIAN to enable optimized 32-bit # load/store via memcpy instead of byte-at-a-time operations in # poly1305 and chacha20. All ESPHome targets are little-endian. - # ESP8266 excluded: its older GCC doesn't optimize memcpy into - # a single load, making the memcpy path 16 bytes larger. - if not CORE.is_esp8266: - cg.add_build_flag("-DNATIVE_LITTLE_ENDIAN") + cg.add_build_flag("-DNATIVE_LITTLE_ENDIAN") cg.add_library("esphome/noise-c", "0.1.10") else: cg.add_define("USE_API_PLAINTEXT")