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>
This commit is contained in:
Szymon Janc 2016-02-09 18:01:59 +01:00 committed by Gerrit Code Review
commit c12c48c4b2

View file

@ -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