2014-05-19 03:33:07 +00:00
|
|
|
# Copyright (C) 2012 The CyanogenMod Project
|
2017-12-31 15:45:00 +00:00
|
|
|
# Copyright (C) 2017-2018 The LineageOS Project
|
2014-05-19 03:33:07 +00: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 06:04:42 +00:00
|
|
|
# inherit from qcom-common
|
|
|
|
-include device/samsung/qcom-common/BoardConfigCommon.mk
|
2014-05-19 03:33:07 +00:00
|
|
|
|
|
|
|
# Platform
|
2019-10-07 08:07:36 +00:00
|
|
|
TARGET_BOARD_PLATFORM := msm8226
|
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno305
|
2014-05-19 03:33:07 +00:00
|
|
|
|
|
|
|
# Architecture
|
|
|
|
TARGET_CPU_VARIANT := krait
|
|
|
|
|
2014-07-25 06:04:42 +00:00
|
|
|
# Audio
|
2018-08-21 10:13:56 +00: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
|
2019-10-07 08:07:36 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
|
2014-07-25 06:04:42 +00:00
|
|
|
BOARD_USES_ALSA_AUDIO := true
|
2014-05-19 03:33:07 +00:00
|
|
|
|
2019-09-03 19:09:25 +00:00
|
|
|
# Bionic
|
|
|
|
MALLOC_SVELTE := true
|
|
|
|
|
2017-11-07 17:39:17 +00:00
|
|
|
# Binder API version
|
|
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
|
|
|
2014-05-19 03:33:07 +00:00
|
|
|
# Bluetooth
|
|
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
|
|
|
2016-10-07 02:52:13 +00:00
|
|
|
# Camera
|
|
|
|
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
2018-08-13 13:45:11 +00:00
|
|
|
TARGET_NEEDS_LEGACY_CAMERA_HAL1_DYN_NATIVE_HANDLE := true
|
2019-10-07 08:07:36 +00:00
|
|
|
TARGET_USES_MEDIA_EXTENSIONS := true
|
2019-09-03 19:09:25 +00:00
|
|
|
TARGET_USES_NON_TREBLE_CAMERA := true
|
2016-10-07 02:52:13 +00:00
|
|
|
|
2014-07-25 06:04:42 +00:00
|
|
|
# Charger
|
|
|
|
BOARD_BATTERY_DEVICE_NAME := "battery"
|
2019-10-07 08:07:36 +00:00
|
|
|
BOARD_CHARGING_CMDLINE_NAME := "androidboot.mode"
|
|
|
|
BOARD_CHARGING_CMDLINE_VALUE := "charger"
|
2014-05-19 03:33:07 +00:00
|
|
|
|
2017-12-30 13:03:20 +00:00
|
|
|
# Dexpreopt
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
2018-03-03 04:39:35 +00:00
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false
|
2018-01-19 03:52:42 +00:00
|
|
|
WITH_DEXPREOPT := true
|
2017-12-30 13:03:20 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2019-10-07 08:07:36 +00:00
|
|
|
WITH_DEXPREOPT_DEBUG_INFO := false
|
|
|
|
USE_DEX2OAT_DEBUG := false
|
|
|
|
DONT_DEXPREOPT_PREBUILTS := true
|
|
|
|
|
2014-07-25 06:04:42 +00:00
|
|
|
# Display
|
2019-10-07 08:07:36 +00:00
|
|
|
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
2018-08-26 02:31:39 +00:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U
|
2014-06-07 01:04:38 +00:00
|
|
|
|
2014-07-25 06:04:42 +00: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 03:33:07 +00:00
|
|
|
|
2017-11-16 05:30:10 +00:00
|
|
|
# Filesystem
|
2019-10-07 08:07:36 +00:00
|
|
|
TARGET_FS_CONFIG_GEN := device/samsung/msm8226-common/config.fs
|
2017-11-16 05:30:10 +00:00
|
|
|
|
2017-12-29 18:55:55 +00:00
|
|
|
# HIDL
|
2019-10-07 08:07:36 +00:00
|
|
|
DEVICE_MANIFEST_FILE := device/samsung/msm8226-common/manifest.xml
|
|
|
|
DEVICE_MATRIX_FILE := device/samsung/msm8226-common/compatibility_matrix.xml
|
2017-12-29 18:55:55 +00:00
|
|
|
|
2019-01-04 05:19:59 +00:00
|
|
|
# Keymaster
|
|
|
|
TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE := true
|
|
|
|
|
2018-02-03 22:04:39 +00:00
|
|
|
# SELinux
|
2019-10-07 08:07:36 +00:00
|
|
|
include device/samsung/msm8226-common/sepolicy/sepolicy.mk
|
|
|
|
|
2016-05-20 20:58:16 +00:00
|
|
|
# Init
|
2019-10-07 08:07:36 +00:00
|
|
|
TARGET_INIT_VENDOR_LIB := libinit_msm8226
|
|
|
|
TARGET_RECOVERY_DEVICE_MODULES := libinit_msm8226
|
|
|
|
|
2018-03-26 20:03:44 +00:00
|
|
|
# Optimize
|
|
|
|
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
|
|
|
PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true
|
|
|
|
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
|
|
|
|
PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
|
2019-01-02 09:41:56 +00:00
|
|
|
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
|
|
|
|
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
|
2018-03-26 20:03:44 +00:00
|
|
|
|
2019-10-07 08:07:36 +00:00
|
|
|
# Partitions
|
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
2019-09-10 13:26:04 +00:00
|
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
2019-10-07 08:07:36 +00:00
|
|
|
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
|
2016-05-20 20:58:16 +00:00
|
|
|
|
2018-10-10 13:06:28 +00:00
|
|
|
# Netd
|
|
|
|
TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE := true
|
|
|
|
|
2018-02-26 13:28:32 +00:00
|
|
|
# Power
|
2019-10-07 08:07:36 +00:00
|
|
|
TARGET_HAS_NO_POWER_STATS := true
|
2018-09-17 19:43:53 +00:00
|
|
|
TARGET_HAS_NO_WLAN_STATS := true
|
2018-02-26 13:28:32 +00:00
|
|
|
TARGET_USES_INTERACTION_BOOST := true
|
|
|
|
|
2018-12-22 19:07:24 +00:00
|
|
|
# Properties
|
|
|
|
TARGET_SYSTEM_PROP += device/samsung/msm8226-common/system.prop
|
|
|
|
|
2019-08-06 06:30:09 +00:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_DEVICE_DIRS += device/samsung/msm8226-common
|
|
|
|
|
2014-07-25 06:04:42 +00:00
|
|
|
# Time services
|
|
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
2017-12-31 15:45:00 +00:00
|
|
|
|
2019-10-07 08:07:36 +00:00
|
|
|
# Wifi
|
|
|
|
BOARD_WLAN_DEVICE := qcwcn
|
|
|
|
BOARD_HAS_QCOM_WLAN := true
|
|
|
|
BOARD_HAS_QCOM_WLAN_SDK := true
|
|
|
|
BOARD_HOSTAPD_DRIVER := NL80211
|
|
|
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
|
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
|
|
|
TARGET_PROVIDES_WCNSS_QMI := true
|
|
|
|
TARGET_USES_QCOM_WCNSS_QMI := true
|
|
|
|
TARGET_USES_WCNSS_CTRL := true
|
|
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
|
|
|
WIFI_DRIVER_FW_PATH_STA := "sta"
|
|
|
|
WIFI_DRIVER_FW_PATH_AP := "ap"
|
|
|
|
|
2017-12-31 15:45:00 +00:00
|
|
|
# inherit from the proprietary version
|
2019-10-07 08:07:36 +00:00
|
|
|
-include vendor/samsung/msm8226-common/BoardConfigVendor.mk
|