summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2014-06-04 21:30:14 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-04 21:30:14 +0000
commit6ab8ef21b8826b19e92a47f70d3ba30e04ba66cc (patch)
treee679367fc828fc397b5271f610a01bba53d29834
parente561dd484613737f0ee9289bab4be4361b3fab31 (diff)
parent26bcf6a51141fa9dec7df8b932835ccd7b1ab182 (diff)
Merge "Move SDK system-image source.prop_templates in their own folder."
-rw-r--r--build/Android.mk20
-rw-r--r--build/sdk-android-arm64-v8a.atree2
-rw-r--r--build/sdk-android-armeabi-v7a.atree2
-rw-r--r--build/sdk-android-armeabi.atree2
-rw-r--r--build/sdk-android-mips.atree2
-rw-r--r--build/sdk-android-x86.atree2
-rw-r--r--build/sdk-android-x86_64.atree2
-rw-r--r--build/tools/sdk_repo.mk6
-rw-r--r--sys-img/images_arm64-v8a_source.prop_template (renamed from sdk/images_arm64-v8a_source.prop_template)0
-rw-r--r--sys-img/images_armeabi-v7a_source.prop_template (renamed from sdk/images_armeabi-v7a_source.prop_template)0
-rw-r--r--sys-img/images_armeabi_source.prop_template (renamed from sdk/images_armeabi_source.prop_template)0
-rw-r--r--sys-img/images_mips_source.prop_template (renamed from sdk/images_mips_source.prop_template)0
-rw-r--r--sys-img/images_x86_64_source.prop_template (renamed from sdk/images_x86_64_source.prop_template)0
-rw-r--r--sys-img/images_x86_source.prop_template (renamed from sdk/images_x86_source.prop_template)0
14 files changed, 27 insertions, 11 deletions
diff --git a/build/Android.mk b/build/Android.mk
index f20a76ef8..4c2e7c13d 100644
--- a/build/Android.mk
+++ b/build/Android.mk
@@ -8,14 +8,21 @@ ALL_SDK_FILES += $(patsubst \
$(patsubst \
$(TOPDIR)development/samples/%_source.prop_template, \
$(HOST_OUT)/development/samples/%_source.properties, \
- $(wildcard $(TOPDIR)development/samples/*_source.prop_template))
+ $(wildcard $(TOPDIR)development/samples/*_source.prop_template)) \
+ $(patsubst \
+ $(TOPDIR)development/sys-img/%_source.prop_template, \
+ $(HOST_OUT)/development/sys-img-$(TARGET_CPU_ABI)/%_source.properties, \
+ $(wildcard $(TOPDIR)development/sys-img/*_source.prop_template))
# Rule to convert a source.prop template into the desired source.property
+# This needs to vary based on the CPU ABI for the system-image files.
# Rewritten variables:
# - ${PLATFORM_VERSION} e.g. "1.0"
# - ${PLATFORM_SDK_VERSION} e.g. "3", aka the API level
# - ${PLATFORM_VERSION_CODENAME} e.g. "REL" (transformed into "") or "Cupcake"
-$(HOST_OUT)/development/sdk/%_source.properties : $(TOPDIR)development/sdk/%_source.prop_template
+# - ${TARGET_ARCH} e.g. "arm", "x86", "mips" and their 64-bit variants.
+# - ${TARGET_CPU_ABI} e.g. "armeabi", "x86", "mips" and their 64-bit variants.
+$(HOST_OUT)/development/sys-img-$(TARGET_CPU_ABI)/%_source.properties : $(TOPDIR)development/sys-img/%_source.prop_template
@echo Generate $@
$(hide) mkdir -p $(dir $@)
$(hide) sed \
@@ -26,6 +33,15 @@ $(HOST_OUT)/development/sdk/%_source.properties : $(TOPDIR)development/sdk/%_sou
-e 's/$${TARGET_CPU_ABI}/$(TARGET_CPU_ABI)/' \
$< > $@ && sed -i -e '/^AndroidVersion.CodeName=\s*$$/d' $@
+$(HOST_OUT)/development/sdk/%_source.properties : $(TOPDIR)development/sdk/%_source.prop_template
+ @echo Generate $@
+ $(hide) mkdir -p $(dir $@)
+ $(hide) sed \
+ -e 's/$${PLATFORM_VERSION}/$(PLATFORM_VERSION)/' \
+ -e 's/$${PLATFORM_SDK_VERSION}/$(PLATFORM_SDK_VERSION)/' \
+ -e 's/$${PLATFORM_VERSION_CODENAME}/$(subst REL,,$(PLATFORM_VERSION_CODENAME))/' \
+ $< > $@ && sed -i -e '/^AndroidVersion.CodeName=\s*$$/d' $@
+
$(HOST_OUT)/development/samples/%_source.properties : $(TOPDIR)development/samples/%_source.prop_template
@echo Generate $@
$(hide) mkdir -p $(dir $@)
diff --git a/build/sdk-android-arm64-v8a.atree b/build/sdk-android-arm64-v8a.atree
index aefbe9e41..0103b89c8 100644
--- a/build/sdk-android-arm64-v8a.atree
+++ b/build/sdk-android-arm64-v8a.atree
@@ -19,4 +19,4 @@
prebuilts/qemu-kernel/arm/kernel-qemu-armv7 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
# version files for the SDK updater, from development.git
-${HOST_OUT}/development/sdk/images_arm64-v8a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
+${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_arm64-v8a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-armeabi-v7a.atree b/build/sdk-android-armeabi-v7a.atree
index 603f1465a..97dceda2d 100644
--- a/build/sdk-android-armeabi-v7a.atree
+++ b/build/sdk-android-armeabi-v7a.atree
@@ -18,4 +18,4 @@
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu-armv7 system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
# version files for the SDK updater, from development.git
-${HOST_OUT}/development/sdk/images_armeabi-v7a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
+${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_armeabi-v7a_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-armeabi.atree b/build/sdk-android-armeabi.atree
index f641ee309..af0d02950 100644
--- a/build/sdk-android-armeabi.atree
+++ b/build/sdk-android-armeabi.atree
@@ -17,4 +17,4 @@
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
# version files for the SDK updater, from development.git
-${HOST_OUT}/development/sdk/images_armeabi_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
+${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_armeabi_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-mips.atree b/build/sdk-android-mips.atree
index 5e8e5ca5f..7ec630979 100644
--- a/build/sdk-android-mips.atree
+++ b/build/sdk-android-mips.atree
@@ -18,4 +18,4 @@
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
# version files for the SDK updater, from development.git
-development/sdk/images_mips_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
+development/sys-img-${TARGET_CPU_ABI}/images_mips_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-x86.atree b/build/sdk-android-x86.atree
index 1eaf479c0..f8f6aab9c 100644
--- a/build/sdk-android-x86.atree
+++ b/build/sdk-android-x86.atree
@@ -17,4 +17,4 @@
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
# version files for the SDK updater, from development.git
-${HOST_OUT}/development/sdk/images_${TARGET_ARCH}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
+${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_${TARGET_ARCH}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/sdk-android-x86_64.atree b/build/sdk-android-x86_64.atree
index bbe4bd69a..2c953e625 100644
--- a/build/sdk-android-x86_64.atree
+++ b/build/sdk-android-x86_64.atree
@@ -17,4 +17,4 @@
prebuilts/qemu-kernel/${TARGET_ARCH}/kernel-qemu system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/kernel-qemu
# version files for the SDK updater, from development.git
-${HOST_OUT}/development/sdk/images_${TARGET_ARCH}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
+${HOST_OUT}/development/sys-img-${TARGET_CPU_ABI}/images_${TARGET_ARCH}_source.properties system-images/${PLATFORM_NAME}/${TARGET_CPU_ABI}/source.properties
diff --git a/build/tools/sdk_repo.mk b/build/tools/sdk_repo.mk
index 6de011768..8d13d7073 100644
--- a/build/tools/sdk_repo.mk
+++ b/build/tools/sdk_repo.mk
@@ -208,9 +208,9 @@ endif
# -----------------------------------------------------------------
# Rules for the SDK Repository XML
-SDK_REPO_XML := $(HOST_OUT)/sdk/repository.xml
-SDK_EXTRAS_XML := $(HOST_OUT)/sdk/repo-extras.xml
-SDK_SYSIMG_XML := $(HOST_OUT)/sdk/repo-sys-img.xml
+SDK_REPO_XML := $(MAIN_SDK_DIR)/repository.xml
+SDK_EXTRAS_XML := $(MAIN_SDK_DIR)/repo-extras.xml
+SDK_SYSIMG_XML := $(MAIN_SDK_DIR)/repo-sys-img.xml
ifneq ($(SDK_REPO_XML_ARGS),)
diff --git a/sdk/images_arm64-v8a_source.prop_template b/sys-img/images_arm64-v8a_source.prop_template
index 1a18cf874..1a18cf874 100644
--- a/sdk/images_arm64-v8a_source.prop_template
+++ b/sys-img/images_arm64-v8a_source.prop_template
diff --git a/sdk/images_armeabi-v7a_source.prop_template b/sys-img/images_armeabi-v7a_source.prop_template
index 7d13fcecd..7d13fcecd 100644
--- a/sdk/images_armeabi-v7a_source.prop_template
+++ b/sys-img/images_armeabi-v7a_source.prop_template
diff --git a/sdk/images_armeabi_source.prop_template b/sys-img/images_armeabi_source.prop_template
index ef17ea652..ef17ea652 100644
--- a/sdk/images_armeabi_source.prop_template
+++ b/sys-img/images_armeabi_source.prop_template
diff --git a/sdk/images_mips_source.prop_template b/sys-img/images_mips_source.prop_template
index 78dc63f29..78dc63f29 100644
--- a/sdk/images_mips_source.prop_template
+++ b/sys-img/images_mips_source.prop_template
diff --git a/sdk/images_x86_64_source.prop_template b/sys-img/images_x86_64_source.prop_template
index 1a18cf874..1a18cf874 100644
--- a/sdk/images_x86_64_source.prop_template
+++ b/sys-img/images_x86_64_source.prop_template
diff --git a/sdk/images_x86_source.prop_template b/sys-img/images_x86_source.prop_template
index d5f561093..d5f561093 100644
--- a/sdk/images_x86_source.prop_template
+++ b/sys-img/images_x86_source.prop_template