-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #660 from LedgerHQ/lpa/update_api_level_18
Update API_LEVEL_18
- Loading branch information
Showing
15 changed files
with
986 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#******************************************************************************* | ||
# Ledger SDK | ||
# (c) 2024 Ledger | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#******************************************************************************* | ||
|
||
ifeq ($(__MAKEFILE_TARGET__),) | ||
__MAKEFILE_TARGET__ := 1 | ||
|
||
# TARGET should be set as an environment variable otherwise it will be read from a `.target` | ||
# file in the SDK root repository | ||
TARGETS := nanos nanox nanos2 stax flex | ||
ifeq ($(TARGET),) | ||
ifeq ("$(wildcard $(BOLOS_SDK)/.target)","") | ||
$(error No TARGET specified and no .target file in SDK repository $(BOLOS_SDK)) | ||
else | ||
TARGET := $(shell cat $(BOLOS_SDK)/.target) | ||
endif | ||
endif | ||
|
||
ifeq ($(filter $(TARGET),$(TARGETS)),) | ||
$(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' ')) | ||
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) | ||
ifeq ($(SDK_VERSION),) | ||
SDK_VERSION := "None" | ||
endif | ||
ifeq ($(SDK_HASH),) | ||
SDK_HASH := "None" | ||
endif | ||
|
||
BUILD_DIR := build | ||
TARGET_BUILD_DIR := $(BUILD_DIR)/$(TARGET) | ||
BIN_DIR := $(TARGET_BUILD_DIR)/bin | ||
OBJ_DIR := $(TARGET_BUILD_DIR)/obj | ||
DBG_DIR := $(TARGET_BUILD_DIR)/dbg | ||
DEP_DIR := $(TARGET_BUILD_DIR)/dep | ||
GEN_SRC_DIR := $(TARGET_BUILD_DIR)/gen_src | ||
|
||
# Debug mode disabled by default | ||
DEBUG:=0 | ||
|
||
# define the default makefile target (high in include to avoid glyph.h or what not specific target to be the default one when no target passed on the make command line) | ||
all: default | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.