Permalink
Browse files

Initial Commit of Espresso Device for FroYo

  • Loading branch information...
0 parents commit ba8d4447bbf8a745c62e56b58b3b4baec41f09b2 @wesgarner wesgarner committed Jul 1, 2010
Showing with 2,133 additions and 0 deletions.
  1. +35 −0 AndroidBoard.mk
  2. +21 −0 AndroidProducts.mk
  3. +82 −0 BoardConfig.mk
  4. +49 −0 CleanSpec.mk
  5. +33 −0 egl.cfg
  6. +125 −0 espresso.mk
  7. +127 −0 extract-files.sh
  8. +11 −0 gps.conf
  9. +122 −0 init.espresso.rc
  10. BIN kernel
  11. +9 −0 keypad/h2w_headset.kl
  12. BIN keypad/latte-keypad-v0.kcm.bin
  13. +115 −0 keypad/latte-keypad-v0.kl
  14. BIN keypad/latte-keypad-v1.kcm.bin
  15. +115 −0 keypad/latte-keypad-v1.kl
  16. BIN keypad/latte-keypad-v2.kcm.bin
  17. +115 −0 keypad/latte-keypad-v2.kl
  18. BIN keypad/qwerty.kcm.bin
  19. +89 −0 keypad/qwerty.kl
  20. BIN keypad/qwerty2.kcm.bin
  21. +30 −0 media_a1026.mk
  22. +159 −0 media_profiles.xml
  23. +150 −0 overlay/frameworks/base/core/res/res/values/config.xml
  24. +58 −0 overlay/frameworks/base/core/res/res/xml/power_profile.xml
  25. +22 −0 overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
  26. +21 −0 overlay/frameworks/base/tests/ImfTest/res/values/config.xml
  27. +21 −0 overlay/packages/apps/Contacts/res/values/config.xml
  28. +39 −0 overlay/packages/apps/Mms/res/xml/mms_config.xml
  29. +33 −0 overlay/packages/apps/Phone/res/values/config.xml
  30. +23 −0 overlay/packages/apps/Settings/res/values/bools.xml
  31. +18 −0 recovery/Android.mk
  32. 0 recovery/MODULE_LICENSE_APACHE2
  33. +190 −0 recovery/NOTICE
  34. +18 −0 recovery/images/README
  35. +1 −0 recovery/images/bitmap_size.txt
  36. BIN recovery/images/firmware_error.565
  37. BIN recovery/images/firmware_install.565
  38. BIN recovery/images/icon_firmware_error.png
  39. BIN recovery/images/icon_firmware_install.png
  40. +74 −0 recovery/recovery_ui.c
  41. +102 −0 setup-makefiles.sh
  42. BIN tiwlan_drv.ko
  43. +85 −0 unzip-files.sh
  44. +23 −0 vendorsetup.sh
  45. +18 −0 vold.fstab
