forked from ius/android_device_alcatel_cocktail
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
428776e
commit e3566e2
Showing
74 changed files
with
9,712 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE),cocktail) | ||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,3 @@ LOCAL_PATH := $(call my-dir) | |
|
||
include $(CLEAR_VARS) | ||
|
||
ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/device_cocktail.mk | ||
$(LOCAL_DIR)/full_cocktail.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
TARGET_SPECIFIC_HEADER_PATH := device/alcatel/cocktail/include | ||
# | ||
# Board & CPU | ||
# | ||
TARGET_BOARD_PLATFORM := msm7x30 | ||
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200 | ||
|
||
# TARGET_ARCH_VARIANT_CPU := cortex-a9 | ||
TARGET_CPU_ABI := armeabi-v7a | ||
TARGET_CPU_ABI2 := armeabi | ||
|
||
# Enable NEON feature | ||
TARGET_ARCH := arm | ||
TARGET_ARCH_VARIANT := armv7-a-neon | ||
ARCH_ARM_HAVE_TLS_REGISTER := true | ||
TARGET_USE_SCORPION_BIONIC_OPTIMIZATION := true | ||
TARGET_USE_SCORPION_PLD_SET := true | ||
TARGET_SCORPION_BIONIC_PLDOFFS := 6 | ||
TARGET_SCORPION_BIONIC_PLDSIZE := 128 | ||
ARCH_ARM_HAVE_VFP := true | ||
# TARGET_HAVE_TSLIB := true | ||
# BOARD_USE_LEGACY_TOUCHSCREEN := true | ||
TARGET_NO_BOOTLOADER := true | ||
|
||
#flag | ||
TARGET_GLOBAL_CFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp | ||
TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp | ||
|
||
# | ||
# Kernel/bootimg | ||
# | ||
BOARD_KERNEL_CMDLINE := console=ttyDCC0 androidboot.hardware=cocktail | ||
BOARD_KERNEL_BASE := 0x00200000 | ||
BOARD_KERNEL_PAGESIZE := 4096 | ||
BOARD_FORCE_RAMDISK_ADDRESS := 0x01300000 | ||
BOARD_FLASH_BLOCK_SIZE := 1 | ||
|
||
# | ||
# Partition sizes | ||
# | ||
# XXX - this has an extra zero appended to be able to build recovery | ||
# We can only fit the kernel if it's stripped down and LZMA-compressed.. | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
BOARD_BOOTIMAGE_PARTITION_SIZE := 5242880 | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 52428800 | ||
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 262144000 | ||
BOARD_USERDATAIMAGE_PARTITION_SIZE := 10643046404 | ||
# BOARD_CACHEIMAGE_PARTITION_SIZE := 206359756 | ||
BOARD_FLASH_BLOCK_SIZE := 4096 | ||
|
||
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true | ||
|
||
# Recovery | ||
# | ||
BOARD_HAS_NO_SELECT_BUTTON := true | ||
BOARD_RECOVERY_NO_FLASH := true | ||
|
||
TARGET_PREBUILT_KERNEL := device/alcatel/cocktail/kernel | ||
TARGET_RECOVERY_INITRC := device/alcatel/cocktail/init.recovery.rc | ||
# TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := device/alcatel/cocktail/releasetools/ota_from_target_files | ||
|
||
|
||
# | ||
# Misc | ||
# | ||
BOARD_EGL_CFG := device/alcatel/cocktail/egl.cfg | ||
|
||
# FM Radio | ||
BOARD_HAVE_FM_RADIO := true | ||
BOARD_FM_DEVICE := bcm4330 | ||
BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO | ||
|
||
|
||
# camera | ||
CAMERA_USES_SURFACEFLINGER_CLIENT_STUB := true | ||
COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB -DNO_UPDATE_PREVIEW | ||
BOARD_NEEDS_MEMORYHEAPPMEM = true | ||
TARGET_DISABLE_ARM_PIE := true | ||
BOARD_CAMERA_USE_MM_HEAP := true | ||
|
||
# Avoid webkit rendering bug | ||
TARGET_FORCE_CPU_UPLOAD := true | ||
ENABLE_WEBGL := true | ||
SOMC_CFG_DASH_INCLUDED := yes | ||
|
||
# Boot animation speedup | ||
TARGET_BOOTANIMATION_PRELOAD := true | ||
TARGET_BOOTANIMATION_TEXTURE_CACHE := true | ||
|
||
|
||
|
||
# | ||
# Qualcomm stuff | ||
# | ||
BOARD_USES_QCOM_HARDWARE := true | ||
BOARD_USES_QCOM_GPS := true | ||
BOARD_USES_QCOM_LIBS := true | ||
BOARD_USES_QCOM_LIBRPC := true | ||
BOARD_HAVE_QCOM_FM := true | ||
TARGET_QCOM_HDMI_OUT := true | ||
TARGET_QCOM_HDMI_RESOLUTION_AUTO := true | ||
TARGET_USES_OVERLAY := false | ||
TARGET_USES_C2D_COMPOSITION := true | ||
USE_OPENGL_RENDERER := true | ||
TARGET_NO_HW_VSYNC := true | ||
TARGET_FORCE_CPU_UPLOAD := true | ||
|
||
BOARD_MOBILEDATA_INTERFACE_NAME = "rmnet0" | ||
|
||
BOARD_VENDOR_QCOM_AMSS_VERSION := 6225 | ||
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := cocktail | ||
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000 | ||
|
||
# Legacy | ||
COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB -DQCOM_NO_SECURE_PLAYBACK -DNO_UPDATE_PREVIEW | ||
COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DREFRESH_RATE=60 -DQCOM_FM_ENABLED -DSEMC_RGBA_8888_OFFSET | ||
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT | ||
BOARD_NEEDS_MEMORYHEAPPMEM := true | ||
|
||
# | ||
# WiFi | ||
# | ||
WPA_SUPPLICANT_VERSION := VER_0_8_X | ||
BOARD_WPA_SUPPLICANT_DRIVER := NL80211 | ||
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd | ||
BOARD_HOSTAPD_DRIVER := NL80211 | ||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd | ||
BOARD_WLAN_DEVICE := bcmdhd | ||
BOARD_WLAN_DEVICE_REV := bcm4330_b2 | ||
WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" | ||
WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcmdhd.bin" | ||
WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcmdhd_apsta.bin" | ||
WIFI_DRIVER_FW_PATH_P2P := "/system/etc/firmware/fw_bcmdhd_p2p.bin" | ||
|
||
# | ||
# Bluetooth | ||
# | ||
BOARD_HAVE_BLUETOOTH := true | ||
BOARD_HAVE_BLUETOOTH_BCM := true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<operatorPolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="OperatorPolicy.xsd"> | ||
<rolesList> | ||
<role id="9"> <!-- role 9 is for FMC - will revisit after talking with Google --> | ||
<rolePriority>2</rolePriority> | ||
<OpMode><!-- By default, use these settings --> | ||
<RATPreference> | ||
<RAT Pri="1">WWAN</RAT> | ||
</RATPreference> | ||
<!-- Other requirements/preferences/constraints --> | ||
</OpMode> | ||
</role> | ||
<role id="1001"> <!-- role 1001 is for QOS VIDEO TELEPHONY, will revisit after talking with Google --> | ||
<rolePriority>2</rolePriority> | ||
<OpMode><!-- By default, use these settings --> | ||
<RATPreference> | ||
<RAT Pri="1">WWAN</RAT> | ||
</RATPreference> | ||
<!-- Other requirements/preferences/constraints --> | ||
</OpMode> | ||
</role> | ||
<role id="0"><!-- "Legacy" or "Default" setting for any roles not matching above --> | ||
<rolePriority>20</rolePriority> | ||
<OpMode><!-- By default, use these settings --> | ||
<RATPreference> | ||
<RAT Pri="1">WLAN</RAT> | ||
<RAT Pri="2">WWAN</RAT> | ||
</RATPreference> | ||
<!-- Other requirements/preferences/constraints --> | ||
</OpMode> | ||
</role> | ||
</rolesList> | ||
<MSS> | ||
</MSS> | ||
<constraints><!-- constraints that do not specify conditions for each role --> | ||
<batteryConstraint> | ||
<BatteryLevel>Low</BatteryLevel> | ||
<MaxONRATs>-1</MaxONRATs> | ||
</batteryConstraint> | ||
<batteryConstraint> | ||
<BatteryLevel>Medium</BatteryLevel> | ||
<MaxONRATs>-1</MaxONRATs> | ||
</batteryConstraint> | ||
<batteryConstraint> | ||
<BatteryLevel>High</BatteryLevel> | ||
<MaxONRATs>-1</MaxONRATs><!-- -1 means unbounded --> | ||
</batteryConstraint> | ||
<!-- other constraints eg:locationConstraint, etc. --> | ||
</constraints> | ||
<!-- this pref order will be used to bring down the rats, | ||
if conditions arise to bring down a rat. If "NONE" and | ||
"ANY" are used the behaviour will be unexpected --> | ||
<RATBringDownPref> | ||
<RAT Pri="1">WLAN</RAT> | ||
<RAT Pri="2">WWAN</RAT> | ||
</RATBringDownPref> | ||
</operatorPolicy> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<userPolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="UserPolicy.xsd"> | ||
<RATPreference> | ||
<RAT Pri="1">ANY</RAT> | ||
</RATPreference> | ||
<constraints><!-- constraints that do not specify conditions for each role --> | ||
<batteryConstraint> | ||
<BatteryLevel>Low</BatteryLevel> | ||
<MaxONRATs>2</MaxONRATs><!-- default value is 1 --> | ||
</batteryConstraint> | ||
<batteryConstraint> | ||
<BatteryLevel>Medium</BatteryLevel> | ||
<MaxONRATs>4</MaxONRATs><!-- default value is 2 --> | ||
</batteryConstraint> | ||
<batteryConstraint> | ||
<BatteryLevel>High</BatteryLevel> | ||
<MaxONRATs>-1</MaxONRATs><!--default value is -1 means unbounded --> | ||
</batteryConstraint> | ||
<!-- other constraints eg:locationConstraint, etc. --> | ||
</constraints> | ||
</userPolicy> | ||
|
Oops, something went wrong.