Skip to content

Commit

Permalink
Merge pull request #710 from LedgerHQ/abo_update_api_level_21
Browse files Browse the repository at this point in the history
Update API_LEVEL_21
  • Loading branch information
abonnaudet-ledger committed Jun 27, 2024
2 parents 458be22 + 5e58635 commit 3da2d9e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ $(error TARGET not set to a valid value (possible values: $(TARGETS)))
endif

TARGET_PATH := $(BOLOS_SDK)/target/$(TARGET)
TARGET_ID := $(shell cat $(TARGET_PATH)/include/bolos_target.h | grep TARGET_ID | cut -f3 -d' ')
TARGET_NAME := $(sort $(shell cat $(TARGET_PATH)/include/bolos_target.h | grep TARGET_ | grep -v TARGET_ID | cut -f2 -d' '))
BOLOS_TARGET_H := $(TARGET_PATH)/include/bolos_target.h
TARGET_ID := $(shell grep -E "^\#define\s*TARGET_ID" $(BOLOS_TARGET_H) | cut -f3 -d' ')
TARGET_NAME := $(shell grep -E "^\#define\s*TARGET_[^I]" $(BOLOS_TARGET_H) | cut -f2 -d' ')
SDK_NAME := "ledger-secure-sdk"
SDK_VERSION := $(shell git -C $(BOLOS_SDK) describe --tags --exact-match --match "v[0-9]*" --dirty)
SDK_HASH := $(shell git -C $(BOLOS_SDK) describe --always --dirty --exclude '*' --abbrev=40)
Expand Down
4 changes: 4 additions & 0 deletions target/flex/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef ST33K1M5
#define ST33K1M5
#endif // ST33K1M5

#ifndef TARGET_ID
#define TARGET_ID 0x33300004
#endif // TARGET_ID

#ifndef TARGET_FLEX
#define TARGET_FLEX
#endif // TARGET_FLEX
6 changes: 6 additions & 0 deletions target/nanos/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#ifndef ST31
#define ST31
#endif // ST31

#ifndef TARGET_ID
#define TARGET_ID 0x31100004
#endif // TARGET_ID

#ifndef TARGET_NANOS
#define TARGET_NANOS
#endif // TARGET_NANOS
6 changes: 6 additions & 0 deletions target/nanos2/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#ifndef ST33K1M5
#define ST33K1M5
#endif // ST33K1M5

#ifndef TARGET_ID
#define TARGET_ID 0x33100004
#endif // TARGET_ID

#ifndef TARGET_NANOS2
#define TARGET_NANOS2
#endif // TARGET_NANOS2
6 changes: 6 additions & 0 deletions target/nanox/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#ifndef ST33
#define ST33
#endif // ST33

#ifndef TARGET_ID
#define TARGET_ID 0x33000004
#endif // TARGET_ID

#ifndef TARGET_NANOX
#define TARGET_NANOX
#endif // TARGET_NANOX
4 changes: 4 additions & 0 deletions target/stax/include/bolos_target.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef ST33K1M5
#define ST33K1M5
#endif // ST33K1M5

#ifndef TARGET_ID
#define TARGET_ID 0x33200004
#endif // TARGET_ID

#ifndef TARGET_STAX
#define TARGET_STAX
#endif // TARGET_STAX

0 comments on commit 3da2d9e

Please sign in to comment.