diff --git a/Makefile.defines b/Makefile.defines index 9c97db005..f0b3ac1c1 100644 --- a/Makefile.defines +++ b/Makefile.defines @@ -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)\" diff --git a/Makefile.target b/Makefile.target index 293cef095..ba0708f40 100644 --- a/Makefile.target +++ b/Makefile.target @@ -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' '))