mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
91d52d50a5
* Compare things that are used in s3ve, ms01, kmini3g , and matisse wifi and move the stuff that's truly common to here. This will greatly ease O bring-up of the child trees. * Also do a bit of cleanup while we are at it. Change-Id: I8fc5a099a348fa7feb502e3afe9b43df6e22d00b
130 lines
3.8 KiB
Makefile
130 lines
3.8 KiB
Makefile
# 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.
|
|
|
|
# Inherit from qcom-common
|
|
-include device/samsung/qcom-common/BoardConfigCommon.mk
|
|
|
|
VENDOR_PATH := device/samsung/msm8226-common
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(VENDOR_PATH)/include
|
|
|
|
# Architecture
|
|
BOARD_USES_QCOM_HARDWARE := true
|
|
TARGET_CPU_MEMCPY_BASE_OPT_DISABLE := true
|
|
TARGET_CPU_VARIANT := krait
|
|
BOARD_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
|
|
BOARD_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
|
|
|
|
# Audio
|
|
AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
|
|
BOARD_USES_ALSA_AUDIO := true
|
|
|
|
# Bluetooth
|
|
BOARD_HAVE_BLUETOOTH := true
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
|
BLUETOOTH_HCI_USE_MCT := true
|
|
|
|
# Bootloader
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8226
|
|
|
|
# Camera
|
|
TARGET_PROVIDES_CAMERA_HAL := true
|
|
USE_DEVICE_SPECIFIC_CAMERA := true
|
|
TARGET_USE_COMPAT_GRALLOC_ALIGN := true
|
|
|
|
# Charger
|
|
BOARD_BATTERY_DEVICE_NAME := "battery"
|
|
BOARD_CHARGING_CMDLINE_NAME := "androidboot.mode"
|
|
BOARD_CHARGING_CMDLINE_VALUE := "charger"
|
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
|
BOARD_CHARGER_SHOW_PERCENTAGE := true
|
|
|
|
# Custom RIL class
|
|
BOARD_RIL_CLASS := ../../../$(VENDOR_PATH)/ril
|
|
|
|
# Display
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
|
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
|
TARGET_USES_C2D_COMPOSITION := true
|
|
TARGET_USES_ION := true
|
|
|
|
# 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
|
|
|
|
# Fonts
|
|
EXTENDED_FONT_FOOTPRINT := true
|
|
|
|
# HIDL
|
|
DEVICE_MANIFEST_FILE := device/samsung/msm8226-common/manifest.xml
|
|
DEVICE_MATRIX_FILE := device/samsung/msm8226-common/compatibility_matrix.xml
|
|
|
|
# SELinux
|
|
include device/samsung/msm8226-common/sepolicy/sepolicy.mk
|
|
|
|
# Init
|
|
TARGET_INIT_VENDOR_LIB := libinit_msm
|
|
|
|
# LineageHW
|
|
BOARD_HARDWARE_CLASS += device/samsung/msm8226-common/lineagehw
|
|
|
|
# Memory
|
|
MALLOC_IMPL := dlmalloc
|
|
|
|
# Partitions and Vold
|
|
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
|
|
|
|
# Platform
|
|
TARGET_BOARD_PLATFORM := msm8226
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno305
|
|
USE_CLANG_PLATFORM_BUILD := true
|
|
|
|
# Properties (reset them here, include more in device if needed)
|
|
TARGET_SYSTEM_PROP := $(VENDOR_PATH)/system.prop
|
|
|
|
# Time services
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
|
|
|
# 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
|
|
|
|
# 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)
|
|
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"
|