Skip to content
Permalink
Browse files

blade2: preps for cm-10.1

  • Loading branch information
Dazzozo committed Dec 20, 2012
1 parent d4edf73 commit 90997e8d9c0b58180691ec0ef7d8111a94bc6224
Showing with 45 additions and 15 deletions.
  1. +3 −1 BoardConfig.mk
  2. +2 −0 CrescentParts/Android.mk
  3. +1 −4 blade2.mk
  4. +10 −0 bluetooth/libbt_vndcfg.txt
  5. +15 −0 cm.dependencies
  6. +10 −9 init.blade2.rc
  7. +4 −1 libsensors/Android.mk
  8. BIN prebuilt/gralloc.blade2.so
@@ -31,7 +31,8 @@ endif

BOARD_KERNEL_CMDLINE := androidboot.hardware=blade2 console=null

TARGET_BOOTLOADER_BOARD_NAME := blade2
TARGET_BOOTLOADER_NAME := blade2
TARGET_OTA_ASSERT_DEVICE := blade2

# Wi-Fi
BOARD_WLAN_DEVICE := bcmdhd
@@ -50,6 +51,7 @@ BOARD_USE_LEGACY_TOUCHSCREEN := true

# Bluetooth
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUEDROID_VENDOR_CONF := device/zte/blade2/bluetooth/libbt_vndcfg.txt

# dev: size erasesize name
# mtd0: 00600000 00020000 "recovery"
@@ -1,3 +1,4 @@
ifeq ($(TARGET_DEVICE),blade2)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

@@ -15,3 +16,4 @@ LOCAL_REQUIRED_MODULES := prox_cal
include $(BUILD_PACKAGE)

include $(call all-makefiles-under,$(LOCAL_PATH))
endif
@@ -22,11 +22,8 @@
#

# Inherit from those products. Most specific first.
ifneq ($(CFX_BUILD),)
$(call inherit-product, $(SRC_TARGET_DIR)/product/small_base_telephony.mk)
else
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
endif

# Inherit from blade device
$(call inherit-product, device/zte/blade2/device.mk)

@@ -0,0 +1,10 @@
BLUETOOTH_UART_DEVICE_PORT = "/dev/ttyHS0"
FW_PATCHFILE_LOCATION = "/system/bin/"
BT_WAKE_VIA_PROC = TRUE
LPM_IDLE_TIMEOUT_MULTIPLE = 5
BTVND_DBG = FALSE
BTHW_DBG = TRUE
VNDUSERIAL_DBG = FALSE
UPIO_DBG = FALSE
UART_TARGET_BAUD_RATE = 3000000
FW_PATCH_SETTLEMENT_DELAY_MS = 50
@@ -0,0 +1,15 @@
[
{
"repository": "android_kernel_zte_msm7x27",
"target_path": "kernel/zte/msm7x27",
"branch": "cm-10.1"
}, {
"repository": "android_device_zte_msm7x27-common",
"target_path": "device/zte/msm7x27-common",
"branch": "cm-10.1"
}, {
"repository": "proprietary_vendor_zte",
"target_path": "vendor/zte",
"branch": "cm-10.1"
}
]
@@ -8,14 +8,6 @@ on early-init
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard0 /sdcard

service dhcp-service /system/bin/netcfg wlan0 dhcp
class main
oneshot

on property:dev.bootcomplete=1
stop dhcp-service
start dhcp-service

on boot

# cpufreq configurations
@@ -53,7 +45,7 @@ on boot
chmod 0777 /dev/akm8962_dev

# Setup android gadget
write /sys/module/g_android/parameters/serial_number CM10-Blade2
write /sys/module/g_android/parameters/serial_number CM10.1-Crescent
write /sys/module/g_android/parameters/product_id 0x1351

# WIFI filesystem structure
@@ -79,6 +71,7 @@ on boot
chmod 7777 /data/radio/*
chown radio radio /data/radio/*

# Lights
chown system system /sys/class/leds/green/blink
chown system system /sys/class/leds/green/brightness
chown system system /sys/class/leds/green/grpfreq
@@ -172,3 +165,11 @@ service akmd /system/bin/akmd8962
class main
user root
oneshot

service dhcp-service /system/bin/netcfg wlan0 dhcp
class main
oneshot

on property:dev.bootcomplete=1
stop dhcp-service
start dhcp-service
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ifeq ($(TARGET_DEVICE),blade2)

LOCAL_PATH := $(call my-dir)

ifneq ($(TARGET_SIMULATOR),true)
@@ -20,7 +22,7 @@ ifneq ($(TARGET_SIMULATOR),true)
# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so
include $(CLEAR_VARS)

LOCAL_MODULE := sensors.blade2
LOCAL_MODULE := sensors.$(TARGET_DEVICE)

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw

@@ -53,3 +55,4 @@ LOCAL_SHARED_LIBRARIES := liblog
include $(BUILD_EXECUTABLE)

endif # !TARGET_SIMULATOR
endif
Binary file not shown.

0 comments on commit 90997e8

Please sign in to comment.
You can’t perform that action at this time.