Skip to content

Commit

Permalink
build: Use project pathmap for recovery
Browse files Browse the repository at this point in the history
Change-Id: I6339ac77b899a43db21261d587252b65cb58ad79
  • Loading branch information
tdmcyngn committed Oct 6, 2014
1 parent c2daf50 commit fddc5f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ else
ifeq ($(BOARD_USES_RECOVERY_CHARGEMODE),true)
$(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)
else
recovery_initrc := $(call include-path-for, recovery)/etc/init.rc
recovery_initrc := $(call project-path-for,recovery)/etc/init.rc
endif
endif
ifneq ($(TARGET_PREBUILT_RECOVERY_KERNEL),)
Expand All @@ -684,7 +684,7 @@ recovery_uncompressed_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.cpio
recovery_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.img
recovery_build_prop := $(INSTALLED_BUILD_PROP_TARGET)
recovery_binary := $(call intermediates-dir-for,EXECUTABLES,recovery)/recovery
recovery_resources_common := $(call include-path-for, recovery)/res
recovery_resources_common := $(call project-path-for,recovery)/res
recovery_resources_private := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery/res))
recovery_root_private := $(strip $(wildcard $(TARGET_DEVICE_DIR)/recovery/root))
recovery_resource_deps := $(shell find $(recovery_resources_common) \
Expand Down
7 changes: 3 additions & 4 deletions core/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,9 @@ 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
# General entries for project pathmap. Any entries listed here should
# be device and hardware intedpendent.
$(call set_project_variant_path,recovery,RECOVERY_VARIANT,bootable/recovery)

# Perhaps we should move this block to build/core/Makefile,
# once we don't have TARGET_NO_KERNEL reference in AndroidBoard.mk/Android.mk.
Expand Down
6 changes: 0 additions & 6 deletions core/pathmap.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ pathmap_INCL := \
wilhelm-ut:frameworks/wilhelm/src/ut \
speex:external/speex/include

ifneq ($(RECOVERY_VARIANT),)
pathmap_INCL += recovery:bootable/recovery-$(RECOVERY_VARIANT)
else
pathmap_INCL += recovery:bootable/recovery
endif

#
# Returns the path to the requested module's include directory,
# relative to the root of the source tree. Does not handle external
Expand Down

0 comments on commit fddc5f4

Please sign in to comment.