-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoardConfig.mk
executable file
·55 lines (41 loc) · 1.65 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit common board flags
-include device/samsung/gts7xl-common/BoardConfigCommon.mk
DEVICE_PATH := device/samsung/gts7xl
# APEX
DEXPREOPT_GENERATE_APEX_IMAGE := true
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
### Dynamic Partitions
BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
# Kernel
TARGET_KERNEL_CONFIG := vendor/gts7xl_eur_open_defconfig
TARGET_KERNEL_SOURCE := kernel/samsung/gts7xl
KERNEL_TOOLCHAIN := $(shell pwd)/$(TARGET_KERNEL_SOURCE)/toolchain/gcc/bin
KERNEL_TOOLCHAIN_PREFIX := aarch64-linux-android-
TARGET_KERNEL_CLANG_PATH := $(shell pwd)/$(TARGET_KERNEL_SOURCE)/toolchain/clang
BOARD_KERNEL_CMDLINE += enforcing=0 androidboot.selinux=permissive
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
# Partitions
ifneq ($(WITH_GMS),true)
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1258291200
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 1258291200
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 1258291200
endif
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 8023703552
BOARD_SUPER_PARTITION_SIZE := 10171187200
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE=f2fs
BOARD_CANT_BUILD_RECOVERY_FROM_BOOT_PATCH := true
# System as root
BOARD_ROOT_EXTRA_FOLDERS := cache carrier dqmdbg efs keydata keyrefuge omr optics prism spu
BOARD_SUPPRESS_SECURE_ERASE := true
# Recovery
TARGET_RECOVERY_DENSITY := xxhdpi
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
# Inherit from proprietary vendor
-include vendor/samsung/gts7xl/BoardConfigVendor.mk