Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crypto/tinycrypt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ if(CONFIG_TINYCRYPT)
# Sources
# ############################################################################

list(APPEND CFLAGS -Dunix)
set(CSRCS
${TINYCRYPT_DIR}/lib/source/utils.c ${TINYCRYPT_DIR}/lib/source/ecc.c
${TINYCRYPT_DIR}/lib/source/ecc_platform_specific.c)
Expand Down Expand Up @@ -120,7 +121,7 @@ if(CONFIG_TINYCRYPT)
if(CONFIG_TINYCRYPT_TEST)
list(APPEND CSRCS ${TINYCRYPT_DIR}/tests/test_ecc_utils.c)
list(APPEND INCDIR ${TINYCRYPT_DIR}/tests/include)
set(CFLAGS -Dhex2bin=ltp_hex2bin -DENABLE_TESTS)
list(APPEND CFLAGS -DENABLE_TESTS)

nuttx_add_application(
NAME
Expand Down
4 changes: 2 additions & 2 deletions crypto/tinycrypt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ distclean::
$(Q) rm -rf $(TINYCRYPT_UNPACKNAME)
endif

CFLAGS += ${DEFINE_PREFIX}unix
CSRCS += tinycrypt/lib/source/utils.c

ifeq ($(CONFIG_TINYCRYPT_ECC),y)
Expand Down Expand Up @@ -105,8 +106,7 @@ endif

ifeq ($(CONFIG_TINYCRYPT_TEST),y)
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/tinycrypt/tinycrypt/tests/include
CFLAGS +=-Dhex2bin=ltp_hex2bin
CFLAGS +=-DENABLE_TESTS
CFLAGS += -DENABLE_TESTS
CSRCS += tinycrypt/tests/test_ecc_utils.c
PRIORITY = $(CONFIG_TINYCRYPT_TEST_PRIORITY)
STACKSIZE = $(CONFIG_TINYCRYPT_TEST_STACKSIZE)
Expand Down
Loading