merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2021 The LineageOS Project |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 7 | BUILD_BROKEN_DUP_RULES := true |
| 8 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 9 | BOARD_VENDOR := fairphone |
| 10 | DEVICE_PATH := device/fairphone/FP4 |
| 11 | |
Luca Stefani | 82ac435 | 2019-09-12 23:47:56 +0200 | [diff] [blame] | 12 | # APEX |
| 13 | DEXPREOPT_GENERATE_APEX_IMAGE := true |
| 14 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 15 | # Architecture |
| 16 | TARGET_ARCH := arm64 |
| 17 | TARGET_ARCH_VARIANT := armv8-a |
| 18 | TARGET_CPU_ABI := arm64-v8a |
| 19 | TARGET_CPU_ABI2 := |
| 20 | TARGET_CPU_VARIANT := cortex-a76 |
| 21 | |
| 22 | TARGET_2ND_ARCH := arm |
| 23 | TARGET_2ND_ARCH_VARIANT := armv8-a |
| 24 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 25 | TARGET_2ND_CPU_ABI2 := armeabi |
| 26 | TARGET_2ND_CPU_VARIANT := cortex-a76 |
| 27 | |
| 28 | # Assert |
| 29 | TARGET_OTA_ASSERT_DEVICE := FP4 |
| 30 | |
| 31 | # A/B |
| 32 | AB_OTA_UPDATER := true |
| 33 | AB_OTA_PARTITIONS += \ |
| 34 | recovery |
| 35 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 36 | # Audio |
| 37 | AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true |
| 38 | AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true |
| 39 | AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true |
| 40 | AUDIO_FEATURE_ENABLED_HDMI_SPK := true |
| 41 | AUDIO_FEATURE_ENABLED_INSTANCE_ID := true |
| 42 | AUDIO_FEATURE_ENABLED_SSR := true |
| 43 | AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true |
| 44 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 45 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 46 | # Binder API version |
| 47 | TARGET_USES_64_BIT_BINDER := true |
| 48 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 49 | # Bluetooth |
| 50 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include |
| 51 | TARGET_USE_QTI_BT_STACK := true |
| 52 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 53 | # Display |
merothh | 7af51cb | 2022-01-02 20:14:21 +0530 | [diff] [blame^] | 54 | MAX_VIRTUAL_DISPLAY_DIMENSION := 4096 |
| 55 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
| 56 | TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true |
| 57 | TARGET_HAS_HDR_DISPLAY := true |
| 58 | TARGET_HAS_WIDE_COLOR_DISPLAY := true |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 59 | TARGET_SCREEN_DENSITY := 440 |
merothh | 7af51cb | 2022-01-02 20:14:21 +0530 | [diff] [blame^] | 60 | TARGET_USES_DISPLAY_RENDER_INTENTS := true |
| 61 | TARGET_USES_GRALLOC4 := true |
| 62 | TARGET_USES_HWC2 := true |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 63 | |
merothh | 74ca26a | 2022-01-02 19:12:01 +0530 | [diff] [blame] | 64 | # HIDL |
| 65 | DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ |
| 66 | $(DEVICE_PATH)/framework_compatibility_matrix.xml \ |
| 67 | vendor/lineage/config/device_framework_matrix.xml |
| 68 | DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml |
| 69 | DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml |
| 70 | ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest-qva.xml |
| 71 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 72 | # Kernel |
| 73 | BOARD_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 |
| 74 | BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
| 75 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 76 | BOARD_INCLUDE_RECOVERY_DTBO := true |
| 77 | BOARD_KERNEL_SEPARATED_DTBO := true |
| 78 | BOARD_BOOTIMG_HEADER_VERSION := 2 |
| 79 | BOARD_KERNEL_BASE := 0x00000000 |
| 80 | BOARD_KERNEL_PAGESIZE := 4096 |
| 81 | BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) |
| 82 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION) |
| 83 | BOARD_KERNEL_IMAGE_NAME := Image |
| 84 | TARGET_KERNEL_ARCH := arm64 |
| 85 | TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc |
| 86 | TARGET_KERNEL_CLANG_COMPILE := true |
| 87 | TARGET_KERNEL_SOURCE := kernel/fairphone/FP4 |
| 88 | TARGET_KERNEL_CONFIG := lineage_FP4_defconfig |
| 89 | |
| 90 | # Partitions |
| 91 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296 |
| 92 | TARGET_COPY_OUT_VENDOR := vendor |
| 93 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 94 | # Platform |
| 95 | BOARD_USES_QCOM_HARDWARE := true |
| 96 | TARGET_BOARD_PLATFORM := lito |
| 97 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 98 | # Recovery |
| 99 | TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.default |
| 100 | TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 |
| 101 | TARGET_RECOVERY_UI_MARGIN_HEIGHT := 50 |
| 102 | TARGET_RECOVERY_UI_MARGIN_WIDTH := 10 |
| 103 | TARGET_USERIMAGES_USE_EXT4 := true |
| 104 | TARGET_USERIMAGES_USE_F2FS := true |
merothh | acf1dfa | 2022-01-02 18:21:21 +0530 | [diff] [blame] | 105 | |
| 106 | # Security patch level |
| 107 | VENDOR_SECURITY_PATCH := 2021-11-05 |
| 108 | |
| 109 | # Inherit the proprietary files |
| 110 | include vendor/fairphone/FP4/BoardConfigVendor.mk |