Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38278809 authored by Tom Marshall's avatar Tom Marshall Committed by Rashed Abdel-Tawab
Browse files

build: Use project pathmap for recovery

Change-Id: I6339ac77b899a43db21261d587252b65cb58ad79
parent e57c2ac6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1061,7 +1061,7 @@ ifneq (,$(INSTALLED_RECOVERYIMAGE_TARGET)$(filter true,$(BOARD_USES_RECOVERY_AS_
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 := \
    $(TARGET_RECOVERY_ROOT_OUT)/sepolicy \
    $(TARGET_RECOVERY_ROOT_OUT)/plat_file_contexts \
@@ -1079,7 +1079,7 @@ recovery_build_props := $(intermediate_system_build_prop)
ifdef property_overrides_split_enabled
recovery_build_props += $(INSTALLED_VENDOR_BUILD_PROP_TARGET)
endif
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
@@ -1103,9 +1103,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

ifndef TARGET_PRIVATE_RES_DIRS
+4 −0
Original line number Diff line number Diff line
@@ -183,6 +183,10 @@ include $(BUILD_SYSTEM)/envsetup.mk
# See envsetup.mk for a description of SCAN_EXCLUDE_DIRS
FIND_LEAVES_EXCLUDES := $(addprefix --prune=, $(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
-include vendor/lineage/config/BoardConfigLineage.mk

+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ pathmap_INCL := \
    libhardware:hardware/libhardware/include \
    libhardware_legacy:hardware/libhardware_legacy/include \
    libril:hardware/ril/include \
    recovery:bootable/recovery \
    system-core:system/core/include \
    audio:system/media/audio/include \
    audio-effects:system/media/audio_effects/include \