Skip to content

Commit

Permalink
Initial commit of xt1034
Browse files Browse the repository at this point in the history
  • Loading branch information
dhacker29 committed Dec 27, 2013
0 parents commit 2d98eda
Show file tree
Hide file tree
Showing 13 changed files with 226 additions and 0 deletions.
8 changes: 8 additions & 0 deletions AndroidBoard.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)

# include the non-open-source counterpart to this file
-include vendor/motorola/xt1034/AndroidBoardVendor.mk
17 changes: 17 additions & 0 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# 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.

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_xt1034.mk
41 changes: 41 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# 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.

#
# 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).
#

-include device/motorola/msm8226-common/BoardConfigCommon.mk

# inherit from the proprietary version
-include vendor/motorola/xt1034/BoardConfigVendor.mk

LOCAL_PATH := device/motorola/xt1034

# Use common resources
TARGET_USES_MOTOROLA_MSM8960_COMMON_LIBLIGHT := true

#bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth

#TWRP
DEVICE_RESOLUTION := 720x1280

# userdata size is double for maxx
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12884901888
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Device configuration for the Moto G (XT1034) (falcon_umts) (Retail US)
===============================

Copyright 2013 - The CyanogenMod Project
26 changes: 26 additions & 0 deletions bluetooth/bdroid_buildcfg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (C) 2012 The Android Open Source Project
* Copyright (C) 2012 The CyanogenMod Project <http://www.cyanogenmod.org>
*
* 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.
*/

#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H

#define BTM_DEF_LOCAL_NAME "Moto G - XT1034"
#define BTA_DISABLE_DELAY 1000 /* in milliseconds */
#define BLUETOOTH_QCOM_SW TRUE
#define BLUETOOTH_QCOM_LE_INTL_SCAN TRUE
#define BTC_INCLUDED TRUE
#endif
14 changes: 14 additions & 0 deletions cm.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"repository": "android_device_motorola_qcom-common",
"target_path": "device/motorola/qcom-common"
},
{
"repository": "android_device_motorola_msm8226-common",
"target_path": "device/motorola/msm8226-common"
},
{
"repository": "android_kernel_motorola_msm8226-common",
"target_path": "kernel/motorola/msm8226-common"
}
]
18 changes: 18 additions & 0 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)

# Boot animation
TARGET_SCREEN_WIDTH := 720
TARGET_SCREEN_HEIGHT := 1280

# Release name
PRODUCT_RELEASE_NAME := MOTO G
PRODUCT_NAME := cm_xt1034

$(call inherit-product, device/motorola/xt1034/full_xt1034.mk)

PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_BRAND=motorola \
PRODUCT_NAME=XT1034 \
BUILD_PRODUCT=falcon_umts \
BUILD_FINGERPRINT=motorola/falcon_retuaws/falcon_umts:4.4.2/KXB20.9-1.8-1.4/4:user/release-keys
2 changes: 2 additions & 0 deletions device-proprietary-files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# proprietary file list
# bin/filename
42 changes: 42 additions & 0 deletions device_xt1034.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#
# 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.
#

$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)

$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)

$(call inherit-product, device/motorola/msm8226-common/msm8226.mk)

LOCAL_PATH := device/motorola/xt1034

# xt1053 specific overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay

PRODUCT_LOCALES := en_US
PRODUCT_LOCALES += xhdpi
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi

#telephony
PRODUCT_PROPERTY_OVERRIDES += \
telephony.lteOnGsmDevice=1 \
telephony.lteOnCdmaDevice=0 \
ro.telephony.default_network=3 \
persist.radio.no_wait_for_card=1 \
persist.radio.dfr_mode_set=1

$(call inherit-product, device/motorola/msm8226-common/keylayout/keylayout.mk)
$(call inherit-product, vendor/motorola/xt1034/xt1034-vendor.mk)
6 changes: 6 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

export VENDOR=motorola
export DEVICE=xt1034

../msm8226-common/extract-files.sh $@
36 changes: 36 additions & 0 deletions full_xt1034.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# 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.
#

#
# This file is the build configuration for a full Android
# build for xt1034 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 xt1034, hence its name.
#

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

## Device identifier. This must come after all inclusions
PRODUCT_DEVICE := xt1034
PRODUCT_NAME := full_xt1034
PRODUCT_BRAND := motorola
PRODUCT_MODEL := XT1034
PRODUCT_MANUFACTURER := motorola
10 changes: 10 additions & 0 deletions system.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rild.libargs=-d /dev/smd0
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
2 changes: 2 additions & 0 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_lunch_combo cm_xt1034-userdebug

0 comments on commit 2d98eda

Please sign in to comment.