summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2014-10-01 07:33:51 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 17:49:40 -0700
commita6eec6f0f533e2722a79b2406a18831db7470bf6 (patch)
tree4017efa0551fd0c50753dfa377d688f57014079e /core
parent3b0fd614f1ec0894bead7f058f502b11d2105299 (diff)
downloadbuild-a6eec6f0f533e2722a79b2406a18831db7470bf6.zip
build-a6eec6f0f533e2722a79b2406a18831db7470bf6.tar.gz
build-a6eec6f0f533e2722a79b2406a18831db7470bf6.tar.bz2
build: Use project pathmap for recovery
Change-Id: I6339ac77b899a43db21261d587252b65cb58ad79
Diffstat (limited to 'core')
-rw-r--r--core/Makefile8
-rw-r--r--core/config.mk4
-rw-r--r--core/pathmap.mk1
3 files changed, 8 insertions, 5 deletions
diff --git a/core/Makefile b/core/Makefile
index 65770fc..c7c452d 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -810,13 +810,13 @@ ifdef INSTALLED_RECOVERYIMAGE_TARGET
INTERNAL_RECOVERYIMAGE_FILES := $(filter $(TARGET_RECOVERY_OUT)/%, \
$(ALL_DEFAULT_INSTALLED_MODULES))
-recovery_initrc := $(call include-path-for, recovery)/etc/init.rc
+recovery_initrc := $(call project-path-for,recovery)/etc/init.rc
recovery_sepolicy := $(call intermediates-dir-for,ETC,sepolicy.recovery)/sepolicy.recovery
recovery_kernel := $(INSTALLED_KERNEL_TARGET) # same as a non-recovery system
recovery_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.img
recovery_build_prop := $(intermediate_system_build_prop)
recovery_uncompressed_ramdisk := $(PRODUCT_OUT)/ramdisk-recovery.cpio
-recovery_resources_common := $(call include-path-for, recovery)/res
+recovery_resources_common := $(call project-path-for,recovery)/res
# Set recovery_density to the density bucket of the device.
recovery_density := unknown
@@ -840,9 +840,9 @@ endif
# its private recovery resources.
ifneq (,$(filter xxxhdpi 560dpi xxhdpi 400dpi xhdpi,$(recovery_density)))
-recovery_font := $(call include-path-for, recovery)/fonts/18x32.png
+recovery_font := $(call project-path-for,recovery)/fonts/18x32.png
else
-recovery_font := $(call include-path-for, recovery)/fonts/12x22.png
+recovery_font := $(call project-path-for,recovery)/fonts/12x22.png
endif
ifneq ($(TARGET_RECOVERY_DEVICE_DIRS),)
diff --git a/core/config.mk b/core/config.mk
index 2eb09ec..44fd7e6 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -161,6 +161,10 @@ include $(BUILD_SYSTEM)/envsetup.mk
# See envsetup.mk for a description of SCAN_EXCLUDE_DIRS
FIND_LEAVES_EXCLUDES := $(addprefix --prune=, $(OUT_DIR) $(SCAN_EXCLUDE_DIRS) .repo .git)
+# General entries for project pathmap. Any entries listed here should
+# be device and hardware independent.
+$(call project-set-path-variant,recovery,RECOVERY_VARIANT,bootable/recovery)
+
-include vendor/extra/BoardConfigExtra.mk
# The build system exposes several variables for where to find the kernel
# headers:
diff --git a/core/pathmap.mk b/core/pathmap.mk
index 699eac1..a23aafc 100644
--- a/core/pathmap.mk
+++ b/core/pathmap.mk
@@ -41,7 +41,6 @@ pathmap_INCL := \
libstdc++:bionic/libstdc++/include \
mkbootimg:system/core/mkbootimg \
opengl-tests-includes:frameworks/native/opengl/tests/include \
- recovery:bootable/recovery \
system-core:system/core/include \
audio:system/media/audio/include \
audio-effects:system/media/audio_effects/include \