summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2022-11-16 17:31:21 -0600
committerDamien George <damien.p.george@gmail.com>2022-11-17 23:20:58 +1100
commit4dcfd19bbfa5e1009bd4e0fe95f41a47452493f9 (patch)
treeff5d8cc1c649983dd8981a4cccb17d8bdc13c065
parent859d0e9529b90d6745dba347271d0d9b610da4aa (diff)
extmod/extmod.cmake: Add MICROPY_PY_BTREE compiler definition.
Instead of defining `MICROPY_PY_BTREE` in `mpconfigport.h` we can define it via CMake similar to how other ports that use Makefiles define it in `mpconfigport.mk`. Signed-off-by: David Lechner <david@pybricks.com>
-rw-r--r--extmod/extmod.cmake1
-rw-r--r--ports/esp32/mpconfigport.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/extmod/extmod.cmake b/extmod/extmod.cmake
index 2207a951a..ed7d16d1b 100644
--- a/extmod/extmod.cmake
+++ b/extmod/extmod.cmake
@@ -93,6 +93,7 @@ if(MICROPY_PY_BTREE)
)
list(APPEND MICROPY_DEF_CORE
+ MICROPY_PY_BTREE=1
__DBINTERFACE_PRIVATE=1
"virt_fd_t=void*"
)
diff --git a/ports/esp32/mpconfigport.h b/ports/esp32/mpconfigport.h
index 957aa2e93..d8822980b 100644
--- a/ports/esp32/mpconfigport.h
+++ b/ports/esp32/mpconfigport.h
@@ -123,7 +123,6 @@
#define MICROPY_PY_USSL_FINALISER (1)
#define MICROPY_PY_UWEBSOCKET (1)
#define MICROPY_PY_WEBREPL (1)
-#define MICROPY_PY_BTREE (1)
#define MICROPY_PY_ONEWIRE (1)
#define MICROPY_PY_UPLATFORM (1)
#define MICROPY_PY_USOCKET_EVENTS (MICROPY_PY_WEBREPL)