2017-01-17 13:50:18 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2016 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.
|
|
|
|
#
|
|
|
|
|
2017-01-17 23:16:40 +00:00
|
|
|
# inherit from the proprietary version
|
|
|
|
-include vendor/samsung/msm8976-common/BoardConfigVendor.mk
|
|
|
|
|
2017-01-21 12:01:11 +00:00
|
|
|
BOARD_VENDOR := samsung
|
2017-01-17 13:50:18 +00:00
|
|
|
VENDOR_PATH := device/samsung/msm8976-common
|
|
|
|
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
|
|
|
|
2016-11-08 20:54:58 +00:00
|
|
|
# Use Snapdragon LLVM, if available
|
|
|
|
TARGET_USE_SDCLANG := true
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Architecture
|
|
|
|
TARGET_ARCH := arm64
|
|
|
|
TARGET_ARCH_VARIANT := armv8-a
|
|
|
|
TARGET_CPU_ABI := arm64-v8a
|
|
|
|
TARGET_CPU_ABI2 :=
|
|
|
|
TARGET_CPU_VARIANT := generic
|
|
|
|
|
|
|
|
TARGET_2ND_ARCH := arm
|
2017-10-24 07:09:36 +00:00
|
|
|
TARGET_2ND_ARCH_VARIANT := armv8-a
|
2017-01-17 13:50:18 +00:00
|
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
2017-01-18 23:33:58 +00:00
|
|
|
TARGET_2ND_CPU_VARIANT := cortex-a53
|
2017-01-17 13:50:18 +00:00
|
|
|
|
|
|
|
TARGET_BOARD_PLATFORM := msm8952
|
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno510
|
|
|
|
|
|
|
|
ENABLE_CPUSETS := true
|
|
|
|
|
|
|
|
# Bootloader
|
2017-01-21 12:01:11 +00:00
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8952
|
2017-01-17 13:50:18 +00:00
|
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
|
|
|
|
|
# Kernel
|
|
|
|
BOARD_KERNEL_BASE := 0x80000000
|
2017-12-19 00:19:24 +00:00
|
|
|
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom androidboot.wificountrycode=00 msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk
|
2017-01-17 15:46:57 +00:00
|
|
|
BOARD_KERNEL_IMAGE_NAME := Image.gz
|
2017-01-17 13:50:18 +00:00
|
|
|
BOARD_KERNEL_PAGESIZE := 2048
|
2017-01-17 15:46:57 +00:00
|
|
|
BOARD_KERNEL_SEPARATED_DT := true
|
2017-01-17 22:57:47 +00:00
|
|
|
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --board FPRPG21W000KU
|
2018-03-19 12:42:49 +00:00
|
|
|
BOARD_CUSTOM_BOOTIMG := true
|
2017-01-31 14:15:30 +00:00
|
|
|
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
|
2017-01-17 13:50:18 +00:00
|
|
|
TARGET_KERNEL_SOURCE := kernel/samsung/msm8976
|
|
|
|
|
|
|
|
# ANT+
|
2018-06-24 15:35:39 +00:00
|
|
|
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-uart"
|
2017-01-17 13:50:18 +00:00
|
|
|
|
|
|
|
# Audio
|
2017-01-22 16:25:59 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
|
2017-01-17 13:50:18 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
|
2017-01-22 16:25:59 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
|
2017-01-17 13:50:18 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_ANC_HEADSET := true
|
2017-01-22 16:25:59 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_APE_OFFLOAD := true
|
2017-01-17 13:50:18 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
|
2017-01-22 16:25:59 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
|
|
|
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
|
|
|
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
|
|
|
|
AUDIO_FEATURE_ENABLED_HFP := true
|
2017-01-17 13:50:18 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE := true
|
|
|
|
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
2017-01-22 16:25:59 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24 := true
|
|
|
|
AUDIO_FEATURE_ENABLED_PCM_OFFLOAD := true
|
|
|
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
2017-01-30 18:08:32 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY := true
|
2017-11-10 12:58:56 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_SND_MONITOR := true
|
2017-01-17 13:50:18 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_SOURCE_TRACKING := true
|
|
|
|
AUDIO_FEATURE_ENABLED_VBAT_MONITOR := true
|
2017-01-22 16:25:59 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY :=true
|
|
|
|
AUDIO_FEATURE_ENABLED_VORBIS_OFFLOAD := true
|
|
|
|
AUDIO_FEATURE_ENABLED_WMA_OFFLOAD := true
|
2017-01-17 13:50:18 +00:00
|
|
|
AUDIO_USE_LL_AS_PRIMARY_OUTPUT := true
|
|
|
|
BOARD_USES_ALSA_AUDIO := true
|
2017-08-22 20:07:43 +00:00
|
|
|
BOARD_USES_GENERIC_AUDIO := true
|
|
|
|
TARGET_USES_QCOM_MM_AUDIO := true
|
2018-01-06 13:19:57 +00:00
|
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
2017-01-22 15:38:12 +00:00
|
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|
2017-01-17 13:50:18 +00:00
|
|
|
|
|
|
|
# Bluetooth
|
2017-01-17 16:21:40 +00:00
|
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(VENDOR_PATH)/bluetooth
|
2017-01-17 16:18:55 +00:00
|
|
|
BOARD_HAS_QCA_BT_ROME := true
|
2017-01-17 13:50:18 +00:00
|
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
|
|
|
QCOM_BT_USE_BTNV := true
|
|
|
|
QCOM_BT_USE_SMD_TTY := true
|
|
|
|
|
2018-09-16 08:27:14 +00:00
|
|
|
# Board
|
|
|
|
TARGET_BOARD_INFO_FILE := $(VENDOR_PATH)/board-info.txt
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Camera
|
|
|
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
2018-08-31 11:35:20 +00:00
|
|
|
TARGET_PROCESS_SDK_VERSION_OVERRIDE := \
|
|
|
|
/system/vendor/bin/hw/android.hardware.camera.provider@2.4-service=23
|
2017-04-18 10:34:21 +00:00
|
|
|
TARGET_USES_MEDIA_EXTENSIONS := true
|
2017-01-17 13:50:18 +00:00
|
|
|
|
|
|
|
# Charger
|
|
|
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
|
|
|
|
2017-01-22 12:16:50 +00:00
|
|
|
# Dex
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
|
|
|
ifeq ($(WITH_DEXPREOPT),)
|
|
|
|
WITH_DEXPREOPT := true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2017-12-22 08:45:58 +00:00
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
|
2017-01-22 12:16:50 +00:00
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Display
|
|
|
|
BOARD_USES_ADRENO := true
|
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
|
|
|
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
|
2018-08-26 02:31:00 +00:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U
|
2017-01-17 13:50:18 +00:00
|
|
|
TARGET_CONTINUOUS_SPLASH_ENABLED := true
|
|
|
|
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
|
|
|
|
TARGET_USES_ION := true
|
|
|
|
TARGET_USES_OVERLAY := true
|
2017-08-22 20:03:01 +00:00
|
|
|
TARGET_USES_GRALLOC1 := true
|
|
|
|
TARGET_USES_HWC2 := true
|
|
|
|
TARGET_USES_NEW_ION_API :=true
|
2017-01-17 13:50:18 +00:00
|
|
|
VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
|
|
|
|
|
|
|
|
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
|
|
|
MAX_EGL_CACHE_SIZE := 2048*1024
|
|
|
|
MAX_VIRTUAL_DISPLAY_DIMENSION := 2048
|
|
|
|
|
|
|
|
# Encryption
|
|
|
|
TARGET_HW_DISK_ENCRYPTION := true
|
|
|
|
|
2017-09-15 14:05:41 +00:00
|
|
|
# Extended Filesystem Support
|
|
|
|
TARGET_EXFAT_DRIVER := exfat
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Filesystem
|
|
|
|
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
|
|
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
|
|
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
|
|
|
|
BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432
|
|
|
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432
|
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4404019200
|
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26268905472
|
|
|
|
|
2017-08-28 14:05:06 +00:00
|
|
|
TARGET_FS_CONFIG_GEN := $(VENDOR_PATH)/config.fs
|
2017-01-17 13:50:18 +00:00
|
|
|
|
2017-02-05 11:30:09 +00:00
|
|
|
# Fingerprint
|
|
|
|
TARGET_SEC_FP_HAL_VARIANT := bauth
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# GPS
|
|
|
|
USE_DEVICE_SPECIFIC_GPS := true
|
|
|
|
USE_DEVICE_SPECIFIC_LOC_API := true
|
|
|
|
TARGET_NO_RPC := true
|
|
|
|
|
2017-08-22 20:23:30 +00:00
|
|
|
# HIDL
|
|
|
|
DEVICE_MANIFEST_FILE := $(VENDOR_PATH)/manifest.xml
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Init
|
|
|
|
TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
|
|
|
|
|
|
|
|
# Keymaster
|
|
|
|
TARGET_PROVIDES_KEYMASTER := true
|
|
|
|
|
2017-10-11 10:28:06 +00:00
|
|
|
# Lineage hardware
|
2018-09-02 22:40:59 +00:00
|
|
|
JAVA_SOURCE_OVERLAYS := \
|
|
|
|
org.lineageos.hardware|hardware/samsung/lineagehw|**/*.java \
|
|
|
|
org.lineageos.hardware|$(VENDOR_PATH)/lineagehw|**/*.java
|
2017-10-11 10:28:06 +00:00
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Peripheral manager
|
|
|
|
TARGET_PER_MGR_ENABLED := true
|
|
|
|
|
|
|
|
# Power
|
2018-09-17 19:43:53 +00:00
|
|
|
TARGET_HAS_NO_WLAN_STATS := true
|
2018-02-03 14:16:53 +00:00
|
|
|
TARGET_USES_INTERACTION_BOOST := true
|
2017-01-17 13:50:18 +00:00
|
|
|
|
|
|
|
# Properties
|
|
|
|
TARGET_SYSTEM_PROP += $(VENDOR_PATH)/system.prop
|
|
|
|
|
|
|
|
# Qualcomm
|
|
|
|
BOARD_USES_QCOM_HARDWARE := true
|
|
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
|
|
|
|
2017-01-30 23:02:06 +00:00
|
|
|
# Ramdisk
|
|
|
|
BOARD_ROOT_EXTRA_FOLDERS := dsp efs firmware firmware-modem persist
|
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS := /system/etc/firmware/btfw32.tlv:/bt_firmware/image/btfw32.tlv
|
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /system/etc/firmware/btnv32.bin:/bt_firmware/image/btnv32.bin
|
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS += /data/tombstones:/tombstones
|
|
|
|
|
2017-08-22 20:03:01 +00:00
|
|
|
# Render
|
|
|
|
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
|
|
|
USE_OPENGL_RENDERER := true
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Recovery
|
2018-02-27 20:00:45 +00:00
|
|
|
TARGET_RECOVERY_FSTAB := $(VENDOR_PATH)/rootdir/etc/fstab.qcom
|
2017-01-17 13:50:18 +00:00
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
|
2015-03-16 20:00:18 +00:00
|
|
|
# Release tools
|
2016-12-02 07:48:41 +00:00
|
|
|
TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_samsung
|
2015-03-16 20:00:18 +00:00
|
|
|
TARGET_RELEASETOOLS_EXTENSIONS := $(VENDOR_PATH)
|
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# SELinux
|
|
|
|
include device/qcom/sepolicy/sepolicy.mk
|
2017-12-04 18:28:36 +00:00
|
|
|
include device/qcom/sepolicy/legacy-sepolicy.mk
|
2017-01-23 12:09:08 +00:00
|
|
|
BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
|
2017-01-17 13:50:18 +00:00
|
|
|
|
2018-02-15 22:33:28 +00:00
|
|
|
# Shims
|
2018-06-10 12:35:05 +00:00
|
|
|
TARGET_LD_SHIM_LIBS := \
|
2018-08-15 13:48:09 +00:00
|
|
|
/system/lib/hw/camera.vendor.msm8952.so|libshims_camera.so \
|
2018-06-10 12:35:05 +00:00
|
|
|
/system/lib64/libsec-ril.so|libshims_rild_socket.so \
|
|
|
|
/system/vendor/lib64/libizat_core.so|libshims_get_process_name.so
|
2018-02-15 22:33:28 +00:00
|
|
|
|
2017-01-17 13:50:18 +00:00
|
|
|
# Wifi
|
2017-01-17 16:24:52 +00:00
|
|
|
BOARD_HAS_QCOM_WLAN := true
|
|
|
|
BOARD_HAS_QCOM_WLAN_SDK := true
|
|
|
|
BOARD_WLAN_DEVICE := qcwcn
|
|
|
|
BOARD_HOSTAPD_DRIVER := NL80211
|
|
|
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
2017-01-17 13:50:18 +00:00
|
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
2017-01-17 16:24:52 +00:00
|
|
|
WIFI_DRIVER_FW_PATH_AP := "ap"
|
|
|
|
WIFI_DRIVER_FW_PATH_STA := "sta"
|
|
|
|
WIFI_DRIVER_FW_PATH_P2P := "p2p"
|
|
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|