diff --git a/.github/workflows/guidelines_enforcer.yml b/.github/workflows/guidelines_enforcer.yml new file mode 100644 index 0000000..fdaf9f2 --- /dev/null +++ b/.github/workflows/guidelines_enforcer.yml @@ -0,0 +1,23 @@ +name: Ensure compliance with Ledger guidelines + +# This workflow is mandatory in all applications +# It calls a reusable workflow guidelines_enforcer developed by Ledger's internal developer team. +# The successful completion of the reusable workflow is a mandatory step for an app to be available on the Ledger +# application store. +# +# More information on the guidelines can be found in the repository: +# LedgerHQ/ledger-app-workflows/ + +on: + workflow_dispatch: + push: + branches: + - master + - main + - develop + pull_request: + +jobs: + guidelines_enforcer: + name: Call Ledger guidelines_enforcer + uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1 diff --git a/Makefile b/Makefile index f209baf..75cd78c 100644 --- a/Makefile +++ b/Makefile @@ -56,21 +56,21 @@ ALL_PATH_PARAMS += $(NOS_PATH_PARAM) ifeq ($(APP_TYPE), standalone) ifeq ($(TARGET_NAME),TARGET_NANOX) -LIB_LOAD_FLAGS = --appFlags 0x250 -APP_LOAD_FLAGS = --appFlags 0x250 +LIB_LOAD_FLAGS = --appFlags 0x200 +APP_LOAD_FLAGS = --appFlags 0x200 else -LIB_LOAD_FLAGS = --appFlags 0x50 -APP_LOAD_FLAGS = --appFlags 0x50 +LIB_LOAD_FLAGS = --appFlags 0x00 +APP_LOAD_FLAGS = --appFlags 0x00 endif DEFINES += IS_STANDALONE_APP else ifeq ($(APP_TYPE), shared) ifeq ($(TARGET_NAME),TARGET_NANOX) -LIB_LOAD_FLAGS = --appFlags 0xA50 -APP_LOAD_FLAGS = --appFlags 0x250 --dep Nano +LIB_LOAD_FLAGS = --appFlags 0xA00 +APP_LOAD_FLAGS = --appFlags 0x200 --dep Nano else -LIB_LOAD_FLAGS = --appFlags 0x850 -APP_LOAD_FLAGS = --appFlags 0x50 --dep Nano +LIB_LOAD_FLAGS = --appFlags 0x800 +APP_LOAD_FLAGS = --appFlags 0x00 --dep Nano endif DEFINES += SHARED_LIBRARY_NAME=\"$(NANO_APP_NAME)\" DEFINES += HAVE_COIN_NANO @@ -112,7 +112,7 @@ endif APPVERSION_M=1 APPVERSION_N=2 -APPVERSION_P=6 +APPVERSION_P=8 APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P) MAX_ADPU_INPUT_SIZE=217 diff --git a/ledger_app.toml b/ledger_app.toml new file mode 100644 index 0000000..8f4c403 --- /dev/null +++ b/ledger_app.toml @@ -0,0 +1,4 @@ +[app] +build_directory = "./" +sdk = "C" +devices = ["nanos", "nanox", "nanos+"] diff --git a/src/libn_app.c b/src/libn_app.c index cf4034d..1ede11e 100644 --- a/src/libn_app.c +++ b/src/libn_app.c @@ -26,7 +26,7 @@ #include "u2f_transport.h" #include "u2f_processing.h" - +extern u2f_service_t G_io_u2f; #endif // HAVE_IO_U2F void libn_bagl_idle(void);