efa1d21bf3
* P made changes to pthread_mutex_init() that are incompatible with our libsec-ril libraries. In order for rild to even see a radio as being availble we need the legacy behavior. * Even though our libsec-ril libraries are from 5.0, which is API level 21, we do not appear to require any of the other behaviors from API levels earlier than 27. Change-Id: I3b3d0160236df09bdae95c5d9f10a61bf91ebc72
115 lines
3.4 KiB
Makefile
115 lines
3.4 KiB
Makefile
# Copyright (C) 2016 The CyanogenMod Project
|
|
# Copyright (C) 2017 The LineageOS 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 common msm8226
|
|
-include device/samsung/msm8226-common/BoardConfigCommon.mk
|
|
|
|
COMMON_PATH := device/samsung/s3ve3g-common
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(COMMON_PATH)/include
|
|
|
|
# Assert
|
|
TARGET_OTA_ASSERT_DEVICE := s3ve3g,s3ve3gds,s3ve3gjv
|
|
|
|
# Audio
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
|
|
# Bluetooth
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
|
BLUETOOTH_HCI_USE_MCT := true
|
|
|
|
# Bootloader
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8226
|
|
|
|
# Build
|
|
BLOCK_BASED_OTA := true
|
|
|
|
# Extended Filesystem Support
|
|
TARGET_EXFAT_DRIVER := sdfat
|
|
|
|
# HIDL
|
|
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
|
|
|
|
# FM
|
|
BOARD_HAVE_QCOM_FM := true
|
|
TARGET_QCOM_NO_FM_FIRMWARE := true
|
|
|
|
# Kernel
|
|
BOARD_KERNEL_BASE := 0x00000000
|
|
BOARD_KERNEL_CMDLINE := console=null androidboot.console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 zcache.enabled=1 zcache.compressor=lz4 maxcpus=1
|
|
BOARD_KERNEL_IMAGE_NAME := zImage
|
|
BOARD_KERNEL_PAGESIZE := 2048
|
|
BOARD_KERNEL_SEPARATED_DT := true
|
|
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x1e00000
|
|
BOARD_CUSTOM_BOOTIMG := true
|
|
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
|
|
LZMA_RAMDISK_TARGETS := recovery
|
|
TARGET_KERNEL_SOURCE := kernel/samsung/msm8226
|
|
|
|
# Legacy BLOB Support
|
|
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
|
|
TARGET_PROCESS_SDK_VERSION_OVERRIDE += \
|
|
/system/bin/mediaserver=22 \
|
|
/system/vendor/bin/mm-qcamera-daemon=22 \
|
|
/system/vendor/bin/hw/rild=27
|
|
|
|
# Partitions
|
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
|
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485760
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 721420288
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2097152000
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12562627584
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
|
|
|
# Power HAL
|
|
TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(COMMON_PATH)/power/power_ext.c
|
|
TARGET_POWERHAL_VARIANT := qcom
|
|
|
|
# Properties
|
|
TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
|
|
|
|
# Radio
|
|
BOARD_PROVIDES_LIBRIL := true
|
|
TARGET_RIL_VARIANT := caf
|
|
|
|
# Recovery
|
|
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(COMMON_PATH)/recovery/recovery_keys.c
|
|
BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
|
|
BOARD_USES_MMCUTILS := true
|
|
BOARD_HAS_LARGE_FILESYSTEM := true
|
|
BOARD_HAS_NO_MISC_PARTITION := true
|
|
BOARD_HAS_NO_SELECT_BUTTON := true
|
|
BOARD_RECOVERY_SWIPE := true
|
|
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom
|
|
|
|
# SELinux
|
|
include $(COMMON_PATH)/sepolicy/sepolicy.mk
|
|
|
|
# Sensors
|
|
TARGET_NO_SENSOR_PERMISSION_CHECK := true
|
|
|
|
# TWRP Support - Optional
|
|
ifeq ($(WITH_TWRP),true)
|
|
-include $(COMMON_PATH)/twrp.mk
|
|
endif
|
|
|
|
# Use Snapdragon LLVM if available on build server
|
|
TARGET_USE_SDCLANG := true
|
|
|
|
# inherit from the proprietary version
|
|
-include vendor/samsung/s3ve3g-common/BoardConfigVendor.mk
|