Merge commit 'goog/eclair' into eclair-release

This commit is contained in:
android-build SharedAccount
2009-10-01 08:43:38 -07:00
7 changed files with 40 additions and 19 deletions

View File

@@ -90,6 +90,8 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libhardware_le
$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/*/system/app/Launcher.apk) $(call add-clean-step, rm -rf $(OUT_DIR)/target/product/*/system/app/Launcher.apk)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/bluetooth/) $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/bluetooth/)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/sholes/system/build.prop) $(call add-clean-step, rm -rf $(OUT_DIR)/target/product/sholes/system/build.prop)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/com.amazon.mp3_intermediates)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/com.amazon.mp3.apk)
# ************************************************ # ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST

View File

@@ -814,6 +814,13 @@ $(BUILT_TARGET_FILES_PACKAGE): PRIVATE_OTA_TOOLS := $(built_ota_tools)
$(BUILT_TARGET_FILES_PACKAGE): PRIVATE_RECOVERY_API_VERSION := $(RECOVERY_API_VERSION) $(BUILT_TARGET_FILES_PACKAGE): PRIVATE_RECOVERY_API_VERSION := $(RECOVERY_API_VERSION)
ifeq ($(TARGET_RELEASETOOLS_EXTENSIONS),)
# default to common dir for device vendor
$(BUILT_TARGET_FILES_PACKAGE): tool_extensions := $(TARGET_DEVICE_DIR)/../common
else
$(BUILT_TARGET_FILES_PACKAGE): tool_extensions := $(TARGET_RELEASETOOLS_EXTENSIONS)
endif
# Depending on the various images guarantees that the underlying # Depending on the various images guarantees that the underlying
# directories are up-to-date. # directories are up-to-date.
$(BUILT_TARGET_FILES_PACKAGE): \ $(BUILT_TARGET_FILES_PACKAGE): \
@@ -887,6 +894,7 @@ endif
$(hide) echo "recovery $(call image-size-from-data-size,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE))" >> $(zip_root)/META/imagesizes.txt $(hide) echo "recovery $(call image-size-from-data-size,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE))" >> $(zip_root)/META/imagesizes.txt
$(hide) echo "system $(call image-size-from-data-size,$(BOARD_SYSTEMIMAGE_PARTITION_SIZE))" >> $(zip_root)/META/imagesizes.txt $(hide) echo "system $(call image-size-from-data-size,$(BOARD_SYSTEMIMAGE_PARTITION_SIZE))" >> $(zip_root)/META/imagesizes.txt
$(hide) echo "userdata $(call image-size-from-data-size,$(BOARD_USERDATAIMAGE_PARTITION_SIZE))" >> $(zip_root)/META/imagesizes.txt $(hide) echo "userdata $(call image-size-from-data-size,$(BOARD_USERDATAIMAGE_PARTITION_SIZE))" >> $(zip_root)/META/imagesizes.txt
$(hide) echo "$(tool_extensions)" > $(zip_root)/META/tool-extensions.txt
@# Zip everything up, preserving symlinks @# Zip everything up, preserving symlinks
$(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .) $(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .)
@@ -909,13 +917,6 @@ INTERNAL_OTA_PACKAGE_TARGET := $(PRODUCT_OUT)/$(name).zip
$(INTERNAL_OTA_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR) $(INTERNAL_OTA_PACKAGE_TARGET): KEY_CERT_PAIR := $(DEFAULT_KEY_CERT_PAIR)
ifeq ($(TARGET_RELEASETOOLS_EXTENSIONS),)
# default to common dir for device vendor
$(INTERNAL_OTA_PACKAGE_TARGET): extensions := $(TARGET_DEVICE_DIR)/../common
else
$(INTERNAL_OTA_PACKAGE_TARGET): extensions := $(TARGET_RELEASETOOLS_EXTENSIONS)
endif
ifeq ($(TARGET_OTA_SCRIPT_MODE),) ifeq ($(TARGET_OTA_SCRIPT_MODE),)
# default to "auto" # default to "auto"
$(INTERNAL_OTA_PACKAGE_TARGET): scriptmode := auto $(INTERNAL_OTA_PACKAGE_TARGET): scriptmode := auto
@@ -926,7 +927,7 @@ endif
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) otatools $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) otatools
@echo "Package OTA: $@" @echo "Package OTA: $@"
$(hide) ./build/tools/releasetools/ota_from_target_files \ $(hide) ./build/tools/releasetools/ota_from_target_files \
-s $(extensions) -m $(scriptmode) \ -m $(scriptmode) \
-p $(HOST_OUT) \ -p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \ -k $(KEY_CERT_PAIR) \
$(BUILT_TARGET_FILES_PACKAGE) $@ $(BUILT_TARGET_FILES_PACKAGE) $@

