|
|
@@ -1,3 +1,22 @@
|
|
|
+#
|
|
|
+# Copyright (C) 2013-2017 The TeamWin Recovery Project
|
|
|
+#
|
|
|
+# Copyright (C) 2020 The 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.
|
|
|
+#
|
|
|
+DEVICE_PATH=device/samsung
|
|
|
+
|
|
|
USE_CAMERA_STUB := true
|
|
|
|
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
@@ -10,7 +29,8 @@ TARGET_BOARD_PLATFORM_GPU := qcom-adreno330
|
|
|
# Flags
|
|
|
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
|
|
|
+BOARD_NO_SECURE_DISCARD := true
|
|
|
+BOARD_USES_QCOM_HARDWARE := true
|
|
|
|
|
|
# Architecture
|
|
|
TARGET_CPU_VARIANT := krait
|
|
|
@@ -33,15 +53,15 @@ 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_PATH)/klte/zImage
|
|
|
+TARGET_PREBUILT_DTB := $(DEVICE_PATH)/klte/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_PATH)/klte/bootimg.mk
|
|
|
|
|
|
# TWRP specific build flags
|
|
|
TW_THEME := portrait_hdpi
|
|
|
@@ -73,5 +93,5 @@ TARGET_KEYMASTER_WAIT_FOR_QSEE := true
|
|
|
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
|
|
|
+TARGET_LIBINIT_DEFINES_FILE := $(DEVICE_PATH)/init/init_klte.cpp
|
|
|
#
|