132 lines
4.2 KiB
Makefile
Executable File
132 lines
4.2 KiB
Makefile
Executable File
# Copyright (C) 2012 The CyanogenMod Project
|
|
# Copyright (C) 2017-2019,2021 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 msm8974
|
|
include device/samsung/msm8974-common/BoardConfigCommon.mk
|
|
|
|
DEVICE_PATH := device/samsung/mondrianwifi
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include
|
|
|
|
# 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
|
|
|
|
# Bootloader
|
|
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
|
|
TARGET_NO_RADIOIMAGE := true
|
|
|
|
# Filesystem
|
|
TARGET_FS_CONFIG_GEN += $(DEVICE_PATH)/config.fs
|
|
|
|
# HIDL
|
|
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml
|
|
|
|
# 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
|
|
BOARD_KERNEL_IMAGE_NAME := zImage
|
|
BOARD_KERNEL_PAGESIZE := 2048
|
|
BOARD_KERNEL_SEPARATED_DT := true
|
|
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000
|
|
BOARD_CUSTOM_BOOTIMG := true
|
|
BOARD_CUSTOM_BOOTIMG_MK := hardware/samsung/mkbootimg.mk
|
|
BOARD_RAMDISK_USE_XZ := true
|
|
TARGET_KERNEL_ARCH := arm
|
|
TARGET_KERNEL_CONFIG := lineage_mondrian_defconfig
|
|
TARGET_KERNEL_SOURCE := kernel/samsung/msm8974_tab
|
|
|
|
# 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
|
|
|
|
# LMKD stats logging
|
|
TARGET_LMKD_STATS_LOG := true
|
|
|
|
# Partitions
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
|
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 13631488
|
|
# 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
|
|
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
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
# Properties
|
|
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
|
|
|
|
# Keymaster
|
|
TARGET_PROVIDES_KEYMASTER := true
|
|
|
|
# Security patch level
|
|
VENDOR_SECURITY_PATCH := 2017-02-01
|
|
|
|
# Recovery
|
|
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(DEVICE_PATH)/recovery/recovery_keys.c
|
|
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_DENSITY := xhdpi
|
|
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
|
|
|
|
# SELinux
|
|
include $(DEVICE_PATH)/sepolicy/sepolicy.mk
|
|
|
|
# Sensors
|
|
TARGET_NO_SENSOR_PERMISSION_CHECK := true
|
|
|
|
# Wifi
|
|
BOARD_HAS_QCOM_WLAN := true
|
|
BOARD_WLAN_DEVICE := qcwcn
|
|
BOARD_HOSTAPD_DRIVER := NL80211
|
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn
|
|
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"
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
|
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
|
|
|
|
# inherit from the proprietary version
|
|
include vendor/samsung/mondrianwifi/BoardConfigVendor.mk
|
|
|
|
# TWRP Support - Optional
|
|
ifeq ($(WITH_TWRP),true)
|
|
-include $(DEVICE_PATH)/twrp.mk
|
|
endif
|