Skip to content

Commit

Permalink
Re-evaluate the pathmap if there's a recovery variant in play
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rmcc authored and Gerrit Code Review committed Jun 21, 2014
1 parent 0c0b0c7 commit 6b21727
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ endif
TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk)))
board_config_mk :=

## Rebuild the pathmap if there's a recovery variant. Its path probably changed
ifneq ($(RECOVERY_VARIANT),)
include $(BUILD_SYSTEM)/pathmap.mk
endif

# Perhaps we should move this block to build/core/Makefile,
# once we don't have TARGET_NO_KERNEL reference in AndroidBoard.mk/Android.mk.
ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true)
Expand Down

0 comments on commit 6b21727

Please sign in to comment.