From 15198561e971e015aa969a1a57ec33dff1b79444 Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Tue, 30 Apr 2024 09:25:46 +0200 Subject: [PATCH] Makefiles: Fix API_LEVEL location 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. --- Makefile.defines | 2 ++ Makefile.target | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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' '))