diff --git a/extmod/extmod.cmake b/extmod/extmod.cmake index 966511fac5..8fe83a0ada 100644 --- a/extmod/extmod.cmake +++ b/extmod/extmod.cmake @@ -14,7 +14,6 @@ set(MICROPY_SOURCE_EXTMOD ${MICROPY_EXTMOD_DIR}/machine_signal.c ${MICROPY_EXTMOD_DIR}/machine_spi.c ${MICROPY_EXTMOD_DIR}/modbluetooth.c - ${MICROPY_EXTMOD_DIR}/modbtree.c ${MICROPY_EXTMOD_DIR}/modframebuf.c ${MICROPY_EXTMOD_DIR}/modlwip.c ${MICROPY_EXTMOD_DIR}/modnetwork.c @@ -97,6 +96,10 @@ if(MICROPY_PY_BTREE) __DBINTERFACE_PRIVATE=1 "virt_fd_t=void*" ) + + list(APPEND MICROPY_SOURCE_EXTMOD + ${MICROPY_EXTMOD_DIR}/modbtree.c + ) endif() # Library for mbedtls