Modify the params of copy-unstripped-elf-file-with-mapping
Similar to that of copy-r8-dictionary-file-with-mapping.
This allows setting the elf mappings paths as the values of the per
module variables.
Test: m nothing
Bug: 402471392
Change-Id: I80c5606417a21d97e33cf8931509935dda4ddf1f
diff --git a/core/definitions.mk b/core/definitions.mk
index 60034cd..466bf41 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -3422,9 +3422,9 @@
# a hash mapping to the mapping directory.
# $(1): unstripped intermediates file
# $(2): path in symbols directory
+# $(3): path in elf_symbol_mapping packaging directory
define copy-unstripped-elf-file-with-mapping
-$(call _copy-symbols-file-with-mapping,$(1),$(2),\
- elf,$(patsubst $(TARGET_OUT_UNSTRIPPED)/%,$(call intermediates-dir-for,PACKAGING,elf_symbol_mapping)/%,$(2).textproto))
+$(call _copy-symbols-file-with-mapping,$(1),$(2),elf,$(3))
endef
# Copy an R8 dictionary to the packaging directory while also extracting