diff options
| author | Your Name <you@example.com> | 2026-05-19 16:16:54 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 16:16:54 +0530 |
| commit | 62bce81d26994bd242035905c94d611cf956bd37 (patch) | |
| tree | d3818ea8d36cc3d39406b48fa37eae70553faf74 /components/negentropy_lib/CMakeLists.txt | |
| parent | 4af9a0042f2dbe053cacec8427f7f370bd0e0f22 (diff) | |
- Create components/negentropy_lib/ wrapping negentropy submodule
- CMakeLists.txt references submodule sources via relative path
- OpenSSL SHA-256 compat using mbedTLS for ESP32
- Enables C++ exceptions + RTTI for negentropy_wrapper.cpp
- Remove esp_littlefs, esp_timer from REQUIRES (transitive via wisp_relay)
- Keep tcp_transport (direct dep of stratum_client.c via esp_transport.h)
- Fix config.c duplicate seed_relays/sync_interval/fallback_interval blocks
- Remove leftover merge conflict marker in tollgate_api.c
- Add MINER_INTEGRATION_PLAN.md with miner integration checklist
idf.py build: PASS (1.3MB, 68% free)
make test-unit: PASS (19 suites, 344+ assertions)
Diffstat (limited to 'components/negentropy_lib/CMakeLists.txt')
| -rw-r--r-- | components/negentropy_lib/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/components/negentropy_lib/CMakeLists.txt b/components/negentropy_lib/CMakeLists.txt new file mode 100644 index 0000000..32bab60 --- /dev/null +++ b/components/negentropy_lib/CMakeLists.txt | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | set(NEGENTROPY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../negentropy) | ||
| 2 | |||
| 3 | idf_component_register( | ||
| 4 | SRCS "${NEGENTROPY_DIR}/c/negentropy_wrapper.cpp" | ||
| 5 | INCLUDE_DIRS | ||
| 6 | "${NEGENTROPY_DIR}/c" | ||
| 7 | "${NEGENTROPY_DIR}/cpp" | ||
| 8 | "compat" | ||
| 9 | REQUIRES mbedtls | ||
| 10 | ) | ||
| 11 | |||
| 12 | target_compile_options(${COMPONENT_LIB} PRIVATE | ||
| 13 | -fexceptions | ||
| 14 | -frtti | ||
| 15 | -Wno-error | ||
| 16 | -Wno-delete-non-virtual-dtor | ||
| 17 | -Wno-unused-variable | ||
| 18 | -Wno-unused-function | ||
| 19 | -Wno-catch-value | ||
| 20 | ) | ||