Skip to content

Commit fddc5f4

Browse files
committed
build: Use project pathmap for recovery
Change-Id: I6339ac77b899a43db21261d587252b65cb58ad79
1 parent c2daf50 commit fddc5f4

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

core/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ else
672672
ifeq ($(BOARD_USES_RECOVERY_CHARGEMODE),true)
673673
$(error BOARD_USES_RECOVERY_CHARGEMODE is deprecated. Please see http://bit.ly/opcSJZ on how to properly implement chargemode in recovery. Or just remove the BOARD_USES_RECOVERY_CHARGEMODE if you are lazy. I will hate you though. -Koush)
674674
else
675-
recovery_initrc := $(call include-path-for, recovery)/etc/init.rc
675+
recovery_initrc := $(call project-path-for,recovery)/etc/init.rc
676676
endif
677677
endif
678678
ifneq ($(TARGET_PREBUILT_RECOVERY_KERNEL),)
@@ -684,7 +684,7 @@ recovery_uncompressed_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.cpio
684684
recovery_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.img
685685
recovery_build_prop := $(INSTALLED_BUILD_PROP_TARGET)
686686
recovery_binary := $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
687-
recovery_resources_common := $(call include-path-for, recovery)/res
687+
recovery_resources_common := $(call project-path-for,recovery)/res
688688
recovery_resources_private := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery/res))
689689
recovery_root_private := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery/root))
690690
recovery_resource_deps := $(shell find $(recovery_resources_common) \

core/config.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,9 @@ endif
163163
TARGET_DEVICE_DIR := $(patsubst %/,%,$(dir $(board_config_mk)))
164164
board_config_mk :=
165165

166-
## Rebuild the pathmap if there's a recovery variant. Its path probably changed
167-
ifneq ($(RECOVERY_VARIANT),)
168-
include $(BUILD_SYSTEM)/pathmap.mk
169-
endif
166+
# General entries for project pathmap. Any entries listed here should
167+
# be device and hardware intedpendent.
168+
$(call set_project_variant_path,recovery,RECOVERY_VARIANT,bootable/recovery)
170169

171170
# Perhaps we should move this block to build/core/Makefile,
172171
# once we don't have TARGET_NO_KERNEL reference in AndroidBoard.mk/Android.mk.

core/pathmap.mk

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ pathmap_INCL := \
5353
wilhelm-ut:frameworks/wilhelm/src/ut \
5454
speex:external/speex/include
5555

56-
ifneq ($(RECOVERY_VARIANT),)
57-
pathmap_INCL += recovery:bootable/recovery-$(RECOVERY_VARIANT)
58-
else
59-
pathmap_INCL += recovery:bootable/recovery
60-
endif
61-
6256
#
6357
# Returns the path to the requested module's include directory,
6458
# relative to the root of the source tree. Does not handle external

0 commit comments

Comments
 (0)