Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
embed/extmod: use full paths to solve secp256k1.h filename collision
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Mar 20, 2019
1 parent e2dadb3 commit 5e42337
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion SConscript.firmware
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ SOURCE_MOD += [

# libsecp256k1-zkp
CPPPATH_MOD += [
'vendor/secp256k1-zkp/',
'vendor/secp256k1-zkp',
'vendor/secp256k1-zkp/src',
'vendor/secp256k1-zkp/include',
]
Expand Down
4 changes: 2 additions & 2 deletions embed/extmod/modtrezorcrypto/modtrezorcrypto-secp256k1.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#include "py/objstr.h"

#include "ecdsa.h"
#include "secp256k1.h"
#include "vendor/trezor-crypto/ecdsa.h"
#include "vendor/trezor-crypto/secp256k1.h"

/// package: trezorcrypto.secp256k1

Expand Down
9 changes: 4 additions & 5 deletions embed/extmod/modtrezorcrypto/modtrezorcrypto-secp256k1_zkp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@

#include "py/objstr.h"

#include "ecdsa.h"
#include "secp256k1.h"
#include "secp256k1_ecdh.h"
#include "secp256k1_preallocated.h"
#include "secp256k1_recovery.h"
#include "vendor/secp256k1-zkp/include/secp256k1.h"
#include "vendor/secp256k1-zkp/include/secp256k1_ecdh.h"
#include "vendor/secp256k1-zkp/include/secp256k1_preallocated.h"
#include "vendor/secp256k1-zkp/include/secp256k1_recovery.h"

// The minimum buffer size can vary in future secp256k1-zkp revisions.
// It can always be determined by a call to
Expand Down

0 comments on commit 5e42337

Please sign in to comment.