From c310d00a6fa48eddaede60720df59af69942ccea Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Mon, 29 Jul 2024 19:16:10 +0200 Subject: [PATCH 1/2] Add flag for sdk compilation --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 532441b..26c3808 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,9 @@ ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_STAX TARGET_FLEX)) DEFINES += ICONGLYPH_SMALL=C_chain_$(CHAIN_ID) endif +# Don't define plugin function in the plugin SDK +DEFINES += IS_NOT_A_PLUGIN + # Application allowed derivation curves. # Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1 From 53d2196a1922d7f4f7d4c21e43fbc8ee4e9da9bf Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Mon, 29 Jul 2024 19:16:46 +0200 Subject: [PATCH 2/2] Revert use case name change in manifest to restore compatibility --- ledger_app.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger_app.toml b/ledger_app.toml index a640f65..4f50eae 100644 --- a/ledger_app.toml +++ b/ledger_app.toml @@ -4,8 +4,8 @@ sdk = "C" devices = ["nanos", "nanox", "nanos+", "stax", "flex"] [use_cases] # Coherent build options that make sense for your application -test_keys = "CAL_TEST_KEY=1 DOMAIN_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1" -dbg_test_keys = "DEBUG=1 CAL_TEST_KEY=1 DOMAIN_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1" +use_test_keys = "CAL_TEST_KEY=1 DOMAIN_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1" +dbg_use_test_keys = "DEBUG=1 CAL_TEST_KEY=1 DOMAIN_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1" cal_bypass = "BYPASS_SIGNATURES=1" dbg_cal_bypass = "DEBUG=1 BYPASS_SIGNATURES=1"