|
|
@@ -1,3 +1,22 @@
|
|
|
+#
|
|
|
+# Copyright (C) 2015-2017 The Teamwin Recovery Project
|
|
|
+#
|
|
|
+# Copyright (C) 2020 OrangeFox Recovery 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.
|
|
|
+#
|
|
|
+#
|
|
|
+
|
|
|
USE_CAMERA_STUB := true
|
|
|
|
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
@@ -8,8 +27,8 @@ TARGET_BOARD_PLATFORM := msm8974
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno330
|
|
|
|
|
|
# Flags
|
|
|
-TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
|
|
|
-TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
|
|
|
+#TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
|
|
|
+#TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
|
|
|
COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60 -DQCOM_HARDWARE -DNO_SECURE_DISCARD
|
|
|
|
|
|
# Architecture
|
|
|
@@ -33,15 +52,16 @@ BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x2E59F7C00 # 0x2E59FBC00 - 16384 (footer)
|
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 0x00C800000
|
|
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
|
|
|
|
|
-TARGET_PREBUILT_KERNEL := device/samsung/klte/zImage
|
|
|
-TARGET_PREBUILT_DTB := device/samsung/klte/dtb.img
|
|
|
+TARGET_PREBUILT_KERNEL := device/samsung/klte/prebuilt/zImage
|
|
|
+TARGET_PREBUILT_DTB := device/samsung/klte/prebuilt/dtb.img
|
|
|
|
|
|
# Use this flag if the board has a ext4 partition larger than 2gb
|
|
|
BOARD_HAS_LARGE_FILESYSTEM := true
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
BOARD_SUPPRESS_SECURE_ERASE := true
|
|
|
-BOARD_CUSTOM_BOOTIMG_MK := device/samsung/klte/bootimg.mk
|
|
|
+
|
|
|
+#BOARD_CUSTOM_BOOTIMG_MK := device/samsung/klte/bootimg.mk
|
|
|
|
|
|
# TWRP specific build flags
|
|
|
TW_THEME := portrait_hdpi
|
|
|
@@ -56,20 +76,19 @@ TW_DEFAULT_BRIGHTNESS := 162
|
|
|
TW_NO_REBOOT_BOOTLOADER := true
|
|
|
TW_HAS_DOWNLOAD_MODE := true
|
|
|
TW_NO_EXFAT_FUSE := true
|
|
|
-#TW_INCLUDE_NTFS_3G := true
|
|
|
TW_MTP_DEVICE := "/dev/mtp_usb"
|
|
|
TW_EXCLUDE_SUPERSU := true
|
|
|
|
|
|
# Encryption support
|
|
|
TW_INCLUDE_CRYPTO := true
|
|
|
-#TW_INCLUDE_CRYPTO_SAMSUNG := true
|
|
|
TARGET_HW_DISK_ENCRYPTION := true
|
|
|
TARGET_KEYMASTER_WAIT_FOR_QSEE := true
|
|
|
-#TWRP_INCLUDE_LOGCAT := true
|
|
|
-#TARGET_USES_LOGD := true
|
|
|
|
|
|
# Init properties from bootloader version, ex. model info
|
|
|
TARGET_UNIFIED_DEVICE := true
|
|
|
TARGET_INIT_VENDOR_LIB := libinit_klte
|
|
|
TARGET_RECOVERY_DEVICE_MODULES := libinit_klte
|
|
|
TARGET_LIBINIT_DEFINES_FILE := $(DEVICE_TREE)/init/init_klte.cpp
|
|
|
+#
|
|
|
+LZMA_RAMDISK_TARGETS := recovery
|
|
|
+#
|