Merge "sdk: provide ABI-dependent atree files"
diff --git a/core/Makefile b/core/Makefile
index 9766336..08ca785 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1346,6 +1346,14 @@
$(atree_dir)/sdk-$(HOST_OS)-$(HOST_ARCH).atree \
$(sdk_tools_atree_files)
+# development/build/sdk-android-<abi>.atree is used to differentiate
+# between architecture models (e.g. ARMv5TE versus ARMv7) when copying
+# files like the kernel image. We use TARGET_CPU_ABI because we don't
+# have a better way to distinguish between CPU models.
+ifneq (,$(strip $(wildcard $(atree_dir)/sdk-android-$(TARGET_CPU_ABI).atree)))
+ sdk_atree_files += $(atree_dir)/sdk-android-$(TARGET_CPU_ABI).atree
+endif
+
deps := \
$(target_notice_file_txt) \
$(tools_notice_file_txt) \