From 5b6f5a7bcc90fd51109f13d21af01f56ea56a043 Mon Sep 17 00:00:00 2001 From: Liz Kammer Date: Fri, 16 Apr 2021 16:40:59 -0400 Subject: [PATCH] Add LOCAL_FULL_VINTF_FRAGMENTS to handle full path Soong supports references to other modules for vintf_fragments property, so full paths need to be passed from Soong to make rather than module local paths. Test: m droid Bug: 184567830 Change-Id: Ia7f1cf977de8aeb08d41624277ff6231198222e5 --- core/base_rules.mk | 9 +++++++-- core/clear_vars.mk | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/base_rules.mk b/core/base_rules.mk index c973997a8..56c11b139 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -573,9 +573,14 @@ my_vintf_installed:= my_vintf_pairs:= ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE)) ifndef LOCAL_IS_HOST_MODULE -ifneq ($(strip $(LOCAL_VINTF_FRAGMENTS)),) +ifneq ($(strip $(LOCAL_FULL_VINTF_FRAGMENTS)),) +my_vintf_fragments := $(LOCAL_FULL_VINTF_FRAGMENTS) +else +my_vintf_fragments := $(foreach xml,$(LOCAL_VINTF_FRAGMENTS),$(LOCAL_PATH)/$(xml)) +endif +ifneq ($(strip $(my_vintf_fragments)),) -my_vintf_pairs := $(foreach xml,$(LOCAL_VINTF_FRAGMENTS),$(LOCAL_PATH)/$(xml):$(TARGET_OUT$(partition_tag)_ETC)/vintf/manifest/$(notdir $(xml))) +my_vintf_pairs := $(foreach xml,$(my_vintf_fragments),$(xml):$(TARGET_OUT$(partition_tag)_ETC)/vintf/manifest/$(notdir $(xml))) my_vintf_installed := $(foreach xml,$(my_vintf_pairs),$(call word-colon,2,$(xml))) # Only set up copy rules once, even if another arch variant shares it diff --git a/core/clear_vars.mk b/core/clear_vars.mk index faca97ae8..e2acb678d 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -109,6 +109,7 @@ LOCAL_FULL_INIT_RC:= LOCAL_FULL_LIBS_MANIFEST_FILES:= LOCAL_FULL_MANIFEST_FILE:= LOCAL_FULL_TEST_CONFIG:= +LOCAL_FULL_VINTF_FRAGMENTS:= LOCAL_FUZZ_ENGINE:= LOCAL_FUZZ_INSTALLED_SHARED_DEPS:= LOCAL_GCNO_FILES:=