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