From 54ae45766e75ed076db123a0613e3d8265495fb6 Mon Sep 17 00:00:00 2001 From: xiaobai Date: Sat, 6 May 2017 08:15:06 +0800 Subject: [PATCH] sagit: Initial sagit device tree --- Android.mk | 26 ++++++++++++++++++++++++++ AndroidProducts.mk | 17 +++++++++++++++++ BoardConfig.mk | 34 ++++++++++++++++++++++++++++++++++ device.mk | 22 ++++++++++++++++++++++ full_sagit.mk | 29 +++++++++++++++++++++++++++++ lineage.mk | 12 ++++++++++++ system.prop | 2 ++ 7 files changed, 142 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100644 BoardConfig.mk create mode 100644 device.mk create mode 100644 full_sagit.mk create mode 100644 lineage.mk create mode 100644 system.prop diff --git a/Android.mk b/Android.mk new file mode 100644 index 00000000..c51c2762 --- /dev/null +++ b/Android.mk @@ -0,0 +1,26 @@ +# +# Copyright (C) 2017 The LineageOS 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),sagit) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 00000000..0e68986a --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,17 @@ +# +# Copyright (C) 2017 The LineageOS 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_sagit.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 00000000..b996b143 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,34 @@ +# +# Copyright (C) 2017 The LineageOS 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. + +DEVICE_PATH := device/xiaomi/sagit + +# Assert +TARGET_OTA_ASSERT_DEVICE := sagit + +# Board +TARGET_BOARD_INFO_FILE := $(DEVICE_PATH)/board-info.txt + +# Bluetooth +BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth + +# Kernel +TARGET_KERNEL_CONFIG := sagit_defconfig + +# Properties +TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop + +# inherit from the proprietary version +-include vendor/xiaomi/sagit/BoardConfigVendor.mk diff --git a/device.mk b/device.mk new file mode 100644 index 00000000..8b5512dc --- /dev/null +++ b/device.mk @@ -0,0 +1,22 @@ +# +# Copyright (C) 2017 The LineageOS 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/xiaomi/sagit/sagit-vendor.mk) + +# Overlay +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + diff --git a/full_sagit.mk b/full_sagit.mk new file mode 100644 index 00000000..ca645cb5 --- /dev/null +++ b/full_sagit.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2017 The LineageOS 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 sagit device +$(call inherit-product, device/xiaomi/sagit/device.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_NAME := full_sagit +PRODUCT_DEVICE := sagit +PRODUCT_BRAND := Xiaomi +PRODUCT_MODEL := MI 6 +PRODUCT_MANUFACTURER := Xiaomi diff --git a/lineage.mk b/lineage.mk new file mode 100644 index 00000000..a44e888d --- /dev/null +++ b/lineage.mk @@ -0,0 +1,12 @@ +$(call inherit-product, device/xiaomi/sagit/full_sagit.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_sagit +PRODUCT_DEVICE := sagit +PRODUCT_BRAND := Xiaomi +PRODUCT_MODEL := MI 6 +PRODUCT_MANUFACTURER := Xiaomi + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi diff --git a/system.prop b/system.prop new file mode 100644 index 00000000..ce21d143 --- /dev/null +++ b/system.prop @@ -0,0 +1,2 @@ +# Display +ro.sf.lcd_density=480