-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made with SebaUbuntu's TWRP device tree generator Arch: arm64 Manufacturer: xiaomi Device full name: Xiaomi Mi 8 Lite Script version: Signed-off-by: Sebastiano Barezzi barezzisebastiano@gmail.com
- Loading branch information
0 parents
commit d50fdf8
Showing
11 changed files
with
546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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. | ||
# | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
ifeq ($(TARGET_DEVICE), platina) | ||
include $(call all-subdir-makefiles,$(LOCAL_PATH)) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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)/omni_platina.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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/platina | ||
|
||
# For building with minimal manifest | ||
ALLOW_MISSING_DEPENDENCIES := true | ||
|
||
# Architecture | ||
TARGET_ARCH := arm64 | ||
TARGET_ARCH_VARIANT := armv8-a | ||
TARGET_CPU_ABI := arm64-v8a | ||
TARGET_CPU_ABI2 := | ||
TARGET_CPU_VARIANT := generic | ||
|
||
TARGET_2ND_ARCH := arm | ||
TARGET_2ND_ARCH_VARIANT := armv7-a-neon | ||
TARGET_2ND_CPU_ABI := armeabi-v7a | ||
TARGET_2ND_CPU_ABI2 := armeabi | ||
TARGET_2ND_CPU_VARIANT := generic | ||
TARGET_BOARD_SUFFIX := _64 | ||
TARGET_USES_64_BIT_BINDER := true | ||
|
||
# Assert | ||
TARGET_OTA_ASSERT_DEVICE := platina | ||
|
||
# File systems | ||
BOARD_HAS_LARGE_FILESYSTEM := true | ||
#BOARD_RECOVERYIMAGE_PARTITION_SIZE := 24293376 # This is the maximum known partition size, but it can be higher, so we just omit it | ||
BOARD_SYSTEMIMAGE_PARTITION_TYPE := ext4 | ||
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
TARGET_USERIMAGES_USE_F2FS := true | ||
TARGET_COPY_OUT_VENDOR := vendor | ||
|
||
# Kernel | ||
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 loop.max_part=7 usbcore.autosuspend=7 buildvariant=userdebug | ||
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/Image.gz-dtb | ||
BOARD_KERNEL_BASE := 0x00000000 | ||
BOARD_KERNEL_PAGESIZE := 4096 | ||
BOARD_RAMDISK_OFFSET := 0x01000000 | ||
BOARD_KERNEL_TAGS_OFFSET := 0x00000100 | ||
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) | ||
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET) | ||
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) | ||
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb | ||
TARGET_KERNEL_ARCH := arm64 | ||
TARGET_KERNEL_HEADER_ARCH := arm64 | ||
TARGET_KERNEL_SOURCE := kernel/xiaomi/platina | ||
TARGET_KERNEL_CONFIG := platina_defconfig | ||
|
||
# Ramdisk compression | ||
LZMA_RAMDISK_TARGETS := recovery | ||
|
||
# Platform | ||
TARGET_BOARD_PLATFORM := sdm660 | ||
|
||
# Hack: prevent anti rollback | ||
PLATFORM_SECURITY_PATCH := 2099-12-31 | ||
PLATFORM_VERSION := 16.1.0 | ||
|
||
# TWRP Configuration | ||
TW_THEME := portrait_hdpi | ||
TW_EXTRA_LANGUAGES := true | ||
TW_SCREEN_BLANK_ON_BOOT := true | ||
TW_INPUT_BLACKLIST := "hbtp_vm" | ||
TW_USE_TOOLBOX := true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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. | ||
# | ||
|
||
LOCAL_PATH := device/xiaomi/platina | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Copyright (C) 2020 The Android Open Source Project | ||
# Copyright (C) 2020 The TWRP Open Source Project | ||
# Copyright (C) 2020 SebaUbuntu's TWRP device tree generator | ||
# | ||
# 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-if-exists, $(SRC_TARGET_DIR)/product/embedded.mk) | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) | ||
|
||
# Inherit from platina device | ||
$(call inherit-product, device/xiaomi/platina/device.mk) | ||
|
||
# Inherit some common Omni stuff. | ||
$(call inherit-product, vendor/omni/config/common.mk) | ||
$(call inherit-product, vendor/omni/config/gsm.mk) | ||
|
||
# Device identifier. This must come after all inclusions | ||
PRODUCT_DEVICE := platina | ||
PRODUCT_NAME := omni_platina | ||
PRODUCT_BRAND := Xiaomi | ||
PRODUCT_MODEL := Mi 8 Lite | ||
PRODUCT_MANUFACTURER := xiaomi | ||
PRODUCT_RELEASE_NAME := Xiaomi Mi 8 Lite |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# mount point fstype device flags | ||
/data ext4 /dev/block/bootdevice/by-name/userdata flags=display="Data"; | ||
/misc emmc /dev/block/bootdevice/by-name/misc flags=display="Misc";backup=1;flashimg=1; | ||
/cache ext4 /dev/block/bootdevice/by-name/cache flags=display="Cache"; | ||
/cache f2fs /dev/block/bootdevice/by-name/cache flags=display="Cache"; | ||
/system ext4 /dev/block/bootdevice/by-name/system flags=display="System";backup=1; | ||
/system_image emmc /dev/block/bootdevice/by-name/system flags=display="System image";backup=1;flashimg=1; | ||
/vendor ext4 /dev/block/bootdevice/by-name/vendor flags=display="Vendor";backup=1; | ||
/vendor_image emmc /dev/block/bootdevice/by-name/vendor flags=display="Vendor image";backup=1;flashimg=1; | ||
/boot emmc /dev/block/bootdevice/by-name/boot flags=display="Boot";backup=1;flashimg=1; |
Oops, something went wrong.