From 65b0b5c973d8db8cacbdc3c589f9acb216eed86a Mon Sep 17 00:00:00 2001 From: Tom Marshall Date: Tue, 2 Sep 2014 16:52:44 -0700 Subject: [PATCH] Initial device tree for d851 --- Android.mk | 30 ++++++++ BoardConfig.mk | 29 ++++++++ README | 5 ++ cm.dependencies | 6 ++ cm.mk | 12 ++++ device.mk | 26 +++++++ extract-files.sh | 7 ++ full_d851.mk | 28 ++++++++ proprietary-blobs.txt | 160 ++++++++++++++++++++++++++++++++++++++++++ setup-makefiles.sh | 7 ++ system.prop | 3 + vendorsetup.sh | 1 + 12 files changed, 314 insertions(+) create mode 100644 Android.mk create mode 100644 BoardConfig.mk create mode 100644 README create mode 100644 cm.dependencies create mode 100644 cm.mk create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 full_d851.mk create mode 100644 proprietary-blobs.txt create mode 100755 setup-makefiles.sh create mode 100644 system.prop create mode 100755 vendorsetup.sh diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..f103770 --- /dev/null +++ b/Android.mk @@ -0,0 +1,30 @@ +# +# Copyright 2014 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 contains the module build definitions for the hardware-specific +# components for this device. +# +# As much as possible, those components should be built unconditionally, +# with device-specific names to avoid collisions, to avoid device-specific +# bitrot and build breakages. Building a component unconditionally does +# *not* include it on all devices, so it is safe even with hardware-specific +# components. + +LOCAL_PATH := $(call my-dir) + +ifneq ($(filter d851,$(TARGET_DEVICE)),) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..846321f --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2014 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. +# + +# inherit from common g3 +-include device/lge/g3-common/BoardConfigCommon.mk + +TARGET_OTA_ASSERT_DEVICE := g3,d851 + +# Partitions +BOARD_BOOTIMAGE_PARTITION_SIZE := 11534336 +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 13631488 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1572864000 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 28651290624 + +# inherit from the proprietary version +-include vendor/lge/d851/BoardConfigVendor.mk diff --git a/README b/README new file mode 100644 index 0000000..6a6f728 --- /dev/null +++ b/README @@ -0,0 +1,5 @@ +Copyright 2014 - The CyanogenMod Project + +Device configuration for LGE G3 (T-Mobile). + +WORK IN PROGRESS. WILL EAT YOUR CAT. diff --git a/cm.dependencies b/cm.dependencies new file mode 100644 index 0000000..f36d972 --- /dev/null +++ b/cm.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_lge_g3-common", + "target_path": "device/lge/g3-common" + } +] diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..b297f95 --- /dev/null +++ b/cm.mk @@ -0,0 +1,12 @@ +$(call inherit-product, device/lge/d851/full_d851.mk) + +# Enhanced NFC +$(call inherit-product, vendor/cm/config/nfc_enhanced.mk) + +# Inherit some common CM stuff. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +PRODUCT_DEVICE := d851 +PRODUCT_NAME := cm_d851 + +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=d851 BUILD_FINGERPRINT=lge/g3_tmo_us/g3:4.4.2/KVT49L.D85110c/D85110c.1403267110:user/release-keys PRIVATE_BUILD_DESC="g3_tmo_us-user 4.4.2 KVT49L.D85110c D85110c.1403267110 release-keys" diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..1e1a11e --- /dev/null +++ b/device.mk @@ -0,0 +1,26 @@ +# +# Copyright (C) 2014 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, $(SRC_TARGET_DIR)/product/languages_full.mk) + +# Get non-open-source specific aspects +$(call inherit-product-if-exists, vendor/lge/d851/d851-vendor.mk) + +# Overlays +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# common g3 +$(call inherit-product, device/lge/g3-common/g3.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..e0bffbd --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +export VENDOR=lge +export DEVICE=d851 +./../../$VENDOR/klte-common/extract-files.sh $@ diff --git a/full_d851.mk b/full_d851.mk new file mode 100644 index 0000000..42c28b6 --- /dev/null +++ b/full_d851.mk @@ -0,0 +1,28 @@ +# +# Copyright 2014 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. +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit from d851 device +$(call inherit-product, device/lge/d851/device.mk) + +# Set those variables here to overwrite the inherited values. +PRODUCT_NAME := full_d851 +PRODUCT_DEVICE := d851 +PRODUCT_BRAND := Android +PRODUCT_MANUFACTURER := LGE +PRODUCT_MODEL := d851 diff --git a/proprietary-blobs.txt b/proprietary-blobs.txt new file mode 100644 index 0000000..7c130ce --- /dev/null +++ b/proprietary-blobs.txt @@ -0,0 +1,160 @@ +# Bluetooth +bin/btnvtool +bin/hci_qcomm_init +vendor/lib/libbtnv.so + +# Perf +bin/mpdecision +vendor/lib/libqc-opt.so + +# ADSP +bin/adsprpcd +vendor/lib/libadsprpc.so +vendor/lib/libfastcvadsp_stub.so +vendor/lib/libfastcvopt.so + +# Audio +vendor/lib/libacdbloader.so +vendor/lib/libacdbrtac.so +vendor/lib/libadiertac.so +vendor/lib/libaudcal.so + +# Venus (media) firmware +etc/firmware/venus.b00 +etc/firmware/venus.b01 +etc/firmware/venus.b02 +etc/firmware/venus.b03 +etc/firmware/venus.b04 +etc/firmware/venus.mbn +etc/firmware/venus.mdt + +# DRM +bin/qseecomd +vendor/lib/libdrmdiag.so +vendor/lib/libdrmfs.so +vendor/lib/libdrmtime.so +vendor/lib/librpmb.so +vendor/lib/libssd.so +vendor/lib/libStDrvInt.so + +# GPS +app/com.qualcomm.location.apk +bin/gsiff_daemon +bin/quipc_igsn +bin/quipc_main +etc/permissions/com.qualcomm.location.xml +lib/libloc_api_v02.so +lib/libloc_ds_api.so +vendor/lib/libgeofence.so +vendor/lib/libizat_core.so +vendor/lib/liblbs_core.so +vendor/lib/liblocationservice.so +vendor/lib/libquipc_os_api.so +vendor/lib/libquipc_ulp_adapter.so +vendor/lib/libulp2.so + +# Graphics +vendor/lib/egl/eglsubAndroid.so +vendor/lib/egl/libEGL_adreno.so +vendor/lib/egl/libGLESv1_CM_adreno.so +vendor/lib/egl/libGLESv2_adreno.so +vendor/lib/egl/libq3dtools_adreno.so +vendor/lib/libadreno_utils.so +vendor/lib/libC2D2.so +vendor/lib/libCB.so +vendor/lib/libc2d30.so +vendor/lib/libc2d30-a3xx.so +vendor/lib/libgsl.so +vendor/lib/libllvm-qcom.so +vendor/lib/libOpenCL.so +vendor/lib/libOpenVG.so +vendor/lib/libsc-a3xx.so +#vendor/lib/libRSDriver_adreno.so +#vendor/lib/librs_adreno.so +#vendor/lib/librs_adreno_sha1.so +vendor/lib/libscale.so + +# Graphics firmware +etc/firmware/a330_pfp.fw +etc/firmware/a330_pm4.fw + +# Media +vendor/lib/libHevcSwDecoder.so +vendor/lib/libI420colorconvert.so +vendor/lib/libmmosal.so +vendor/lib/libmmparser.so +vendor/lib/libmm-color-convertor.so +vendor/lib/libExtendedExtractor.so +vendor/lib/libOmxAacDec.so +vendor/lib/libOmxAmrwbplusDec.so +vendor/lib/libOmxEvrcDec.so +vendor/lib/libOmxQcelp13Dec.so +vendor/lib/libOmxWmaDec.so +vendor/lib/libSHIMDivxDrm.so + +# Postprocessing +bin/mm-pp-daemon +vendor/lib/libdisp-aba.so +vendor/lib/libmm-abl.so +vendor/lib/libmm-abl-oem.so + +# Qualcomm framework +bin/irsc_util +vendor/lib/libdiag.so +vendor/lib/libdsi_netctrl.so +vendor/lib/libdsnetutils.so +vendor/lib/libdsutils.so +vendor/lib/libidl.so +vendor/lib/libqcci_legacy.so +vendor/lib/libqdi.so +vendor/lib/libqdp.so +vendor/lib/libqmi.so +vendor/lib/libqmiservices.so +vendor/lib/libqmi_cci.so +vendor/lib/libqmi_client_qmux.so +vendor/lib/libqmi_common_so.so +vendor/lib/libqmi_csi.so +vendor/lib/libqmi_csvt_srvc.so +vendor/lib/libqmi_encdec.so +vendor/lib/libqmiservices.so + +# Radio +app/qcrilmsgtunnel.apk +app/shutdownlistener.apk +bin/netmgrd +bin/qmuxd +bin/radish +bin/rfs_access +bin/rmt_storage +etc/permissions/qcnvitems.xml +etc/permissions/qcrilhook.xml +framework/qcnvitems.jar +framework/qcrilhook.jar +vendor/lib/libnetmgr.so +vendor/lib/libril-qc-qmi-1.so +vendor/lib/libril-qcril-hook-oem.so + +# Sensors +bin/sensors.qcom +vendor/lib/hw/sensors.msm8974.so +vendor/lib/libsensor1.so +vendor/lib/libsensor_reg.so + +# Thermal +bin/thermal-engine +vendor/lib/libthermalclient.so +vendor/lib/libthermalioctl.so + +# Time services +bin/time_daemon +vendor/lib/libtime_genoff.so + +# Listen service +vendor/lib/liblistensoundmodel.so + +# QuickBoot +app/QuickBoot.apk + +# Fastcharge +bin/hvdcp + diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..64b74d2 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +export VENDOR=lge +export DEVICE=d851 +./../../$VENDOR/g3-common/setup-makefiles.sh $@ diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..dcf1736 --- /dev/null +++ b/system.prop @@ -0,0 +1,3 @@ +# Radio +rild.libargs=-d /dev/smd0 +rild.libpath=/vendor/lib/libril-qc-qmi-1.so diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100755 index 0000000..b6d2170 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo cm_d851-userdebug