Fix bug when calling directly recovery Makefile

This commit is contained in:
Philippe Teuwen
2026-09-25 22:43:58 +02:00
parent 027b225f41
commit fc024c8038
2 changed files with 14 additions and 2 deletions
+2 -2
View File
@@ -16,11 +16,11 @@
# Default platform if no platform specified
PLATFORM?=PM3RDV4
# Standalone Mode info (path depends if make is called at top or from armsrc)
# Standalone Mode info (path depends if make is called at top, from armsrc, or from a sibling dir like recovery/bootrom)
# Guard Makefile.hal against implicit rules: (with % to avoid being first goal)
%/Makefile.hal: ;
-include armsrc/Standalone/Makefile.hal
-include Standalone/Makefile.hal
-include ../armsrc/Standalone/Makefile.hal
ifndef DEFAULT_STANDALONE
$(error Could not find armsrc/Standalone/Makefile.hal)
endif
+12
View File
@@ -1,3 +1,15 @@
# This Makefile might have been called directly, not via the root Makefile, so:
ifeq ($(PLTNAME),)
PLATFORM_FILE ?= ../Makefile.platform
-include $(PLATFORM_FILE)
-include ../.Makefile.options.cache
include ../common_arm/Makefile.hal
ifeq ($(PLATFORM_CHANGED), true)
$(error platform definitions have been changed, please "make clean" at the root of the project)
endif
endif
include ../common_arm/Makefile.common
INSTALLFW = recovery.bin