android_device_samsung_mond.../BoardConfig.mk

132 lines
4.2 KiB
Makefile
Raw Normal View History

# Copyright (C) 2012 The CyanogenMod Project
# Copyright (C) 2017-2019,2021 The LineageOS Project
2016-01-10 15:55:38 +01:00
#
# 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 msm8974
include device/samsung/msm8974-common/BoardConfigCommon.mk
2016-11-30 16:20:35 +01:00
DEVICE_PATH := device/samsung/mondrianwifi
2016-01-10 15:55:38 +01:00
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include
2016-01-10 15:55:38 +01:00
# Audio
USE_CUSTOM_AUDIO_POLICY := 1
# Bluetooth
BLUETOOTH_HCI_USE_MCT := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
BOARD_HAVE_BLUETOOTH_QCOM := true
QCOM_BT_USE_SMD_TTY := true
2017-12-31 22:53:06 +01:00
2016-01-10 15:55:38 +01:00
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
2019-12-05 10:22:07 +01:00
TARGET_NO_RADIOIMAGE := true
2016-01-10 15:55:38 +01:00
# Filesystem
TARGET_FS_CONFIG_GEN += $(DEVICE_PATH)/config.fs
2019-12-05 10:22:07 +01:00
# HIDL
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml
2018-07-05 18:02:08 +02:00
2016-01-10 15:55:38 +01:00
# Kernel
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 zcache.enabled=1 zcache.compressor=lz4 androidboot.selinux=permissive
2017-12-31 22:53:06 +01:00
BOARD_KERNEL_IMAGE_NAME := zImage
2016-01-10 15:55:38 +01:00
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_SEPARATED_DT := true
2019-12-05 10:22:07 +01:00
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000
2017-10-10 19:03:00 +02:00
BOARD_CUSTOM_BOOTIMG := true
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
BOARD_RAMDISK_USE_XZ := true
2019-12-05 10:22:07 +01:00
TARGET_KERNEL_ARCH := arm
2019-10-28 10:00:21 +01:00
TARGET_KERNEL_CONFIG := lineage_mondrian_defconfig
TARGET_KERNEL_SOURCE := kernel/samsung/msm8974_tab
2016-01-10 15:55:38 +01:00
# Legacy BLOB Support
TARGET_LD_SHIM_LIBS += \
/system/vendor/lib/hw/camera.vendor.msm8974.so|libshim_camera.so \
/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
2019-12-05 10:22:07 +01:00
# LMKD stats logging
TARGET_LMKD_STATS_LOG := true
2016-01-10 15:55:38 +01:00
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
2016-01-10 15:55:38 +01:00
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 13631488
2019-12-05 10:22:07 +01:00
# Use a conservative size to make sure don't run out of space
# US variant is: 2569011200
# EU variant is: 2411724800
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2411724800
2019-10-28 10:00:21 +01:00
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12661537792
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_ROOT_EXTRA_FOLDERS := efs firmware firmware-modem misc
BOARD_ROOT_EXTRA_SYMLINKS := \
/data/tombstones:/tombstones
2019-12-05 10:22:07 +01:00
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
# Properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
2019-12-05 10:22:07 +01:00
# Keymaster
TARGET_PROVIDES_KEYMASTER := true
# Security patch level
VENDOR_SECURITY_PATCH := 2017-02-01
2016-01-10 15:55:38 +01:00
# Recovery
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(DEVICE_PATH)/recovery/recovery_keys.c
2017-10-10 19:03:00 +02:00
BOARD_USES_MMCUTILS := true
2016-01-10 15:55:38 +01:00
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_HAS_NO_MISC_PARTITION := true
BOARD_HAS_NO_SELECT_BUTTON := true
BOARD_RECOVERY_SWIPE := true
TARGET_RECOVERY_DENSITY := xhdpi
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
2016-01-10 15:55:38 +01:00
# SELinux
include $(DEVICE_PATH)/sepolicy/sepolicy.mk
2020-05-26 10:20:23 +02:00
# Sensors
TARGET_NO_SENSOR_PERMISSION_CHECK := true
2017-10-10 19:03:00 +02:00
# Wifi
2019-10-28 10:00:21 +01:00
BOARD_HAS_QCOM_WLAN := true
BOARD_WLAN_DEVICE := qcwcn
2016-01-10 15:55:38 +01:00
BOARD_HOSTAPD_DRIVER := NL80211
2019-12-05 10:22:07 +01:00
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
2016-01-10 15:55:38 +01:00
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
2019-12-05 10:22:07 +01:00
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
2019-10-28 10:00:21 +01:00
PRODUCT_VENDOR_MOVE_ENABLED := true
TARGET_USES_WCNSS_CTRL := true
TARGET_DISABLE_WCNSS_CONFIG_COPY := true
TARGET_USES_QCOM_WCNSS_QMI := true
WIFI_DRIVER_FW_PATH_AP := "ap"
WIFI_DRIVER_FW_PATH_STA := "sta"
2016-01-10 15:55:38 +01:00
WPA_SUPPLICANT_VERSION := VER_0_8_X
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
2016-11-17 12:23:41 +01:00
2017-10-10 19:03:00 +02:00
# inherit from the proprietary version
include vendor/samsung/mondrianwifi/BoardConfigVendor.mk
2021-08-29 17:29:24 +02:00
# TWRP Support - Optional
ifeq ($(WITH_TWRP),true)
-include $(DEVICE_PATH)/twrp.mk
endif