32bc16a609
Remove text relocations since in this device it never worked and it has been replaced by TARGET_PROCESS_SDK_VERSION_OVERRIDE.
116 lines
3.4 KiB
Makefile
116 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/matisse-common
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(COMMON_PATH)/include
|
|
|
|
# Audio
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|
|
|
|
# APEX
|
|
TARGET_FLATTEN_APEX := true
|
|
|
|
# Bluetooth
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
|
QCOM_BT_USE_BTNV := true
|
|
|
|
# Bootloader
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8226
|
|
|
|
# Build
|
|
BLOCK_BASED_OTA := true
|
|
|
|
# Build Fingerprint
|
|
BUILD_FINGERPRINT := samsung/matissewifixx/matissewifi:5.0.2/LRX22G/T530XXS1BRH1:user/release-keys
|
|
|
|
# Charger
|
|
BOARD_NO_CHARGER_LED := true
|
|
BOARD_CHARGER_DISABLE_INIT_BLANK := true
|
|
|
|
# Display
|
|
TARGET_SCREEN_DENSITY := 160
|
|
|
|
# Extended Filesystem Support
|
|
TARGET_EXFAT_DRIVER := sdfat
|
|
|
|
# HIDL
|
|
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/manifest.xml
|
|
|
|
# Init
|
|
TARGET_INIT_VENDOR_LIB := //$(COMMON_PATH):libinit_matisse
|
|
|
|
# Kernel
|
|
BOARD_KERNEL_BASE := 0x00000000
|
|
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x37 zcache.enabled=1 zcache.compressor=lz4
|
|
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_LD_SHIM_LIBS += \
|
|
/system/vendor/lib/libperipheral_client.so|libshim_binder.so
|
|
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 := 314572800
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2362232012
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12884901888
|
|
TARGET_USES_MKE2FS := true
|
|
|
|
# Power HAL
|
|
TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(COMMON_PATH)/power/power_ext.c
|
|
|
|
# Properties
|
|
TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
|
|
|
|
# Radio
|
|
BOARD_PROVIDES_LIBRIL := true
|
|
|
|
# Recovery
|
|
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(COMMON_PATH)/recovery/recovery_keys.c
|
|
BOARD_USES_MMCUTILS := true
|
|
BOARD_HAS_LARGE_FILESYSTEM := true
|
|
BOARD_HAS_NO_SELECT_BUTTON := true
|
|
BOARD_RECOVERY_SWIPE := true
|
|
TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom
|
|
# We have very small recovery partition, and we can't use higher DPI.
|
|
TARGET_RECOVERY_DENSITY := mdpi
|
|
|
|
# SELinux
|
|
include $(COMMON_PATH)/sepolicy/sepolicy.mk
|
|
|
|
# Sensors
|
|
TARGET_NO_SENSOR_PERMISSION_CHECK := true
|
|
|
|
# inherit from the proprietary version
|
|
-include vendor/samsung/matisse-common/BoardConfigVendor.mk
|
|
|