Skip to content

Commit

Permalink
Update Makefile.target to match target id and name from bolos_target …
Browse files Browse the repository at this point in the history
…header
  • Loading branch information
tjoly-ledger committed Jun 26, 2024
1 parent abb92af commit 21c4a1c
Showing 1 changed file with 3 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

0 comments on commit 21c4a1c

Please sign in to comment.