blob: 7904e692b41e8254b4f9af75c33fbb49612687bf [file] [log] [blame]
merothh54856102021-11-04 12:07:41 +05301#
2# Copyright (C) 2021 The LineageOS Project
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
merothh750fa002022-01-02 19:42:51 +05307BUILD_BROKEN_DUP_RULES := true
8
merothh54856102021-11-04 12:07:41 +05309BOARD_VENDOR := fairphone
10DEVICE_PATH := device/fairphone/FP4
11
Luca Stefani82ac4352019-09-12 23:47:56 +020012# APEX
13DEXPREOPT_GENERATE_APEX_IMAGE := true
14
merothh54856102021-11-04 12:07:41 +053015# Architecture
16TARGET_ARCH := arm64
17TARGET_ARCH_VARIANT := armv8-a
18TARGET_CPU_ABI := arm64-v8a
19TARGET_CPU_ABI2 :=
20TARGET_CPU_VARIANT := cortex-a76
21
22TARGET_2ND_ARCH := arm
23TARGET_2ND_ARCH_VARIANT := armv8-a
24TARGET_2ND_CPU_ABI := armeabi-v7a
25TARGET_2ND_CPU_ABI2 := armeabi
26TARGET_2ND_CPU_VARIANT := cortex-a76
27
28# Assert
29TARGET_OTA_ASSERT_DEVICE := FP4
30
31# A/B
32AB_OTA_UPDATER := true
33AB_OTA_PARTITIONS += \
34 recovery
35
merothh750fa002022-01-02 19:42:51 +053036# Audio
37AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
38AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
39AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
40AUDIO_FEATURE_ENABLED_HDMI_SPK := true
41AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
42AUDIO_FEATURE_ENABLED_SSR := true
43AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
44USE_CUSTOM_AUDIO_POLICY := 1
45
merothh54856102021-11-04 12:07:41 +053046# Binder API version
47TARGET_USES_64_BIT_BINDER := true
48
merothh750fa002022-01-02 19:42:51 +053049# Bluetooth
50BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
51TARGET_USE_QTI_BT_STACK := true
52
merothh54856102021-11-04 12:07:41 +053053# Display
54TARGET_SCREEN_DENSITY := 440
55
merothh74ca26a2022-01-02 19:12:01 +053056# HIDL
57DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
58 $(DEVICE_PATH)/framework_compatibility_matrix.xml \
59 vendor/lineage/config/device_framework_matrix.xml
60DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml
61DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml
62ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest-qva.xml
63
merothh54856102021-11-04 12:07:41 +053064# Kernel
65BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 cgroup.memory=nokmem,nosocket loop.max_part=7
66BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
67BOARD_INCLUDE_DTB_IN_BOOTIMG := true
68BOARD_INCLUDE_RECOVERY_DTBO := true
69BOARD_KERNEL_SEPARATED_DTBO := true
70BOARD_BOOTIMG_HEADER_VERSION := 2
71BOARD_KERNEL_BASE := 0x00000000
72BOARD_KERNEL_PAGESIZE := 4096
73BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
74BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
75BOARD_KERNEL_IMAGE_NAME := Image
76TARGET_KERNEL_ARCH := arm64
77TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc
78TARGET_KERNEL_CLANG_COMPILE := true
79TARGET_KERNEL_SOURCE := kernel/fairphone/FP4
80TARGET_KERNEL_CONFIG := lineage_FP4_defconfig
81
82# Partitions
83BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296
84TARGET_COPY_OUT_VENDOR := vendor
85
merothh750fa002022-01-02 19:42:51 +053086# Platform
87BOARD_USES_QCOM_HARDWARE := true
88TARGET_BOARD_PLATFORM := lito
89
merothh54856102021-11-04 12:07:41 +053090# Recovery
91TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.default
92TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
93TARGET_RECOVERY_UI_MARGIN_HEIGHT := 50
94TARGET_RECOVERY_UI_MARGIN_WIDTH := 10
95TARGET_USERIMAGES_USE_EXT4 := true
96TARGET_USERIMAGES_USE_F2FS := true
merothhacf1dfa2022-01-02 18:21:21 +053097
98# Security patch level
99VENDOR_SECURITY_PATCH := 2021-11-05
100
101# Inherit the proprietary files
102include vendor/fairphone/FP4/BoardConfigVendor.mk