File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ const DEFINES_CCID: [(&str, Option<&str>); 2] =
11
11
12
12
const AUX_C_FILES : [ & str ; 2 ] = [ "./src/c/src.c" , "./src/c/sjlj.s" ] ;
13
13
14
- const SDK_C_FILES : [ & str ; 9 ] = [
14
+ const SDK_C_FILES : [ & str ; 8 ] = [
15
15
"src/os_io_usb.c" ,
16
16
"src/pic.c" ,
17
17
"src/checks.c" ,
18
- "lib_cxng/src/cx_exported_functions.c" ,
19
18
"src/cx_stubs.S" ,
20
19
"src/os.c" ,
21
20
"src/svc_call.s" ,
@@ -212,8 +211,8 @@ fn retrieve_target_file_infos(
212
211
fn clone_sdk ( device : & Device ) -> PathBuf {
213
212
let ( repo_url, sdk_branch) = match device {
214
213
Device :: NanoS => (
215
- Path :: new ( "https://github.com/LedgerHQ/nanos -secure-sdk" ) ,
216
- "master " ,
214
+ Path :: new ( "https://github.com/LedgerHQ/ledger -secure-sdk" ) ,
215
+ "API_LEVEL_LNS " ,
217
216
) ,
218
217
Device :: NanoX => (
219
218
Path :: new ( "https://github.com/LedgerHQ/ledger-secure-sdk" ) ,
@@ -408,6 +407,14 @@ impl SDKBuilder {
408
407
} else {
409
408
// Let cc::Build determine CC from the environment variable
410
409
}
410
+
411
+ // Test if the file lib_cxng/src/cx_exported_functions.c exists
412
+ // If it does, add it to the list of files to compile
413
+ let cxng_src = self . bolos_sdk . join ( "lib_cxng/src/cx_exported_functions.c" ) ;
414
+ if cxng_src. exists ( ) {
415
+ command. file ( cxng_src) ;
416
+ }
417
+
411
418
command
412
419
. files ( & AUX_C_FILES )
413
420
. files ( str2path ( & self . bolos_sdk , & SDK_C_FILES ) )
You can’t perform that action at this time.
0 commit comments