Skip to content

Commit ac71a24

Browse files
Merge pull request #872 from LedgerHQ/fbe/ENABLE_PARTIAL_SWAP
Add ENABLE_TESTING_SWAP to the standard app
2 parents 5af9a28 + c64f343 commit ac71a24

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile.standard_app

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ ifeq ($(ENABLE_SWAP), 1)
5252
HAVE_APPLICATION_FLAG_LIBRARY = 1
5353
DEFINES += HAVE_SWAP
5454
endif
55+
ifeq ($(ENABLE_TESTING_SWAP), 1)
56+
# Partial SWAP implementation. Don't give lib permission on the device.
57+
# Do note that HAVE_APPLICATION_FLAG_LIBRARY is not enabled.
58+
DEFINES += HAVE_SWAP
59+
endif
5560

5661
#####################################################################
5762
# APP STORAGE #

lib_standard_app/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#ifdef HAVE_SWAP
2626
#include "swap.h"
27+
#include "swap_error_code_helpers.h"
2728

2829
#ifdef HAVE_NBGL
2930
#include "nbgl_use_case.h"

0 commit comments

Comments
 (0)