Skip to content

Commit 6b21727

Browse files
rmccGerrit Code Review
authored andcommitted
Re-evaluate the pathmap if there's a recovery variant in play
Chances are the recovery location has changed, so rebuild the pathmap to compensate. This lets the variable be defined in BoardConfig files instead of the global environment Change-Id: I87c23a452656ffa7817711796c17f79e30465756
1 parent 0c0b0c7 commit 6b21727

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/config.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ endif
164164
TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk)))
165165
board_config_mk :=
166166

167+
## Rebuild the pathmap if there's a recovery variant. Its path probably changed
168+
ifneq ($(RECOVERY_VARIANT),)
169+
include $(BUILD_SYSTEM)/pathmap.mk
170+
endif
171+
167172
# Perhaps we should move this block to build/core/Makefile,
168173
# once we don't have TARGET_NO_KERNEL reference in AndroidBoard.mk/Android.mk.
169174
ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true)

0 commit comments

Comments
 (0)