From 5a72a99c1bb1058106e071cfe6f04a550cc095dd Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 17 Jan 2017 16:17:39 +0100 Subject: [PATCH] gts210vewifi: Initial commit --- Android.mk | 26 ++++++++++++++++++++++++++ AndroidProducts.mk | 17 +++++++++++++++++ BoardConfig.mk | 28 ++++++++++++++++++++++++++++ README.mkdn | 18 ++++++++++++++++++ device.mk | 32 ++++++++++++++++++++++++++++++++ extract-files.sh | 25 +++++++++++++++++++++++++ full_gts210vewifi.mk | 29 +++++++++++++++++++++++++++++ lineage.dependencies | 6 ++++++ lineage.mk | 11 +++++++++++ proprietary-files.txt | 0 setup-makefiles.sh | 25 +++++++++++++++++++++++++ 11 files changed, 217 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 README.mkdn create mode 100644 device.mk create mode 100755 extract-files.sh create mode 100644 full_gts210vewifi.mk create mode 100644 lineage.dependencies create mode 100644 lineage.mk create mode 100644 proprietary-files.txt create mode 100755 setup-makefiles.sh diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..718e0c1 --- /dev/null +++ b/Android.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. + +# WARNING: Everything listed here will be built on ALL platforms, +# including x86, the emulator, and the SDK. Modules must be uniquely +# named (liblights.tuna), and must build everywhere, or limit themselves +# to only building on ARM if they include assembly. Individual makefiles +# are responsible for having their own logic, for fine-grained control. + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),gts210vewifi) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..a17b7b6 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,17 @@ +# +# 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. + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/full_gts210vewifi.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..0727340 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,28 @@ +# +# 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 msm8976-common +-include device/samsung/msm8976-common/BoardConfigCommon.mk + +DEVICE_PATH := device/samsung/gts210vewifi + +# Assert +TARGET_OTA_ASSERT_DEVICE := gts210vewifi + +# Kernel +TARGET_KERNEL_CONFIG := gts210vewifi_defconfig + +# inherit from the proprietary version +-include vendor/samsung/gts210vewifi/BoardConfigVendor.mk diff --git a/README.mkdn b/README.mkdn new file mode 100644 index 0000000..6e8a8d1 --- /dev/null +++ b/README.mkdn @@ -0,0 +1,18 @@ +Unified Device Tree for Asus Zenfone 2 Laser/Selfie/Zoom (1080p) +=========================================== + +Basic | Spec Sheet +-------:|:------------------------- +CPU | Quad-core 1.7 GHz Cortex-A53 & quad-core 1.0 GHz Cortex-A53 +Chipset | Qualcomm MSM8939 Snapdragon 615 +GPU | Adreno 405 +Memory | 2/3GB RAM +Shipped Android Version | 5.0.2 +Storage | 16/32 GB +MicroSD | Up to 128 GB +Battery | Li-Po 3000mAh battery +Display | 1080 x 1920 pixels, 5.5 inches (~401 ppi pixel density) + | 1080 x 1920 pixels, 6.0 inches (~367 ppi pixel density) +Camera | 13 MP, laser autofocus, dual-LED (dual tone) flash + +Copyright 2016 - The CyanogenMod Project. diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..eea6a42 --- /dev/null +++ b/device.mk @@ -0,0 +1,32 @@ +# +# 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 the proprietary setup +$(call inherit-product-if-exists, vendor/samsung/gts210vewifi/gts210vewifi-vendor.mk) + +# Overlay +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + +# Screen density +PRODUCT_AAPT_CONFIG := normal large xlarge +PRODUCT_AAPT_PREF_CONFIG := xhdpi + +# Boot animation +TARGET_SCREEN_HEIGHT := 2048 +TARGET_SCREEN_WIDTH := 1536 + +# Inherit from msm8976-common +$(call inherit-product, device/samsung/msm8976-common/msm8976.mk) diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..8cfeaa9 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# 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. +# + +set -e + +# Required! +export DEVICE=gts210vewifi +export DEVICE_COMMON=msm8976-common +export VENDOR=samsung + +./../../$VENDOR/$DEVICE_COMMON/extract-files.sh $@ diff --git a/full_gts210vewifi.mk b/full_gts210vewifi.mk new file mode 100644 index 0000000..bff1460 --- /dev/null +++ b/full_gts210vewifi.mk @@ -0,0 +1,29 @@ +# +# 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 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 gts210vewifi device +$(call inherit-product, device/samsung/gts210vewifi/device.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := gts210vewifi +PRODUCT_NAME := full_gts210vewifi +PRODUCT_BRAND := samsung +PRODUCT_MODEL := gts210vewifi +PRODUCT_MANUFACTURER := samsung diff --git a/lineage.dependencies b/lineage.dependencies new file mode 100644 index 0000000..57f5bc7 --- /dev/null +++ b/lineage.dependencies @@ -0,0 +1,6 @@ +[ + { + "repository": "android_device_samsung_msm8976-common", + "target_path": "device/samsung/msm8976-common" + } +] diff --git a/lineage.mk b/lineage.mk new file mode 100644 index 0000000..603362b --- /dev/null +++ b/lineage.mk @@ -0,0 +1,11 @@ +$(call inherit-product, device/samsung/gts210vewifi/full_gts210vewifi.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_gts210vewifi +PRODUCT_BRAND := samsung +PRODUCT_MANUFACTURER := samsung +PRODUCT_DEVICE := gts210vewifi + +PRODUCT_GMS_CLIENTID_BASE := android-samsung diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..a51ddc5 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# 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. +# + +set -e + +# Required! +export DEVICE=gts210vewifi +export DEVICE_COMMON=msm8976-common +export VENDOR=samsung + +./../../$VENDOR/$DEVICE_COMMON/setup-makefiles.sh $@