2014-12-20 00:57:55 +00:00
|
|
|
# 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.
|
|
|
|
|
2014-12-24 00:06:47 +00:00
|
|
|
# Inherit from qcom-common
|
|
|
|
-include device/samsung/qcom-common/BoardConfigCommon.mk
|
|
|
|
|
2015-11-26 06:37:09 +00:00
|
|
|
VENDOR_PATH := device/samsung/msm8226-common
|
2014-12-20 00:57:55 +00:00
|
|
|
|
2015-11-26 06:37:09 +00:00
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
2014-12-20 00:57:55 +00:00
|
|
|
|
|
|
|
# Architecture
|
2015-03-17 23:22:29 +00:00
|
|
|
TARGET_CPU_MEMCPY_BASE_OPT_DISABLE := true
|
2014-12-20 00:57:55 +00:00
|
|
|
TARGET_CPU_VARIANT := krait
|
|
|
|
|
|
|
|
# Audio
|
2015-02-11 22:43:35 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
|
2014-12-20 00:57:55 +00:00
|
|
|
BOARD_USES_ALSA_AUDIO := true
|
|
|
|
|
|
|
|
# Bluetooth
|
2017-12-02 23:12:25 +00:00
|
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
|
2014-12-20 00:57:55 +00:00
|
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
2014-12-21 23:30:51 +00:00
|
|
|
BLUETOOTH_HCI_USE_MCT := true
|
2014-12-20 00:57:55 +00:00
|
|
|
|
|
|
|
# Bootloader
|
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8226
|
|
|
|
|
|
|
|
# Camera
|
|
|
|
TARGET_PROVIDES_CAMERA_HAL := true
|
|
|
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
2016-01-15 23:31:36 +00:00
|
|
|
TARGET_USE_COMPAT_GRALLOC_ALIGN := true
|
2018-02-09 19:35:07 +00:00
|
|
|
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
2014-12-20 00:57:55 +00:00
|
|
|
|
|
|
|
# Charger
|
|
|
|
BOARD_BATTERY_DEVICE_NAME := "battery"
|
|
|
|
BOARD_CHARGING_CMDLINE_NAME := "androidboot.mode"
|
|
|
|
BOARD_CHARGING_CMDLINE_VALUE := "charger"
|
|
|
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
2015-04-04 10:38:40 +00:00
|
|
|
BOARD_CHARGER_SHOW_PERCENTAGE := true
|
2014-12-20 00:57:55 +00:00
|
|
|
|
2015-12-31 11:02:33 +00:00
|
|
|
# CMHW
|
|
|
|
BOARD_HARDWARE_CLASS += $(VENDOR_PATH)/cmhw
|
2015-03-07 20:52:41 +00:00
|
|
|
|
2014-12-20 00:57:55 +00:00
|
|
|
# Custom RIL class
|
2015-12-26 14:28:52 +00:00
|
|
|
BOARD_RIL_CLASS := ../../../$(VENDOR_PATH)/ril
|
2014-12-20 00:57:55 +00:00
|
|
|
|
|
|
|
# Display
|
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
|
|
|
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
|
|
|
|
2014-12-30 13:47:48 +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
|
|
|
|
|
2015-01-08 23:58:11 +00:00
|
|
|
# FM
|
|
|
|
AUDIO_FEATURE_ENABLED_FM := true
|
|
|
|
TARGET_QCOM_NO_FM_FIRMWARE := true
|
|
|
|
|
2014-12-21 23:18:48 +00:00
|
|
|
# Fonts
|
|
|
|
EXTENDED_FONT_FOOTPRINT := true
|
|
|
|
|
2014-12-20 00:57:55 +00:00
|
|
|
# Init
|
|
|
|
TARGET_INIT_VENDOR_LIB := libinit_msm
|
|
|
|
|
2016-08-24 23:32:32 +00:00
|
|
|
# Memory
|
2017-12-03 10:18:03 +00:00
|
|
|
MALLOC_SVELTE := true
|
2015-11-07 14:02:20 +00:00
|
|
|
|
2015-01-09 16:17:16 +00:00
|
|
|
# Partitions and Vold
|
2015-01-07 20:03:04 +00:00
|
|
|
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
|
2014-12-20 00:57:55 +00:00
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
2015-01-09 16:17:16 +00:00
|
|
|
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
|
2014-12-20 00:57:55 +00:00
|
|
|
|
|
|
|
# Platform
|
|
|
|
TARGET_BOARD_PLATFORM := msm8226
|
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno305
|
2016-02-22 01:40:46 +00:00
|
|
|
USE_CLANG_PLATFORM_BUILD := true
|
2014-12-20 00:57:55 +00:00
|
|
|
|
2015-11-28 06:18:04 +00:00
|
|
|
# Properties (reset them here, include more in device if needed)
|
|
|
|
TARGET_SYSTEM_PROP := $(VENDOR_PATH)/system.prop
|
|
|
|
|
2016-02-02 05:29:49 +00:00
|
|
|
# Basic dexpreopt
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
|
|
|
ifeq ($(WITH_DEXPREOPT),)
|
|
|
|
WITH_DEXPREOPT := true
|
|
|
|
WITH_DEXPREOPT_BOOT_IMG_ONLY := true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-02-25 15:17:33 +00:00
|
|
|
# SELinux
|
|
|
|
-include device/qcom/sepolicy/sepolicy.mk
|
2015-11-26 06:37:09 +00:00
|
|
|
BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
|
2015-02-25 15:17:33 +00:00
|
|
|
|
2014-12-20 00:57:55 +00:00
|
|
|
# Wifi
|
|
|
|
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)
|
|
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
2015-01-31 00:10:00 +00:00
|
|
|
TARGET_PROVIDES_WCNSS_QMI := true
|
|
|
|
TARGET_USES_QCOM_WCNSS_QMI := true
|
2014-12-20 00:57:55 +00:00
|
|
|
TARGET_USES_WCNSS_CTRL := true
|
|
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
|
|
|
WIFI_DRIVER_FW_PATH_STA := "sta"
|
|
|
|
WIFI_DRIVER_FW_PATH_AP := "ap"
|