Skip to content

Commit

Permalink
rp2: Enable ucryptolib, using mbedtls for backend functions.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Apr 4, 2022
1 parent 11ab903 commit 86e6744
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ports/rp2/CMakeLists.txt
Expand Up @@ -236,6 +236,7 @@ target_sources(${MICROPY_TARGET} PRIVATE
${MICROPY_SOURCE_PORT}
)

target_link_libraries(${MICROPY_TARGET} micropy_lib_mbedtls)
target_link_libraries(${MICROPY_TARGET} usermod)

target_include_directories(${MICROPY_TARGET} PRIVATE
Expand Down
2 changes: 2 additions & 0 deletions ports/rp2/mpconfigport.h
Expand Up @@ -88,6 +88,7 @@
#define MICROPY_PY_UOS_URANDOM (1)
#define MICROPY_PY_URE_MATCH_GROUPS (1)
#define MICROPY_PY_URE_MATCH_SPAN_START_END (1)
#define MICROPY_PY_UCRYPTOLIB (1)
#define MICROPY_PY_UTIME_MP_HAL (1)
#define MICROPY_PY_URANDOM_SEED_INIT_FUNC (rosc_random_u32())
#define MICROPY_PY_MACHINE (1)
Expand All @@ -107,6 +108,7 @@
#define MICROPY_VFS (1)
#define MICROPY_VFS_LFS2 (1)
#define MICROPY_VFS_FAT (1)
#define MICROPY_SSL_MBEDTLS (1)

// fatfs configuration
#define MICROPY_FATFS_ENABLE_LFN (1)
Expand Down
2 changes: 1 addition & 1 deletion tools/ci.sh
Expand Up @@ -256,7 +256,7 @@ function ci_rp2_setup {

function ci_rp2_build {
make ${MAKEOPTS} -C mpy-cross
git submodule update --init lib/pico-sdk lib/tinyusb
git submodule update --init lib/mbedtls lib/pico-sdk lib/tinyusb
make ${MAKEOPTS} -C ports/rp2
make ${MAKEOPTS} -C ports/rp2 clean
make ${MAKEOPTS} -C ports/rp2 USER_C_MODULES=../../examples/usercmodule/micropython.cmake
Expand Down

0 comments on commit 86e6744

Please sign in to comment.