/
BoardConfigCommon.mk
110 lines (85 loc) · 2.92 KB
/
BoardConfigCommon.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright (C) 2014 The CyanogenMod 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.
BOARD_VENDOR := sony
PLATFORM_PATH := device/sony/msm8974-common
TARGET_SPECIFIC_HEADER_PATH += $(PLATFORM_PATH)/include
# Architecture
TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := generic
TARGET_CPU_VARIANT_RUNTIME := krait
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
# Kernel
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_IMAGE_NAME := zImage-dtb
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000
TARGET_KERNEL_SOURCE := kernel/sony/msm8974
# Platform
TARGET_BOARD_PLATFORM := msm8974
# Audio
AUDIO_FEATURE_ENABLED_EXTN_POST_PROC := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
# Camera
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
MALLOC_SVELTE_FOR_LIBC32 := true
# Filesystem
TARGET_FS_CONFIG_GEN += $(PLATFORM_PATH)/config.fs
# Graphics
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U
TARGET_DISABLE_POSTRENDER_CLEANUP := true
TARGET_USES_ION := true
# Legacy memfd
TARGET_HAS_MEMFD_BACKPORT := true
# Lights HAL
TARGET_PROVIDES_LIBLIGHT := true
# Partition information
BOARD_BOOTIMAGE_PARTITION_SIZE := 20971520
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
# Power
TARGET_USES_INTERACTION_BOOST := true
# QCOM hardware
BOARD_USES_QCOM_HARDWARE := true
# Recovery
LZMA_RAMDISK_TARGETS := recovery
# Security patch level
VENDOR_SECURITY_PATCH := 2016-05-01
# SELinux
include device/qcom/sepolicy-legacy/sepolicy.mk
BOARD_SEPOLICY_DIRS += \
$(PLATFORM_PATH)/sepolicy
# Shims
TARGET_LD_SHIM_LIBS := \
/system/vendor/bin/credmgrd|/system/vendor/lib/libshims_signal.so \
/system/vendor/bin/mm-qcamera-daemon|libandroid.so \
/system/vendor/bin/suntrold|/system/vendor/lib/libshims_signal.so \
/system/lib/hw/camera.vendor.qcom.so|libsensor.so \
/system/lib/libcammw.so|libsensor.so \
/system/vendor/lib/libril-qc-qmi-1.so|libaudioclient_shim.so
# SODP build barrier
PRODUCT_PLATFORM_SOD := true
# Treble
DEVICE_MANIFEST_FILE := $(PLATFORM_PATH)/manifest.xml