Skip to content

Commit

Permalink
Makefiles: Fix API_LEVEL location
Browse files Browse the repository at this point in the history
Some scripts expect it to be in Makefile.defines and we don't need it in
Makefile.target. So keep it in the first place.
  • Loading branch information
Xavier Chapron committed Apr 30, 2024
1 parent 8d5df51 commit 1519856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile.defines
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ __MAKEFILE_DEFINES__ := 1

include $(BOLOS_SDK)/Makefile.target

API_LEVEL := 0

# APPNAME exposed to the app as a CFLAG because it might contain spaces
CFLAGS += -DAPPNAME=\"$(APPNAME)\"

Expand Down
1 change: 0 additions & 1 deletion Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ ifeq ($(filter $(TARGET),$(TARGETS)),)
$(error TARGET not set to a valid value (possible values: $(TARGETS)))
endif

API_LEVEL := 0
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' '))
Expand Down

0 comments on commit 1519856

Please sign in to comment.