Closed mrkeuz closed 2 years ago
Little update, I found how remove wrong flags. But it does not help.
Found solution.
In the end reveals that src/crypto/cortex
is some platform-specific implementation of cryptography and even not used (call of asm implementation crypto_scalarmult_curve25519
is commented):
It can exclude from library safety. I don't find easy way to exclude some lib files from build via platformio.ini flags, it can achieve little tricky via python script (extra_scipts = ... flag). But I decided just made fork and fix library.
I can create PR for this. As you support only esp32
right now, so files can be deleted.
In the future, for such platform-agnostic optimizations extra_scrips
can be used for exclude sources, I think.
(see: https://docs.platformio.org/en/latest/librarymanager/config.html)
Thanks for investigating the problem.
This is an Arduino library for ESP32, so ESP32-specific resolution is OK.
Could you post a PR for the changes? I will check and merge it.
Thanks for posting PR.
I've confirmed that the PR solves this issue. Thanks!
Glad to help. Love WireGuard
. Nice project!
I wish you successful development and fewer bugs! π
Hi, first of all, thanks for your effort! π
I have a question. We have idea (early WIP) tried to integrate and build project (
ESPHome
) with your library, but unfortunately, compile filed withxtensa-esp32-elf-as: unrecognized option '-x'
error. PlatformIO upgraded and latest version (5.2.0)Could you help to find a way to fix this issue? Thanks in advance.
My config (I tried on fresh project):
Here output of error