View File

@@ -25,10 +25,7 @@ PRODUCT_PACKAGES := \
libwnndict \ libwnndict \
ApiDemos \ ApiDemos \
GestureBuilder \ GestureBuilder \
SoftKeyboard \ SoftKeyboard
talkback \
soundback \
kickback
PRODUCT_COPY_FILES := \ PRODUCT_COPY_FILES := \
development/data/etc/vold.conf:system/etc/vold.conf \ development/data/etc/vold.conf:system/etc/vold.conf \
@@ -41,6 +38,9 @@ PRODUCT_BRAND := generic
PRODUCT_NAME := sdk PRODUCT_NAME := sdk
PRODUCT_DEVICE := generic PRODUCT_DEVICE := generic
PRODUCT_LOCALES := \ PRODUCT_LOCALES := \
ldpi \
hdpi \
mdpi \
en_US \ en_US \
en_GB \ en_GB \
en_CA \ en_CA \

View File

@@ -62,10 +62,10 @@
<p>The Android NDK is a companion tool to the Android SDK that lets Android <p>The Android NDK is a companion tool to the Android SDK that lets Android
application developers build performance-critical portions of their apps in application developers build performance-critical portions of their apps in
native code. It is designed for use <em>only</em> in conjunction with the native code. It is designed for use <em>only</em> in conjunction with the
Android SDK, so if you have not already installed the Android 1.5 SDK, please do Android SDK, so if you have not already installed the latest Android SDK, please
so before downloading the NDK. Also, please read <a href="#overview">What is the do so before downloading the NDK. Also, please read <a href="#overview">What is
Android NDK?</a> to get an understanding of what the NDK offers and whether it the Android NDK?</a> to get an understanding of what the NDK offers and whether
will be useful to you.</p> it will be useful to you.</p>
<p>Select the download package that is appropriate for your development <p>Select the download package that is appropriate for your development
computer. </p> computer. </p>

View File

@@ -98,8 +98,8 @@ def:short_descr(obj) ?><?cs
<?cs # Show the red box with the deprecated warning ?><?cs <?cs # Show the red box with the deprecated warning ?><?cs
def:deprecated_warning(obj) ?><?cs def:deprecated_warning(obj) ?><?cs
if:subcount(obj.deprecated) ?><p> if:subcount(obj.deprecated) ?><p>
<p class="warning jd-deprecated-warning"> <p class="caution">
<strong><?cs call:deprecated_text(obj.kind) ?></strong><?cs <strong><?cs call:deprecated_text(obj.kind) ?></strong><br/> <?cs
call:tag_list(obj.deprecated) ?> call:tag_list(obj.deprecated) ?>
</p><?cs </p><?cs
/if ?><?cs /if ?><?cs

View File

@@ -440,7 +440,7 @@ class DeviceSpecificParams(object):
if self.module is None: if self.module is None:
path = OPTIONS.device_specific path = OPTIONS.device_specific
if path is None: return if not path: return
try: try:
if os.path.isdir(path): if os.path.isdir(path):
info = imp.find_module("releasetools", [path]) info = imp.find_module("releasetools", [path])

View File

@@ -57,6 +57,7 @@ if sys.hexversion < 0x02040000:
sys.exit(1) sys.exit(1)
import copy import copy
import errno
import os import os
import re import re
import sha import sha
@@ -855,6 +856,23 @@ def main(argv):
print "unzipping target target-files..." print "unzipping target target-files..."
OPTIONS.input_tmp = common.UnzipTemp(args[0]) OPTIONS.input_tmp = common.UnzipTemp(args[0])
if OPTIONS.device_specific is None:
# look for the device-specific tools extension location in the input
try:
f = open(os.path.join(OPTIONS.input_tmp, "META", "tool-extensions.txt"))
ds = f.read().strip()
f.close()
if ds:
ds = os.path.normpath(ds)
print "using device-specific extensions in", ds
OPTIONS.device_specific = ds
except IOError, e:
if e.errno == errno.ENOENT:
# nothing specified in the file
pass
else:
raise
common.LoadMaxSizes() common.LoadMaxSizes()
if not OPTIONS.max_image_size: if not OPTIONS.max_image_size:
print print