From 11d52836f8b4621d9258adeaa50184828c7c52b8 Mon Sep 17 00:00:00 2001 From: TamtamHero <10632523+TamtamHero@users.noreply.github.com> Date: Fri, 16 Apr 2021 13:08:52 +0200 Subject: [PATCH] Add ethereum-plugin-sdk submodule --- .gitmodules | 3 +++ Makefile | 7 +++++++ ethereum-plugin-sdk | 1 + 3 files changed, 11 insertions(+) create mode 100644 .gitmodules create mode 160000 ethereum-plugin-sdk diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4318fd4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "ethereum-plugin-sdk"] + path = ethereum-plugin-sdk + url = git@github.com:LedgerHQ/ethereum-plugin-sdk.git diff --git a/Makefile b/Makefile index 6272f78..9417200 100755 --- a/Makefile +++ b/Makefile @@ -325,6 +325,13 @@ ifeq ($(TARGET_NAME),TARGET_NANOX) SDK_SOURCE_PATH += lib_blewbxx lib_blewbxx_impl endif +### initialize plugin SDK submodule if needed, and rebuild it +ifneq ($(shell git submodule status | grep '^[-+]'),) +$(info INFO: Need to reinitialize git submodules) +$(shell git submodule update --init) +endif +$(shell python3 ethereum-plugin-sdk/build_sdk.py) + load: all python3 -m ledgerblue.loadApp $(APP_LOAD_PARAMS) diff --git a/ethereum-plugin-sdk b/ethereum-plugin-sdk new file mode 160000 index 0000000..b405ade --- /dev/null +++ b/ethereum-plugin-sdk @@ -0,0 +1 @@ +Subproject commit b405ade018a735fa40c5d9bd76d964996c7f5bc2