Skip to content

Commit

Permalink
m7: split device tree into m7ul, m7att, m7spr, m7tmo
Browse files Browse the repository at this point in the history
  • Loading branch information
intervigilium committed May 28, 2013
1 parent ed716e6 commit 010e62d
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 215 deletions.
8 changes: 0 additions & 8 deletions AndroidBoard.mk

This file was deleted.

2 changes: 0 additions & 2 deletions AndroidProducts.mk

This file was deleted.

14 changes: 8 additions & 6 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := m7wls

# Filesystem
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776704
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1946156032
BOARD_USERDATAIMAGE_PARTITION_SIZE := 27917287424
BOARD_FLASH_BLOCK_SIZE := 131072

# cat /proc/emmc:
# dev: size erasesize name
# mmcblk0p19: 000ffa00 00000200 "misc"
Expand All @@ -55,11 +62,6 @@ TARGET_BOOTLOADER_BOARD_NAME := m7wls
# mmcblk0p32: 034ffa00 00000200 "reserve_2"
# mmcblk0p34: 05fffc00 00000200 "reserve_3"
# mmcblk0p31: 04729a00 00000200 "reserve"
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776704
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1946156032
BOARD_USERDATAIMAGE_PARTITION_SIZE := 27917287424
BOARD_FLASH_BLOCK_SIZE := 131072

# inherit from the proprietary version
-include vendor/htc/m7wls/BoardConfigVendor.mk
-include vendor/htc/m7spr/BoardConfigVendor.mk
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright 2013 - The CyanogenMod Project

Device configuration for the HTC One (Sprint model).
26 changes: 5 additions & 21 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
$(call inherit-product, device/htc/m7spr/full_m7spr.mk)

$(call inherit-product, vendor/cm/config/cdma.mk)

# Enhanced NFC
$(call inherit-product, vendor/cm/config/nfc_enhanced.mk)

# Inherit device configuration
$(call inherit-product, device/htc/m7wls/device_m7wls.mk)

# Device naming
PRODUCT_DEVICE := m7wls
PRODUCT_NAME := cm_m7wls
PRODUCT_BRAND := htc
PRODUCT_MODEL := HTC One
PRODUCT_MANUFACTURER := HTC

# Set build fingerprint / ID / Product Name ect.
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=htc_m7wls BUILD_ID=JZO54K BUILD_FINGERPRINT="htc/m7wls/m7wls:4.1.2/JZO54K/166937.7:user/release-keys" PRIVATE_BUILD_DESC="1.29.651.7 CL166937 release-keys"

# Release name
PRODUCT_RELEASE_NAME := m7wls
$(call inherit-product, vendor/cm/config/common_full_phone.mk)

# Boot animation
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=m7wls BUILD_ID=JZO54K BUILD_FINGERPRINT="htc/m7wls/m7wls:4.1.2/JZO54K/166937.7:user/release-keys" PRIVATE_BUILD_DESC="1.29.651.7 CL166937 release-keys"

-include vendor/cm/config/common_versions.mk
PRODUCT_NAME := cm_m7spr
PRODUCT_DEVICE := m7spr
File renamed without changes.
20 changes: 15 additions & 5 deletions Android.mk → device.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2012 The Android Open-Source Project
# Copyright (C) 2011 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,9 +14,19 @@
# limitations under the License.
#

LOCAL_PATH := $(call my-dir)
# call the proprietary setup
$(call inherit-product-if-exists, vendor/htc/m7spr/m7spr-vendor.mk)

ifeq ($(TARGET_DEVICE),m7wls)
include $(call first-makefiles-under,$(LOCAL_PATH))
endif
# overlays
DEVICE_PACKAGE_OVERLAYS += device/htc/m7spr/overlay

# common overlays
DEVICE_PACKAGE_OVERLAYS += device/htc/m7-common/overlay-cdma

# Sprint properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-sprint-us \
ro.carrier=Sprint

# Inherit from m7-common
$(call inherit-product, device/htc/m7-common/m7-common.mk)
44 changes: 0 additions & 44 deletions device_m7wls.mk

This file was deleted.

39 changes: 4 additions & 35 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,7 @@
#!/bin/sh

# Copyright (C) 2013 The CyanogenMod 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.
set -e

# This file is generated by device/common/generate-blob-scripts.sh - DO NOT EDIT

VENDOR=htc
DEVICE=m7wls

mkdir -p ../../../vendor/$VENDOR/$DEVICE/proprietary

adb root
adb wait-for-device

echo "Pulling proprietary files..."
for FILE in `cat ../$DEVICE/proprietary-files.txt | grep -v ^# | grep -v ^$`; do
DIR=`dirname $FILE`
if [ ! -d ../../../vendor/$VENDOR/$DEVICE/proprietary/$DIR ]; then
mkdir -p ../../../vendor/$VENDOR/$DEVICE/proprietary/$DIR
fi
adb pull /$FILE ../../../vendor/$VENDOR/$DEVICE/proprietary/$FILE
done

./../../../device/${VENDOR}/${DEVICE}/setup-makefiles.sh

./../../../device/${VENDOR}/${DEVICE}-common/extract-files.sh
export DEVICE=m7spr
export VENDOR=htc
./../m7-common/extract-files.sh $@
36 changes: 36 additions & 0 deletions full_m7spr.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright (C) 2011 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 is the build configuration for a full Android
# build for maguro hardware. This cleanly combines a set of
# device-specific aspects (drivers) with a device-agnostic
# product configuration (apps). Except for a few implementation
# details, it only fundamentally contains two inherit-product
# lines, full and maguro, hence its name.
#


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

# Inherit from m7spr device
$(call inherit-product, device/htc/m7spr/device.mk)

# Set those variables here to overwrite the inherited values.
PRODUCT_NAME := full_m7spr
PRODUCT_DEVICE := m7spr
PRODUCT_BRAND := htc
PRODUCT_MANUFACTURER := htc
PRODUCT_MODEL := One
88 changes: 0 additions & 88 deletions setup-makefiles.sh

This file was deleted.

14 changes: 8 additions & 6 deletions system.prop
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# system.prop for m7spr
#
# system.prop for m7wls
#

ro.sf.lcd_density=480

# RIL properties
ro.ril.wp.feature=1
persist.radio.add_power_save=1
persist.radio.snapshot_disabled=1
Expand All @@ -13,6 +9,7 @@ ro.telephony.call_ring.multiple=0
ro.ril.transmitpower=true
ro.use_data_netmgrd=true
persist.data_netmgrd_nint=16
rild.libargs=-d /dev/smd0
rild.libpath=/system/lib/libril-qc-qmi-1.so
ril.subscription.types=NV,RUIM
ro.config.svlte1x=true
Expand All @@ -28,9 +25,14 @@ persist.rild.nitz_short_ons_0=""
persist.rild.nitz_short_ons_1=""
persist.rild.nitz_short_ons_2=""
persist.rild.nitz_short_ons_3=""
rild.libargs=-d /dev/smd0
ro.cdma.home.operator.numeric=310120
ro.cdma.home.operator.alpha=Sprint
gsm.sim.operator.alpha=sprint \
gsm.sim.operator.numeric=310120 \
gsm.sim.operator.iso-country=us \
gsm.operator.alpha=sprint \
gsm.operator.numeric=310120 \
gsm.operator.iso-country=us \
ro.telephony.default_network=8
telephony.lteOnCdmaDevice=1
telephony.sms.pseudo_multipart=1
Expand Down
1 change: 1 addition & 0 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_lunch_combo cm_m7spr-eng

0 comments on commit 010e62d

Please sign in to comment.