Skip to content

Porting to buildroot #34

@PeterTseng783327

Description

@PeterTseng783327

Hello,

The ATECC508A is being used on my platform.
And I try to porting this project to buildroot.

But it can't compile successfully.
Is there a buildroot example for reference?

error log:
eccx08_cmd_defns.c: In function 'verify_signer_cert': eccx08_cmd_defns.c:222:14: warning: implicit declaration of function 'atcacert_verify_cert_hw' [-Wimplicit-function-declaration] status = atcacert_verify_cert_hw(&g_cert_def_1_signer_t, signerCert, signerCertSize, caPubkey); ^ Compiling eccx08_rsa_meth.c. CFLAGS = -I. -I.. -I../.. -I../../openssl_1_0_2 -I../../openssl_1_0_2/include -I../../openssl_1_0_2/include/openssl -I../../openssl_1_0_2/crypto/crypto -I../../openssl_1_0_2/crypto/engine -I../../openssl_1_0_2/crypto/include/internal -I../cryptoauthlib/lib -I../cryptoauthlib/lib/tls -fPIC -g -O0 -DUSE_ECCX08 -DECC_DEBUG -DATCA_HAL_I2C Compiling eccx08_eckey_meth.c. CFLAGS = -I. -I.. -I../.. -I../../openssl_1_0_2 -I../../openssl_1_0_2/include -I../../openssl_1_0_2/include/openssl -I../../openssl_1_0_2/crypto/crypto -I../../openssl_1_0_2/crypto/engine -I../../openssl_1_0_2/crypto/include/internal -I../cryptoauthlib/lib -I../cryptoauthlib/lib/tls -fPIC -g -O0 -DUSE_ECCX08 -DECC_DEBUG -DATCA_HAL_I2C Compiling eccx08_rand.c. CFLAGS = -I. -I.. -I../.. -I../../openssl_1_0_2 -I../../openssl_1_0_2/include -I../../openssl_1_0_2/include/openssl -I../../openssl_1_0_2/crypto/crypto -I../../openssl_1_0_2/crypto/engine -I../../openssl_1_0_2/crypto/include/internal -I../cryptoauthlib/lib -I../cryptoauthlib/lib/tls -fPIC -g -O0 -DUSE_ECCX08 -DECC_DEBUG -DATCA_HAL_I2C Compiling eccx08_ecdh.c. CFLAGS = -I. -I.. -I../.. -I../../openssl_1_0_2 -I../../openssl_1_0_2/include -I../../openssl_1_0_2/include/openssl -I../../openssl_1_0_2/crypto/crypto -I../../openssl_1_0_2/crypto/engine -I../../openssl_1_0_2/crypto/include/internal -I../cryptoauthlib/lib -I../cryptoauthlib/lib/tls -fPIC -g -O0 -DUSE_ECCX08 -DECC_DEBUG -DATCA_HAL_I2C eccx08_ecdh.c:381:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion] ECDH_eccx08_init, // init ^ eccx08_ecdh.c:381:5: note: (near initialization for 'eccx08_ecdh.flags') eccx08_ecdh.c:381:5: error: initializer element is not computable at load time eccx08_ecdh.c:381:5: note: (near initialization for 'eccx08_ecdh.flags') eccx08_ecdh.c:383:5: warning: excess elements in struct initializer 0, // flags ^ eccx08_ecdh.c:383:5: note: (near initialization for 'eccx08_ecdh') Makefile:32: recipe for target 'eccx08_ecdh.o' failed make[3]: *** [eccx08_ecdh.o] Error 1 Makefile:42: recipe for target 'tgt_engine_meth' failed make[2]: *** [tgt_engine_meth] Error 2 package/pkg-generic.mk:238: recipe for target '/home/msice/Workspace/MS5770/ambalink_sdk_4_9.20180316/output.oem/h22_ambalink/build/cryptoauthlib-0.1-alpha/.stamp_built' failed make[1]: *** [/home/msice/Workspace/MS5770/ambalink_sdk_4_9.20180316/output.oem/h22_ambalink/build/cryptoauthlib-0.1-alpha/.stamp_built] Error 2 Makefile:16: recipe for target '_all' failed make: *** [_all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions