Permalink
Browse files

ICS imports from htc legend tree

  • Loading branch information...
1 parent 972e20c commit ee021c449873c2237e0aaf29e1adb5ce0da2487d @zeubea committed Jun 4, 2012
Showing with 9,417 additions and 1,110 deletions.
  1. +1 −1 .gitignore
  2. +0 −1 AndroidBoard.mk
  3. +57 −31 BoardConfig.mk
  4. +105 −0 BoardConfig.mk.gb
  5. +1 −1 README
  6. +24 −0 camera/Android.mk
  7. +242 −0 camera/CameraHardwareInterface.h
  8. +1 −0 camera/README
  9. +830 −0 camera/cameraHal.cpp
  10. BIN camera/libcamera-nexus.so
  11. +39 −0 cm.mk
  12. +156 −78 espresso.mk
  13. +168 −0 espresso.mk.gb
  14. +0 −104 extract-files.sh
  15. +66 −0 include/linux/android_pmem.h
  16. +47 −0 include/linux/ashmem.h
  17. +42 −0 include/linux/genlock.h
  18. +213 −0 include/linux/msm_mdp.h
  19. +84 −0 include/linux/msm_rotator.h
  20. +122 −40 init.latte.rc
  21. +101 −0 init.latte.rc.gb
  22. +44 −0 init.latte.usb.rc
  23. +54 −0 init.recovery.rc
  24. +247 −0 latte.mk
  25. +54 −0 libaudio/Android.mk
  26. +1,136 −0 libaudio/AudioHardware.cpp
  27. +276 −0 libaudio/AudioHardware.h
  28. +240 −0 libaudio/AudioPolicyManager.cpp
  29. +49 −0 libaudio/AudioPolicyManager.h
  30. 0 libaudio/MODULE_LICENSE_APACHE2
  31. +190 −0 libaudio/NOTICE
  32. +2 −2 liblights/Android.mk
  33. +1 −1 liblights/NOTICE
  34. +237 −321 liblights/lights.c
  35. +38 −0 librpc-qcom/Android.mk
  36. 0 librpc-qcom/MODULE_LICENSE_APACHE2
  37. +193 −0 librpc-qcom/NOTICE
  38. +756 −0 librpc-qcom/clnt.c
  39. +66 −0 librpc-qcom/debug.h
  40. +28 −0 librpc-qcom/librpc.h
  41. +96 −0 librpc-qcom/ops.c
  42. +156 −0 librpc-qcom/rpc.c
  43. +224 −0 librpc-qcom/rpc/clnt.h
  44. +53 −0 librpc-qcom/rpc/pmap_clnt.h
  45. +53 −0 librpc-qcom/rpc/rpc.h
  46. +45 −0 librpc-qcom/rpc/rpc_router_ioctl.h
  47. +220 −0 librpc-qcom/rpc/svc.h
  48. +437 −0 librpc-qcom/rpc/types.h
  49. +115 −0 librpc-qcom/rpc/xdr.h
  50. +577 −0 librpc-qcom/svc.c
  51. +324 −0 librpc-qcom/svc_clnt_common.c
  52. +528 −0 librpc-qcom/xdr.c
  53. +2 −3 libsensors/Android.mk
  54. +1 −1 libsensors/sensors.c
  55. +0 −173 overlay/frameworks/base/core/res/res/values/config.xml
  56. +0 −58 overlay/frameworks/base/core/res/res/xml/power_profile.xml
  57. +0 −22 overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
  58. +0 −21 overlay/frameworks/base/tests/ImfTest/res/values/config.xml
  59. +0 −25 overlay/packages/apps/Camera/res/values/config.xml
  60. +0 −21 overlay/packages/apps/Contacts/res/values/config.xml
  61. +0 −39 overlay/packages/apps/Mms/res/xml/mms_config.xml
  62. +0 −33 overlay/packages/apps/Phone/res/values/config.xml
  63. +0 −23 overlay/packages/apps/Settings/res/values/bools.xml
  64. +33 −0 prebuilt/egl.cfg
  65. BIN prebuilt/etc/firmware/a225_pfp.fw
  66. BIN prebuilt/etc/firmware/a225_pm4.fw
  67. BIN prebuilt/etc/firmware/a225p5_pm4.fw
  68. BIN prebuilt/etc/firmware/a300_pfp.fw
  69. BIN prebuilt/etc/firmware/a300_pm4.fw
  70. BIN prebuilt/etc/firmware/leia_pfp_470.fw
  71. BIN prebuilt/etc/firmware/leia_pm4_470.fw
  72. BIN prebuilt/etc/firmware/yamato_pfp.fw
  73. BIN prebuilt/etc/firmware/yamato_pm4.fw
  74. +5 −0 prebuilt/etc/fstab
  75. +6 −0 prebuilt/etc/gps.conf
  76. +55 −0 prebuilt/etc/init.d/05mountsd
  77. +202 −0 prebuilt/etc/media_profiles.xml
  78. +3 −0 prebuilt/etc/pvasflocal.cfg
  79. +1 −0 prebuilt/etc/vold.fstab
  80. BIN prebuilt/gan-eth.ko
  81. 0 {keylayout → prebuilt}/h2w_headset.kl
  82. +183 −0 prebuilt/init.latte.rc
  83. +44 −0 prebuilt/init.latte.usb.rc
  84. BIN prebuilt/kernel
  85. +2 −0 prebuilt/lib/egl/egl.cfg
  86. BIN prebuilt/lib/egl/eglsubAndroid.so
  87. BIN prebuilt/lib/egl/libEGL_adreno200.so
  88. BIN prebuilt/lib/egl/libGLES_android.so
  89. BIN prebuilt/lib/egl/libGLESv1_CM_adreno200.so
  90. BIN prebuilt/lib/egl/libGLESv2_adreno200.so
  91. BIN prebuilt/lib/egl/libq3dtools_adreno200.so
  92. BIN prebuilt/lib/libC2D2.so
  93. BIN prebuilt/lib/libOpenVG.so
  94. BIN prebuilt/lib/libcamera.so
  95. BIN prebuilt/{ → lib}/libcryp98.so
  96. BIN prebuilt/lib/libgsl.so
  97. BIN prebuilt/lib/libsc-a2xx.so
  98. BIN prebuilt/modules/sdio.ko
  99. BIN prebuilt/modules/tiap_drv.ko
  100. BIN prebuilt/modules/tiwlan_drv.ko
  101. BIN prebuilt/sdio.ko
  102. BIN prebuilt/tiap_drv.ko
  103. BIN prebuilt/tiwlan_drv.ko
  104. +6 −0 prebuilt/ueventd.latte.rc
  105. +7 −0 prebuilt/usr/idc/atmel-touchscreen.idc
  106. +4 −0 prebuilt/usr/idc/curcial-oj.idc
  107. +64 −0 prebuilt/usr/idc/synaptics-rmi-touchscreen.idc
  108. BIN { → prebuilt/usr}/keychars/latte-keypad-v0.kcm.bin
  109. BIN { → prebuilt/usr}/keychars/latte-keypad-v1.kcm.bin
  110. BIN { → prebuilt/usr}/keychars/latte-keypad-v2.kcm.bin
  111. BIN { → prebuilt/usr}/keychars/qwerty.kcm.bin
  112. BIN { → prebuilt/usr}/keychars/qwerty2.kcm.bin
  113. 0 { → prebuilt/usr}/keylayout/curcial-oj.kl
  114. +9 −0 prebuilt/usr/keylayout/h2w_headset.kl
  115. 0 { → prebuilt/usr}/keylayout/latte-keypad-v0.kl
  116. 0 { → prebuilt/usr}/keylayout/latte-keypad-v1.kl
  117. 0 { → prebuilt/usr}/keylayout/latte-keypad-v2.kl
  118. 0 { → prebuilt/usr}/keylayout/qwerty.kl
  119. +9 −9 recovery.fstab
  120. +3 −0 recovery/Android.mk
  121. +39 −0 recovery/offmode/Android.mk
  122. BIN recovery/offmode/choice_fn
  123. BIN recovery/offmode/detect_key
  124. BIN recovery/offmode/offmode_charging
  125. BIN recovery/offmode/power_test
  126. BIN recovery/res/offmode_charging_images/battery_error.png
  127. BIN recovery/res/offmode_charging_images/charging_full_00031.png
  128. BIN recovery/res/offmode_charging_images/charging_full_00035.png
  129. BIN recovery/res/offmode_charging_images/charging_full_00041.png
  130. BIN recovery/res/offmode_charging_images/charging_full_00043.png
  131. BIN recovery/res/offmode_charging_images/charging_full_00047.png
  132. BIN recovery/res/offmode_charging_images/charging_full_00049.png
  133. BIN recovery/res/offmode_charging_images/charging_full_00053.png
  134. BIN recovery/res/offmode_charging_images/charging_full_00055.png
  135. BIN recovery/res/offmode_charging_images/charging_full_00059.png
  136. BIN recovery/res/offmode_charging_images/charging_full_00061.png
  137. BIN recovery/res/offmode_charging_images/charging_full_00065.png
  138. BIN recovery/res/offmode_charging_images/charging_full_00067.png
  139. BIN recovery/res/offmode_charging_images/charging_full_00071.png
  140. BIN recovery/res/offmode_charging_images/charging_full_00073.png
  141. BIN recovery/res/offmode_charging_images/charging_full_00077.png
  142. BIN recovery/res/offmode_charging_images/charging_full_00079.png
  143. BIN recovery/res/offmode_charging_images/charging_full_00083.png
  144. BIN recovery/res/offmode_charging_images/charging_full_00085.png
  145. BIN recovery/res/offmode_charging_images/charging_full_00089.png
  146. BIN recovery/res/offmode_charging_images/charging_full_00091.png
  147. BIN recovery/res/offmode_charging_images/charging_full_00095.png
  148. BIN recovery/res/offmode_charging_images/charging_full_00099.png
  149. +0 −100 setup-makefiles.sh
  150. +1 −2 vendorsetup.sh
View
@@ -1 +1 @@
-proprietary/
+proprietary
View
@@ -22,7 +22,6 @@ LOCAL_PATH := $(call my-dir)
# Least specific includes go first, so that they can get
# overridden further down
-
include $(CLEAR_VARS)
# include the non-open-source counterpart to this file
View
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 The Android Open Source Project
+# 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.
@@ -12,78 +12,78 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# config.mk
#
-# Product-specific compile-time definitions.
+# This file sets variables that control the way modules are built
+# thorughout the system. It should not be used to conditionally
+# disable makefiles (the proper mechanism to control what gets
+# included in a build is to use PRODUCT_PACKAGES in a product
+# definition file).
#
# 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
+USE_CAMERA_STUB := false
+BOARD_USE_FROYO_LIBCAMERA := true
+JS_ENGINE:=v8
# inherit from the proprietary version
-include vendor/htc/espresso/BoardConfigVendor.mk
+TARGET_SPECIFIC_HEADER_PATH := device/htc/espresso/include
TARGET_NO_BOOTLOADER := true
+TARGET_NO_RADIOIMAGE := true
-TARGET_BOARD_PLATFORM := msm7k
+TARGET_BOARD_PLATFORM := msm7x27
+TARGET_ARCH := arm
+TARGET_ARCH_VARIANT := armv6-vfp
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
-# ARMv6-compatible processor rev 5 (v6l)
TARGET_CPU_ABI := armeabi-v6l
TARGET_CPU_ABI2 := armeabi
-TARGET_ARCH_VARIANT := armv6-vfp
-JS_ENGINE := v8
TARGET_BOOTLOADER_BOARD_NAME := latte
-
TARGET_PROVIDES_INIT_TARGET_RC := true
TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true
-# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM
-BOARD_WLAN_DEVICE := wl1271
-BOARD_SOFTAP_DEVICE := wl1271
-WPA_SUPPLICANT_VERSION := VER_0_6_X
-WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/tiwlan_drv.ko"
-WIFI_DRIVER_MODULE_ARG := ""
-WIFI_DRIVER_MODULE_NAME := "tiwlan_drv"
-WIFI_EXT_MODULE_PATH := "/system/lib/modules/sdio.ko"
-WIFI_EXT_MODULE_NAME := "sdio"
-WIFI_FIRMWARE_LOADER := "wlan_loader"
+BOARD_WLAN_DEVICE := wl1271
+BOARD_SOFTAP_DEVICE := wl1271
+WPA_SUPPLICANT_VERSION := VER_0_6_X
+WIFI_DRIVER_MODULE_PATH := /system/lib/modules/tiwlan_drv.ko
+WIFI_DRIVER_MODULE_NAME := tiwlan_drv
+WIFI_FIRMWARE_LOADER := wlan_loader
+WIFI_EXT_MODULE_PATH := /system/lib/modules/sdio.ko
+WIFI_EXT_MODULE_NAME := sdio
BOARD_USES_GENERIC_AUDIO := false
-
BOARD_KERNEL_CMDLINE := no_console_suspend=1 console=null
BOARD_KERNEL_BASE := 0x12c00000
BOARD_HAVE_BLUETOOTH := true
+BOARD_HAVE_FM_RADIO := true
+BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
-BOARD_EGL_CFG := device/htc/espresso/egl.cfg
+BOARD_VENDOR_QCOM_AMSS_VERSION := 4735
BOARD_VENDOR_USE_AKMD := akm8973
-BOARD_VENDOR_QCOM_AMSS_VERSION := 4735
+BOARD_EGL_CFG := device/htc/espresso/prebuilt/egl.cfg
-BOARD_USES_QCOM_LIBS := true
+BOARD_USE_NASTY_PTHREAD_CREATE_HACK := true
-BOARD_NO_RGBX_8888 := true
+BOARD_USE_NEW_LIBRIL_HTC := true
-BOARD_USE_NASTY_PTHREAD_CREATE_HACK=true
+BOARD_NO_RGBX_8888 := true
-BOARD_USE_FROYO_LIBCAMERA := true
-BOARD_USES_QCOM_LIBRPC := true
BOARD_USES_QCOM_GPS := true
-BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 20000
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := latte
+BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 20000
+BOARD_USES_QCOM_LIBRPC := true
-BOARD_USE_KINETO_COMPATIBILITY := true
-BOARD_USE_NEW_LIBRIL_HTC := true
# # cat /proc/mtd
# dev: size erasesize name
@@ -103,3 +103,29 @@ BOARD_FLASH_BLOCK_SIZE := 131072
TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
TARGET_PREBUILT_KERNEL := device/htc/espresso/prebuilt/kernel
LOCAL_KERNEL := device/htc/espresso/prebuilt/kernel
+
+
+TARGET_RECOVERY_INITRC := device/htc/espresso/init.recovery.rc
+BOARD_HAS_NO_SELECT_BUTTON := true
+
+BOARD_USE_USB_MASS_STORAGE_SWITCH := true
+BOARD_UMS_LUNFILE := "/sys/devices/platform/usb_mass_storage/lun0/file"
+TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/usb_mass_storage/lun0/file
+
+# Fix for Atmel touchscreens; trackball button
+BOARD_USE_LEGACY_TOUCHSCREEN := true
+BOARD_USE_LEGACY_TRACKPAD := true
+
+WITH_DEXPREOPT := true
+HTTP := chrome
+
+COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DREFRESH_RATE=60
+USE_OPENGL_RENDERER := true
+BOARD_USES_QCOM_HARDWARE := true
+BOARD_USES_QCOM_LIBS := true
+TARGET_USES_GENLOCK := true
+
+# Camera
+COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT
+
+
View
@@ -0,0 +1,105 @@
+# 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_ARCH_VARIANT := armv6-vfp
+
+JS_ENGINE := v8
+
+TARGET_BOOTLOADER_BOARD_NAME := latte
+
+TARGET_PROVIDES_INIT_TARGET_RC := true
+
+TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true
+
+# Wifi related defines
+BOARD_WPA_SUPPLICANT_DRIVER := CUSTOM
+BOARD_WLAN_DEVICE := wl1271
+BOARD_SOFTAP_DEVICE := wl1271
+WPA_SUPPLICANT_VERSION := VER_0_6_X
+WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/tiwlan_drv.ko"
+WIFI_DRIVER_MODULE_ARG := ""
+WIFI_DRIVER_MODULE_NAME := "tiwlan_drv"
+WIFI_EXT_MODULE_PATH := "/system/lib/modules/sdio.ko"
+WIFI_EXT_MODULE_NAME := "sdio"
+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/espresso/egl.cfg
+
+BOARD_VENDOR_USE_AKMD := akm8973
+
+BOARD_VENDOR_QCOM_AMSS_VERSION := 4735
+
+BOARD_USES_QCOM_LIBS := true
+
+BOARD_NO_RGBX_8888 := true
+
+BOARD_USE_NASTY_PTHREAD_CREATE_HACK=true
+
+BOARD_USE_FROYO_LIBCAMERA := true
+
+BOARD_USES_QCOM_LIBRPC := true
+BOARD_USES_QCOM_GPS := true
+BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 20000
+BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := latte
+
+BOARD_USE_KINETO_COMPATIBILITY := true
+BOARD_USE_NEW_LIBRIL_HTC := true
+
+# # 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 := 0x002c0000
+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_RELEASETOOLS_EXTENSIONS := device/htc/common
+TARGET_PREBUILT_KERNEL := device/htc/espresso/prebuilt/kernel
+LOCAL_KERNEL := device/htc/espresso/prebuilt/kernel
View
@@ -1,4 +1,4 @@
-Device configuration for the HTC Espresso (aka T-Mobile MyTouch Slide)
+Device configuration for the HTC Legend
Copyright (C) 2011 The CyanogenMod Project
View
@@ -0,0 +1,24 @@
+LOCAL_PATH := $(call my-dir)
+LIBCAMERA_BUILD :=
+include $(call all-subdir-makefiles)
+
+include $(CLEAR_VARS)
+
+LOCAL_C_FLAGS += -O3
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
+LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
+LOCAL_SRC_FILES := cameraHal.cpp
+LOCAL_PRELINK_MODULE := false
+CAMERA_LIB := camera
+
+ifeq ($(LIBCAMERA_BUILD),nexus)
+CAMERA_LIB := camera-nexus
+endif
+
+TARGET_GLOBAL_LD_DIRS += -L$(LOCAL_PATH)
+LOCAL_SHARED_LIBRARIES := liblog libdl libutils libcamera_client libbinder libcutils libhardware libui libcamera
+LOCAL_C_INCLUDES := frameworks/base/services/ frameworks/base/include
+LOCAL_C_INCLUDES += hardware/libhardware/include/ hardware
+
+include $(BUILD_SHARED_LIBRARY)
Oops, something went wrong. Retry.

0 comments on commit ee021c4

Please sign in to comment.