diff options
author | David 'Digit' Turner <digit@android.com> | 2011-06-23 12:49:02 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2011-07-07 23:57:22 +0200 |
commit | 3248bb2e076cb26a71c6a08e9788b2853e1f5f97 (patch) | |
tree | 2e8fa09333bb91791e7b806672e73e8686cf0169 | |
parent | c7e3877dad2333bfdf41e99470d559f381431d3c (diff) | |
download | build-3248bb2e076cb26a71c6a08e9788b2853e1f5f97.tar.gz |
sdk: provide ABI-dependent atree files
Backport from AOSP master
This patch allows development/sdk/ to provide ABI-specific .atree
files. This is useful to copy prebuilt CPU model-specific files
to the SDK platform image directory.
This is needed to deal with the fact that for ARMv7 platform builds,
the kernel image to use is prebuilt/android-arm/kernel-qemu-armv7 instead
of prebuilt/android-arm/kernel/qemu
Change-Id: Ib76caa54a059eca2dafc9cdba812b29f98b5e3c3
Orig-Change-Id: Icdca751852c01421fccf196436a9bc1114ea90f7
-rw-r--r-- | core/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/Makefile b/core/Makefile index 8de9b0450a..10f82df37f 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1291,6 +1291,14 @@ sdk_atree_files := \ $(atree_dir)/sdk-$(HOST_OS)-$(HOST_ARCH).atree \ sdk/build/tools.atree +# 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) \ @@ -1341,7 +1349,7 @@ $(INTERNAL_SDK_TARGET): $(deps) -v "TARGET_CPU_ABI=$(TARGET_CPU_ABI)" \ -o $(PRIVATE_DIR) && \ cp -f $(target_notice_file_txt) \ - $(PRIVATE_DIR)/platforms/android-$(PLATFORM_VERSION)/images/NOTICE.txt && \ + $(PRIVATE_DIR)/platforms/android-$(PLATFORM_VERSION)/images/$(TARGET_CPU_ABI)/NOTICE.txt && \ cp -f $(tools_notice_file_txt) $(PRIVATE_DIR)/tools/NOTICE.txt && \ HOST_OUT_EXECUTABLES=$(HOST_OUT_EXECUTABLES) HOST_OS=$(HOST_OS) \ development/build/tools/sdk_clean.sh $(PRIVATE_DIR) && \ |