summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSzymon Janc <ext.szymon.janc@tieto.com>2016-02-09 18:01:59 +0100
committerGerrit Code Review <gerrit@zephyrproject.org>2016-02-10 22:14:58 +0000
commitc12c48c4b21037890f0b789380a4f3c546b449d2 (patch)
tree81bb1377ab645607f735e839d7451e7360678f08 /lib
parent0f7bc9dd67cd46ea44230540019a5c0921c3d495 (diff)
tinycrypt: Fix compilation with ECC enabled
Common ecc.c code was not compiled resulting in following link error: crypto/tinycrypt/lib.a(ecc_dh.o): In function `ecc_make_key': crypto/tinycrypt/source/ecc_dh.c:50: undefined reference to `vli_set' crypto/tinycrypt/source/ecc_dh.c:51: undefined reference to `curve_n' crypto/tinycrypt/source/ecc_dh.c:51: undefined reference to `vli_sub' crypto/tinycrypt/source/ecc_dh.c:54: undefined reference to `curve_n' crypto/tinycrypt/source/ecc_dh.c:54: undefined reference to `vli_cmp' crypto/tinycrypt/source/ecc_dh.c:53: undefined reference to `vli_cond_set' crypto/tinycrypt/source/ecc_dh.c:56: undefined reference to `vli_isZero' crypto/tinycrypt/source/ecc_dh.c:62: undefined reference to `curve_G' ... Change-Id: Ib590fd7330753c0ae8ef54159b0f2b7461b5b38e Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/tinycrypt/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/tinycrypt/Makefile b/lib/crypto/tinycrypt/Makefile
index f93748c2a..c4a5a7a1c 100644
--- a/lib/crypto/tinycrypt/Makefile
+++ b/lib/crypto/tinycrypt/Makefile
@@ -1,7 +1,7 @@
ccflags-y +=-I$(srctree)/lib/crypto/tinycrypt/include
lib-$(CONFIG_TINYCRYPT) := source/utils.o
-lib-$(CONFIG_TINYCRYPT_ECC_DH) += source/ecc_dh.o
-lib-$(CONFIG_TINYCRYPT_ECC_DSA) += source/ecc_dsa.o
+lib-$(CONFIG_TINYCRYPT_ECC_DH) += source/ecc_dh.o source/ecc.o
+lib-$(CONFIG_TINYCRYPT_ECC_DSA) += source/ecc_dsa.o source/ecc.o
lib-$(CONFIG_TINYCRYPT_AES) += source/aes_decrypt.o
lib-$(CONFIG_TINYCRYPT_AES) += source/aes_encrypt.o
lib-$(CONFIG_TINYCRYPT_AES_CBC) += source/cbc_mode.o