@@ -0,0 +1,35 @@
+# Copyright (C) 2009 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# AndroidBoard.mk is a legacy mechanism to deal with a few
+# edge-cases that can't be managed otherwise. No new rules
+# should be added to this file.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+# Least specific includes go first, so that they can get
+# overridden further down
+
+$(call add-radio-file,recovery/images/firmware_install.565)
+$(call add-radio-file,recovery/images/firmware_error.565)
+$(call add-radio-file,recovery/images/bitmap_size.txt)
+
+include $(CLEAR_VARS)
+
+ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)
+
+# include the non-open-source counterpart to this file
+-include vendor/htc/espresso/AndroidBoardVendor.mk
@@ -0,0 +1,21 @@
+# Copyright (C) 2009 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# This file lists the product definition files that define
+# configurations which are actually buildable (e.g. through lunch)
+#
+
+PRODUCT_MAKEFILES := \
+ $(LOCAL_DIR)/espresso.mk
@@ -0,0 +1,82 @@
+# Copyright (C) 2009 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# config.mk
+#
+# Product-specific compile-time definitions.
+#
+
+# WARNING: This line must come *before* including the proprietary
+# variant, so that it gets overwritten by the parent (which goes
+# against the traditional rules of inheritance).
+
+USE_CAMERA_STUB := true
+
+# inherit from the proprietary version
+-include vendor/htc/espresso/BoardConfigVendor.mk
+
+TARGET_NO_BOOTLOADER := true
+
+TARGET_BOARD_PLATFORM := msm7k
+TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
+
+# ARMv6-compatible processor rev 5 (v6l)
+TARGET_CPU_ABI := armeabi-v6l
+TARGET_CPU_ABI2 := armeabi
+
+TARGET_BOOTLOADER_BOARD_NAME := espresso
+
+# Wifi related defines
+BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM
+BOARD_WPA_SUPPLICANT_PRIVATE_LIB := libCustomWifi
+BOARD_WLAN_DEVICE := tiwlan0
+BOARD_WLAN_TI_STA_DK_ROOT := system/wlan/ti/wilink_6_1
+WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/tiwlan_drv.ko"
+WIFI_DRIVER_MODULE_ARG := ""
+WIFI_DRIVER_MODULE_NAME := "tiwlan_drv"
+WIFI_FIRMWARE_LOADER := "wlan_loader"
+
+BOARD_USES_GENERIC_AUDIO := false
+
+BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null
+BOARD_KERNEL_BASE := 0x12c00000
+
+BOARD_HAVE_BLUETOOTH := true
+
+BOARD_EGL_CFG := device/htc/espressso/egl.cfg
+
+BOARD_VENDOR_USE_AKMD := akm8973
+
+BOARD_VENDOR_QCOM_AMSS_VERSION := 4735
+
+# # cat /proc/mtd
+# dev: size erasesize name
+# mtd0: 000a0000 00020000 "misc"
+# mtd1: 00420000 00020000 "recovery"
+# mtd2: 002c0000 00020000 "boot"
+# mtd3: 0f000000 00020000 "system"
+# mtd4: 05000000 00020000 "cache"
+# mtd5: 09120000 00020000 "userdata"
+BOARD_BOOTIMAGE_PARTITION_SIZE := 002c0000
+BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00420000
+BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x0f000000
+BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x01920000
+# The size of a block that can be marked bad.
+BOARD_FLASH_BLOCK_SIZE := 131072
+
+TARGET_RECOVERY_UI_LIB := librecovery_ui_espresso librecovery_ui_generic
+
+TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_htc
+
+TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
@@ -0,0 +1,49 @@
+# Copyright (C) 2007 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# If you don't need to do a full clean build but would like to touch
+# a file or delete some intermediate files, add a clean step to the end
+# of the list. These steps will only be run once, if they haven't been
+# run before.
+#
+# E.g.:
+# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
+# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
+#
+# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
+# files that are missing or have been moved.
+#
+# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
+# Use $(OUT_DIR) to refer to the "out" directory.
+#
+# If you need to re-do something that's already mentioned, just copy
+# the command and add it to the bottom of the list. E.g., if a change
+# that you made last week required touching a file and a change you
+# made today requires touching the same file, just copy the old
+# touch step and add it to the end of the list.
+#
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
+
+# For example:
+#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
+#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
+#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
+#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
+
+# ************************************************
+# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
+# ************************************************
33 egl.cfg
@@ -0,0 +1,33 @@
+#
+# Copyright (C) 2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# One line per configuration, of the form:
+#
+# D I TAG
+#
+# D: display (0: default)
+# I: implementation (0: software, 1: hardware)
+# TAG: a unique tag
+#
+# The library name loaded by EGL is constructed as (in that order):
+#
+# /system/lib/egl/libGLES_$TAG.so
+# /system/lib/egl/lib{EGL|GLESv1_CM|GLESv2}_$TAG.so
+#
+
+
+0 0 android
+0 1 adreno200
@@ -0,0 +1,125 @@
+#
+# Copyright (C) 2009 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+#
+# This is the product configuration for a generic GSM espresso,
+# not specialized for any geography.
+#
+
+$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
+
+## (1) First, the most specific values, i.e. the aspects that are specific to GSM
+
+PRODUCT_COPY_FILES += \
+ device/htc/espresso/init.espresso.rc:root/init.espresso.rc
+
+PRODUCT_PROPERTY_OVERRIDES += \
+ rild.libpath=/system/lib/libhtc_ril.so \
+ ro.ril.gprsclass = 12 \
+ ro.ril.enable.dtm=0 \
+ ro.ril.hsdpa.category=8 \
+ ro.ril.hsupa.category=5 \
+ ro.ril.hsxpa=2 \
+ ro.ril.disable.fd.plmn.prefix=23402,23410,23411 \
+ wifi.interface = tiwlan0 \
+ wifi.supplicant_scan_interval = 15 \
+ ro.sf.lcd_density = 160
+
+# Default network type.
+# 0 => WCDMA preferred.
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.telephony.default_network=0
+
+# For the agps default value
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.ril.def.agps.mode = 1 \
+ ro.ril.def.agps.feature=1
+
+# For 7227 projects, default enable AMR-Wideband
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.ril.enable.amr.wideband = 1
+
+# For emmc phone storage
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.phone_storage = 0
+
+## (2) Also get non-open-source GSM-specific aspects if available
+$(call inherit-product-if-exists, vendor/htc/espresso/espresso-vendor.mk)
+
+## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.com.android.wifi-watchlist=GoogleGuest \
+ ro.error.receiver.system.apps=com.google.android.feedback \
+ ro.setupwizard.enterprise_mode=1 \
+ ro.com.google.clientidbase=android-tmobile-{country} \
+ ro.com.google.locationfeatures=1 \
+ ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
+ ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
+ ro.setupwizard.mode=OPTIONAL \
+ ro.setupwizard.enable_bypass=1 \
+ ro.media.dec.aud.wma.enabled=1 \
+ ro.media.dec.vid.wmv.enabled=1 \
+ dalvik.vm.dexopt-flags=m=y \
+ net.bt.name=Android \
+ ro.config.sync=yes \
+ dalvik.vm.stack-trace-file=/data/anr/traces.txt
+
+DEVICE_PACKAGE_OVERLAYS += device/htc/espresso/overlay
+
+PRODUCT_COPY_FILES += \
+ frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
+ frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
+ frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
+ frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
+ frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
+ frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
+ frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
+ frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml
+
+PRODUCT_PACKAGES += \
+ librs_jni
+
+PRODUCT_COPY_FILES += \
+ device/htc/espresso/vold.fstab:system/etc/vold.fstab
+
+# The gps config appropriate for this device
+PRODUCT_COPY_FILES += \
+ device/htc/espresso/gps.conf:system/etc/gps.conf
+
+PRODUCT_COPY_FILES += \
+ device/htc/espresso/tiwlan_drv.ko:system/lib/modules/tiwlan_drv.ko
+
+ifeq ($(TARGET_PREBUILT_KERNEL),)
+LOCAL_KERNEL := device/htc/espresso/kernel
+else
+LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
+endif
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_KERNEL):kernel
+
+$(call inherit-product-if-exists, vendor/htc/espresso/espresso-vendor.mk)
+
+# media profiles and capabilities spec
+PRODUCT_COPY_FILES += \
+ device/htc/espresso/media_profiles.xml:system/etc/media_profiles.xml
+$(call inherit-product, device/htc/espresso/media_a1026.mk)
+
+# stuff common to all HTC phones
+$(call inherit-product, device/htc/common/common.mk)
+
+PRODUCT_NAME := generic_espresso
+PRODUCT_DEVICE := espresso
Oops, something went wrong.

0 comments on commit ba8d444

Please sign in to comment.