2014-05-19 05:33:07 +02:00
|
|
|
# Copyright (C) 2012 The CyanogenMod Project
|
2021-04-09 16:18:37 +02:00
|
|
|
# Copyright (C) 2017-2019,2021 The LineageOS Project
|
2014-05-19 05:33:07 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# inherit from qcom-common
|
2019-11-28 00:31:20 +01:00
|
|
|
include device/samsung/qcom-common/BoardConfigCommon.mk
|
2014-05-19 05:33:07 +02:00
|
|
|
|
|
|
|
# Platform
|
|
|
|
TARGET_BOARD_PLATFORM := msm8974
|
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno330
|
|
|
|
|
|
|
|
# Architecture
|
2019-02-08 18:56:34 +01:00
|
|
|
TARGET_CPU_VARIANT := generic
|
2019-02-21 16:04:20 +01:00
|
|
|
TARGET_CPU_VARIANT_RUNTIME := krait
|
2014-05-19 05:33:07 +02:00
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Audio
|
2018-08-21 12:13:56 +02:00
|
|
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_POST_PROC := true
|
|
|
|
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
|
|
|
AUDIO_FEATURE_ENABLED_HFP := true
|
|
|
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
2014-07-25 08:04:42 +02:00
|
|
|
BOARD_USES_ALSA_AUDIO := true
|
2014-05-19 05:33:07 +02:00
|
|
|
|
2017-11-07 18:39:17 +01:00
|
|
|
# Binder API version
|
|
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
|
|
|
2014-05-19 05:33:07 +02:00
|
|
|
# Bluetooth
|
|
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
|
|
|
2016-10-07 04:52:13 +02:00
|
|
|
# Camera
|
|
|
|
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
2020-10-21 21:19:01 +02:00
|
|
|
MALLOC_SVELTE_FOR_LIBC32 := true
|
2016-10-07 04:52:13 +02:00
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Charger
|
|
|
|
BOARD_BATTERY_DEVICE_NAME := "battery"
|
|
|
|
BOARD_CHARGING_CMDLINE_NAME := "androidboot.bootchg"
|
|
|
|
BOARD_CHARGING_CMDLINE_VALUE := "true"
|
2018-01-14 22:57:33 +01:00
|
|
|
WITH_LINEAGE_CHARGER := false
|
2014-05-19 05:33:07 +02:00
|
|
|
|
2017-12-30 14:03:20 +01:00
|
|
|
# Dexpreopt
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
2018-03-03 05:39:35 +01:00
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false
|
2018-01-19 04:52:42 +01:00
|
|
|
WITH_DEXPREOPT := true
|
2017-12-30 14:03:20 +01:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Display
|
2018-08-26 04:31:39 +02:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U
|
2020-11-22 01:18:39 +01:00
|
|
|
TARGET_DISABLE_POSTRENDER_CLEANUP := true
|
2014-06-07 03:04:38 +02:00
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Shader cache config options
|
|
|
|
# Maximum size of the GLES Shaders that can be cached for reuse.
|
|
|
|
# Increase the size if shaders of size greater than 12KB are used.
|
|
|
|
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
|
|
|
|
|
|
|
# Maximum GLES shader cache size for each app to store the compiled shader
|
|
|
|
# binaries. Decrease the size if RAM or Flash Storage size is a limitation
|
|
|
|
# of the device.
|
|
|
|
MAX_EGL_CACHE_SIZE := 2048*1024
|
2014-05-19 05:33:07 +02:00
|
|
|
|
2017-11-16 06:30:10 +01:00
|
|
|
# Filesystem
|
|
|
|
TARGET_FS_CONFIG_GEN := device/samsung/msm8974-common/config.fs
|
|
|
|
|
2017-12-29 19:55:55 +01:00
|
|
|
# HIDL
|
|
|
|
DEVICE_MANIFEST_FILE := device/samsung/msm8974-common/manifest.xml
|
|
|
|
DEVICE_MATRIX_FILE := device/samsung/msm8974-common/compatibility_matrix.xml
|
|
|
|
|
2020-10-17 18:25:12 +02:00
|
|
|
# Legacy memfd
|
|
|
|
TARGET_HAS_MEMFD_BACKPORT := true
|
|
|
|
|
2018-02-03 23:04:39 +01:00
|
|
|
# SELinux
|
|
|
|
include device/samsung/msm8974-common/sepolicy/sepolicy.mk
|
|
|
|
|
2018-10-10 15:06:28 +02:00
|
|
|
# Netd
|
|
|
|
TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE := true
|
|
|
|
|
2018-02-26 14:28:32 +01:00
|
|
|
# Power
|
|
|
|
TARGET_USES_INTERACTION_BOOST := true
|
|
|
|
|
2018-12-22 20:07:24 +01:00
|
|
|
# Properties
|
|
|
|
TARGET_SYSTEM_PROP += device/samsung/msm8974-common/system.prop
|
|
|
|
|
2019-08-06 08:30:09 +02:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_DEVICE_DIRS += device/samsung/msm8974-common
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Time services
|
|
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
2017-12-31 16:45:00 +01:00
|
|
|
|
|
|
|
# inherit from the proprietary version
|
2021-04-09 16:18:37 +02:00
|
|
|
include vendor/samsung/msm8974-common/BoardConfigVendor.mk
|