2018-07-05 18:02:08 +02:00
|
|
|
# Copyright (C) 2014-2016 The CyanogenMod Project
|
|
|
|
# Copyright (C) 2017-2018 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.
|
|
|
|
|
2019-10-28 10:00:21 +01:00
|
|
|
LOCAL_PATH := device/samsung/mondrianwifi
|
2016-11-30 16:20:35 +01:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
# temporary
|
|
|
|
BUILD_BROKEN_DUP_RULES := true
|
2016-01-10 15:55:38 +01:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
BOARD_VENDOR := samsung
|
2016-01-10 15:55:38 +01:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
# Include path
|
|
|
|
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
|
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_BOOTLOADER := true
|
|
|
|
TARGET_NO_RADIOIMAGE := true
|
2016-01-10 15:55:38 +01:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
# Platform
|
|
|
|
TARGET_BOARD_PLATFORM := msm8974
|
2020-05-26 10:20:23 +02:00
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno330
|
2018-07-05 18:02:08 +02:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
# Architecture
|
|
|
|
TARGET_ARCH := arm
|
|
|
|
TARGET_ARCH_VARIANT := armv7-a-neon
|
|
|
|
TARGET_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_CPU_ABI2 := armeabi
|
|
|
|
TARGET_CPU_VARIANT := generic
|
|
|
|
TARGET_CPU_VARIANT_RUNTIME := krait
|
|
|
|
|
|
|
|
# Binder API version
|
|
|
|
TARGET_USES_64_BIT_BINDER := true
|
2018-07-05 18:02:08 +02:00
|
|
|
|
2016-01-10 15:55:38 +01:00
|
|
|
# Kernel
|
|
|
|
BOARD_KERNEL_BASE := 0x00000000
|
2019-12-05 10:22:07 +01:00
|
|
|
#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 maxcpus=1
|
2021-08-24 23:24:47 +02:00
|
|
|
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 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
|
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
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
# Audio
|
|
|
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_POST_PROC := true
|
|
|
|
AUDIO_FEATURE_ENABLED_FLUENCE := true
|
|
|
|
AUDIO_FEATURE_ENABLED_HFP := true
|
|
|
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
|
|
|
BOARD_USES_ALSA_AUDIO := true
|
2019-02-17 09:43:20 +01:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
|
|
|
|
|
|
# Bluetooth
|
|
|
|
BLUETOOTH_HCI_USE_MCT := true
|
|
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
|
|
|
|
BOARD_HAVE_BLUETOOTH_QCOM := true
|
|
|
|
QCOM_BT_USE_SMD_TTY := true
|
|
|
|
|
|
|
|
# Camera
|
|
|
|
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
|
2021-08-25 09:32:32 +02:00
|
|
|
MALLOC_SVELTE_FOR_LIBC32 := true
|
2019-12-05 10:22:07 +01:00
|
|
|
|
|
|
|
# Charger
|
|
|
|
BOARD_BATTERY_DEVICE_NAME := "battery"
|
|
|
|
BOARD_CHARGING_CMDLINE_NAME := "androidboot.bootchg"
|
|
|
|
BOARD_CHARGING_CMDLINE_VALUE := "true"
|
|
|
|
WITH_LINEAGE_CHARGER := false
|
|
|
|
|
|
|
|
# Dexpreopt
|
|
|
|
ifeq ($(HOST_OS),linux)
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false
|
|
|
|
WITH_DEXPREOPT := true
|
|
|
|
endif
|
|
|
|
endif
|
2016-11-17 12:23:41 +01:00
|
|
|
|
2016-01-10 15:55:38 +01:00
|
|
|
# Partitions
|
2017-10-10 19:03:00 +02:00
|
|
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
2016-01-10 15:55:38 +01:00
|
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
|
|
|
|
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
|
2016-02-12 22:57:28 +01:00
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2000000000
|
2019-10-28 10:00:21 +01:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12661537792
|
2019-12-05 10:22:07 +01:00
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
|
|
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
|
2020-05-26 10:23:41 +02:00
|
|
|
# Extended Filesystem Support
|
|
|
|
TARGET_EXFAT_DRIVER := sdfat
|
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
# Filesystem
|
|
|
|
TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs
|
|
|
|
|
|
|
|
# Ramdisk
|
|
|
|
BOARD_ROOT_EXTRA_FOLDERS += firmware firmware-modem efs misc
|
|
|
|
|
|
|
|
# Graphics
|
|
|
|
MAX_EGL_CACHE_KEY_SIZE := 12*1024
|
|
|
|
MAX_EGL_CACHE_SIZE := 2048*1024
|
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U
|
2021-08-25 07:57:51 +02:00
|
|
|
TARGET_DISABLE_POSTRENDER_CLEANUP := true
|
2019-12-05 10:22:07 +01:00
|
|
|
TARGET_BOOTANIMATION_MULTITHREAD_DECODE := true
|
|
|
|
TARGET_CONTINUOUS_SPLASH_ENABLED := true
|
|
|
|
TARGET_USES_ION := true
|
|
|
|
USE_OPENGL_RENDERER := true
|
|
|
|
|
|
|
|
# HIDL
|
|
|
|
DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml
|
|
|
|
DEVICE_MATRIX_FILE := $(LOCAL_PATH)/compatibility_matrix.xml
|
2021-08-24 18:39:28 +02:00
|
|
|
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
|
2019-12-05 10:22:07 +01:00
|
|
|
|
|
|
|
# Netd
|
|
|
|
TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE := true
|
|
|
|
|
|
|
|
# Keymaster
|
|
|
|
TARGET_PROVIDES_KEYMASTER := true
|
|
|
|
|
|
|
|
# Power
|
|
|
|
TARGET_USES_INTERACTION_BOOST := true
|
|
|
|
|
|
|
|
# Time services
|
|
|
|
BOARD_USES_QC_TIME_SERVICES := true
|
|
|
|
|
|
|
|
# Qualcomm support
|
|
|
|
BOARD_USES_QCOM_HARDWARE := true
|
|
|
|
|
|
|
|
# SDClang
|
|
|
|
TARGET_USE_SDCLANG := true
|
|
|
|
|
|
|
|
TARGET_LD_SHIM_LIBS = \
|
|
|
|
/system/vendor/lib/hw/camera.vendor.msm8974.so|libshim_camera.so
|
|
|
|
|
|
|
|
TARGET_LD_SHIM_LIBS += \
|
|
|
|
/system/vendor/lib/libperipheral_client.so|libshim_binder.so
|
|
|
|
|
|
|
|
TARGET_PROCESS_SDK_VERSION_OVERRIDE += \
|
|
|
|
/system/bin/mediaserver=22 \
|
2019-12-10 12:48:18 +01:00
|
|
|
/system/vendor/bin/mm-qcamera-daemon=22
|
2019-12-05 10:22:07 +01:00
|
|
|
|
|
|
|
# Lineage Hardware
|
|
|
|
JAVA_SOURCE_OVERLAYS := org.lineageos.hardware|$(LOCAL_PATH)/lineagehw|**/*.java
|
|
|
|
|
|
|
|
# Filesystem
|
|
|
|
TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs
|
2016-01-10 15:55:38 +01:00
|
|
|
|
2019-02-17 15:53:00 +01:00
|
|
|
# Security patch level - P905XXUABPE2
|
|
|
|
VENDOR_SECURITY_PATCH := 2016-05-01
|
|
|
|
|
2016-01-10 15:55:38 +01:00
|
|
|
# Recovery
|
2021-08-24 07:59:31 +02:00
|
|
|
BOARD_RAMDISK_USE_XZ := true
|
2019-12-05 10:22:07 +01:00
|
|
|
BOARD_HAS_DOWNLOAD_MODE := true
|
|
|
|
|
2018-07-06 19:38:25 +02:00
|
|
|
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../$(LOCAL_PATH)/recovery/recovery_keys.c
|
2017-10-10 19:03:00 +02:00
|
|
|
BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
|
|
|
|
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
|
2018-07-06 19:38:25 +02:00
|
|
|
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.qcom
|
2016-01-10 15:55:38 +01:00
|
|
|
|
|
|
|
# SELinux
|
2018-07-05 18:02:08 +02:00
|
|
|
include $(LOCAL_PATH)/sepolicy/sepolicy.mk
|
2017-10-10 19:03:00 +02:00
|
|
|
|
2020-05-26 10:20:23 +02:00
|
|
|
SELINUX_IGNORE_NEVERALLOWS := true
|
|
|
|
|
|
|
|
# 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
|
2016-11-17 12:23:41 +01:00
|
|
|
|
2017-10-10 19:03:00 +02:00
|
|
|
# inherit from the proprietary version
|
2019-10-28 10:00:21 +01:00
|
|
|
-include vendor/samsung/mondrianwifi/BoardConfigVendor.mk
|