From: Ying Wang Date: Mon, 14 Mar 2011 18:44:57 +0000 (-0700) Subject: Make a copy of symbol files after prelinking is removed. X-Git-Tag: android-x86-4.4-r1~1841 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=374b3256d270f9320176330e4f836a1cb3955899;p=android-x86%2Fbuild.git Make a copy of symbol files after prelinking is removed. Change-Id: I1628b54fc747154d48f213c634b081e43eb41696 --- diff --git a/core/dynamic_binary.mk b/core/dynamic_binary.mk index 437361a43..0ca1858b1 100644 --- a/core/dynamic_binary.mk +++ b/core/dynamic_binary.mk @@ -86,11 +86,20 @@ else compress_output := $(compress_input) endif +########################################################### +## Store a copy with symbols for symbolic debugging +########################################################### +symbolic_input := $(compress_output) +symbolic_output := $(LOCAL_UNSTRIPPED_PATH)/$(LOCAL_BUILT_MODULE_STEM) +$(symbolic_output) : $(symbolic_input) | $(ACP) + @echo "target Symbolic: $(PRIVATE_MODULE) ($@)" + $(copy-file-to-target) + ########################################################### ## Strip ########################################################### -strip_input := $(compress_output) +strip_input := $(symbolic_output) strip_output := $(LOCAL_BUILT_MODULE) ifeq ($(strip $(LOCAL_STRIP_MODULE)),) @@ -122,4 +131,5 @@ endif # LOCAL_STRIP_MODULE $(cleantarget): PRIVATE_CLEAN_FILES := \ $(PRIVATE_CLEAN_FILES) \ $(linked_module) \ + $(symbolic_output) \ $(compress_output)