summaryrefslogtreecommitdiffstats
path: root/core/pdk_config.mk
diff options
context:
space:
mode:
authorKeun young Park <keunyoung@google.com>2012-07-31 17:13:20 -0700
committerKeun young Park <keunyoung@google.com>2012-08-01 12:49:01 -0700
commit722266918f5b1152bab0a9c05790420d09229b29 (patch)
tree02ebce8a55674731cdf6b8786695f6d1ce444ace /core/pdk_config.mk
parent2a5f755a794b2ce4d4027804bcb1af6ece714933 (diff)
downloadbuild-722266918f5b1152bab0a9c05790420d09229b29.zip
build-722266918f5b1152bab0a9c05790420d09229b29.tar.gz
build-722266918f5b1152bab0a9c05790420d09229b29.tar.bz2
add symbol files to PDK release for debugging
- app_process is not in PDK, and this makes native debugging difficult So provide symbol file instead of source Bug: 6774048 Change-Id: I1a3a86cf64d8f1d22cdb3a22714f508de963099b
Diffstat (limited to 'core/pdk_config.mk')
-rw-r--r--core/pdk_config.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/pdk_config.mk b/core/pdk_config.mk
index ddf240c..77e9133 100644
--- a/core/pdk_config.mk
+++ b/core/pdk_config.mk
@@ -153,3 +153,16 @@ $(info PDK Build uses the current platform API)
endif # PDK_JAVA
endif # BUILD_PDK
+
+ifneq (,$(filter platform platform-java, $(MAKECMDGOALS))$(filter true,$(TARGET_BUILD_PDK)))
+# files under $(PRODUCT_OUT)/symbols to help debugging.
+# Source not included to PDK due to dependency issue, so provide symbols instead.
+PDK_SYMBOL_FILES_LIST := \
+ system/bin/app_process
+
+ifdef PDK_FUSION_PLATFORM_ZIP
+# symbols should be explicitly pulled for fusion build
+$(foreach f,$(PDK_SYMBOL_FILES_LIST),\
+ $(eval $(call add-dependency,$(PRODUCT_OUT)/$(f),$(PRODUCT_OUT)/symbols/$(f))))
+endif # PLATFORM_ZIP
+endif # platform.zip build or PDK