Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
blade2: preps for cm-10.1
  • Loading branch information
Daz Jones committed Dec 20, 2012
1 parent d4edf73 commit 90997e8
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 15 deletions.
4 changes: 3 additions & 1 deletion BoardConfig.mk
Expand Up @@ -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
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions CrescentParts/Android.mk
@@ -1,3 +1,4 @@
ifeq ($(TARGET_DEVICE),blade2)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

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

include $(call all-makefiles-under,$(LOCAL_PATH))
endif
5 changes: 1 addition & 4 deletions blade2.mk
Expand Up @@ -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)

Expand Down
10 changes: 10 additions & 0 deletions bluetooth/libbt_vndcfg.txt
@@ -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
15 changes: 15 additions & 0 deletions cm.dependencies
@@ -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"
}
]
19 changes: 10 additions & 9 deletions init.blade2.rc
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
5 changes: 4 additions & 1 deletion libsensors/Android.mk
Expand Up @@ -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)
Expand All @@ -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

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

endif # !TARGET_SIMULATOR
endif
Binary file removed prebuilt/gralloc.blade2.so
Binary file not shown.

0 comments on commit 90997e8

Please sign in to comment.