summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2016-04-18 12:41:25 -0400
committerRashed Abdel-Tawab <rashed@linux.com>2016-04-18 12:41:25 -0400
commitdcfd9d13170f00fee71b730229c36c09f2e8485e (patch)
tree8c283ebb29f8776fde7b122e78c49bed5c675909
Initial commit
-rw-r--r--Android.mk30
-rw-r--r--BoardConfig.mk26
-rw-r--r--cm.dependencies6
-rw-r--r--cm.mk18
-rw-r--r--device.mk23
-rw-r--r--full_h830.mk29
6 files changed, 132 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..f6f0a47
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,30 @@
+#
+# Copyright 2016 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 h830,$(TARGET_DEVICE)),)
+include $(call all-makefiles-under,$(LOCAL_PATH))
+endif
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..29b95cc
--- /dev/null
+++ b/BoardConfig.mk
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2016 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 g5
+-include device/lge/g5-common/BoardConfigCommon.mk
+
+TARGET_OTA_ASSERT_DEVICE := g5,h1,h830
+
+# Kernel
+TARGET_KERNEL_CONFIG := cyanogenmod_h830_defconfig
+
+# inherit from the proprietary version
+-include vendor/lge/h830/BoardConfigVendor.mk
diff --git a/cm.dependencies b/cm.dependencies
new file mode 100644
index 0000000..4555a60
--- /dev/null
+++ b/cm.dependencies
@@ -0,0 +1,6 @@
+[
+ {
+ "repository": "android_device_lge_g5-common",
+ "target_path": "device/lge/g5-common"
+ }
+]
diff --git a/cm.mk b/cm.mk
new file mode 100644
index 0000000..625a0ba
--- /dev/null
+++ b/cm.mk
@@ -0,0 +1,18 @@
+$(call inherit-product, device/lge/h830/full_h830.mk)
+
+# Inherit some common CM stuff.
+$(call inherit-product, vendor/cm/config/common_full_phone.mk)
+
+# Enhanced NFC
+$(call inherit-product, vendor/cm/config/nfc_enhanced.mk)
+
+# Overlays (inherit after vendor/cm to ensure we override it)
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
+PRODUCT_NAME := cm_h830
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ PRODUCT_DEVICE="g5" \
+ PRODUCT_NAME="h1_tmo_us" \
+ BUILD_FINGERPRINT="lge/h1_tmo_us/h1:6.0.1/MMB29M/1606419497545:user/release-keys" \
+ PRIVATE_BUILD_DESC="h1_tmo_us-user 6.0.1 MMB29M 1606419497545 release-keys"
diff --git a/device.mk b/device.mk
new file mode 100644
index 0000000..d5ef9d1
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,23 @@
+#
+# Copyright (C) 2016 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/h830/h830-vendor.mk)
+
+# common g5
+$(call inherit-product, device/lge/g5-common/g5.mk)
diff --git a/full_h830.mk b/full_h830.mk
new file mode 100644
index 0000000..c52525d
--- /dev/null
+++ b/full_h830.mk
@@ -0,0 +1,29 @@
+#
+# Copyright 2016 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/core_64_bit.mk)
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
+
+# Inherit from h815 device
+$(call inherit-product, device/lge/h830/device.mk)
+
+# Set those variables here to overwrite the inherited values.
+PRODUCT_DEVICE := h830
+PRODUCT_NAME := full_h830
+PRODUCT_BRAND := lge
+PRODUCT_MODEL := LG-H830
+PRODUCT_MANUFACTURER := LGE