2014-05-19 05:33:07 +02:00
|
|
|
# Copyright (C) 2012 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-07-25 08:04:42 +02:00
|
|
|
# inherit from qcom-common
|
|
|
|
-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
|
|
|
|
TARGET_CPU_VARIANT := krait
|
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Audio
|
|
|
|
BOARD_USES_ALSA_AUDIO := true
|
|
|
|
TARGET_USES_QCOM_COMPRESSED_AUDIO := true
|
2014-05-19 05:33:07 +02:00
|
|
|
|
|
|
|
# Bluetooth
|
|
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
|
|
|
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"
|
2014-05-19 05:33:07 +02:00
|
|
|
|
2014-07-25 08:04:42 +02:00
|
|
|
# Display
|
|
|
|
BOARD_EGL_CFG := device/samsung/msm8974-common/configs/egl.cfg
|
2014-08-29 09:16:07 +02:00
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
2014-07-25 08:04:42 +02:00
|
|
|
OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so
|
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
|
|
|
|
|
|
|
# SELinux
|
|
|
|
BOARD_SEPOLICY_DIRS += \
|
2014-07-25 08:04:42 +02:00
|
|
|
device/samsung/msm8974-common/sepolicy
|
2014-05-19 05:33:07 +02:00
|
|
|
|
|
|
|
BOARD_SEPOLICY_UNION += \
|
2014-07-25 08:04:42 +02:00
|
|
|
file_contexts \
|
|
|
|
app.te \
|
|
|
|
bluetooth.te \
|
|
|
|
device.te \
|
|
|
|
domain.te \
|
|
|
|
drmserver.te \
|
|
|
|
file.te \
|
|
|
|
hci_init.te \
|
|
|
|
healthd.te \
|
|
|
|
init.te \
|
|
|
|
init_shell.te \
|
|
|
|
keystore.te \
|
|
|
|
kickstart.te \
|
|
|
|
mediaserver.te \
|
|
|
|
nfc.te \
|
|
|
|
rild.te \
|
|
|
|
surfaceflinger.te \
|
|
|
|
system.te \
|
|
|
|
ueventd.te \
|
|
|
|
wpa.te \
|
|
|
|
wpa_socket.te
|
|
|
|
|
|
|
|
# Time services
|
|
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
|
|
|
|
|
|
|
# Vold
|
|
|
|
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
|
|
|
|
BOARD_VOLD_MAX_PARTITIONS := 28
|
|
|
|
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
|