| # |
| # Copyright (C) 2021 The LineageOS Project |
| # |
| # SPDX-License-Identifier: Apache-2.0 |
| # |
| |
| BOARD_VENDOR := fairphone |
| DEVICE_PATH := device/fairphone/FP4 |
| |
| # APEX |
| DEXPREOPT_GENERATE_APEX_IMAGE := true |
| |
| # Architecture |
| TARGET_ARCH := arm64 |
| TARGET_ARCH_VARIANT := armv8-a |
| TARGET_CPU_ABI := arm64-v8a |
| TARGET_CPU_ABI2 := |
| TARGET_CPU_VARIANT := cortex-a76 |
| |
| TARGET_2ND_ARCH := arm |
| TARGET_2ND_ARCH_VARIANT := armv8-a |
| TARGET_2ND_CPU_ABI := armeabi-v7a |
| TARGET_2ND_CPU_ABI2 := armeabi |
| TARGET_2ND_CPU_VARIANT := cortex-a76 |
| |
| # Assert |
| TARGET_OTA_ASSERT_DEVICE := FP4 |
| |
| # A/B |
| AB_OTA_UPDATER := true |
| AB_OTA_PARTITIONS += \ |
| recovery |
| |
| # Binder API version |
| TARGET_USES_64_BIT_BINDER := true |
| |
| # Display |
| TARGET_SCREEN_DENSITY := 440 |
| |
| # HIDL |
| DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ |
| $(DEVICE_PATH)/framework_compatibility_matrix.xml \ |
| vendor/lineage/config/device_framework_matrix.xml |
| DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml |
| DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml |
| ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest-qva.xml |
| |
| # Kernel |
| 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 |
| BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
| BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| BOARD_INCLUDE_RECOVERY_DTBO := true |
| BOARD_KERNEL_SEPARATED_DTBO := true |
| BOARD_BOOTIMG_HEADER_VERSION := 2 |
| BOARD_KERNEL_BASE := 0x00000000 |
| BOARD_KERNEL_PAGESIZE := 4096 |
| BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) |
| BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION) |
| BOARD_KERNEL_IMAGE_NAME := Image |
| TARGET_KERNEL_ARCH := arm64 |
| TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc |
| TARGET_KERNEL_CLANG_COMPILE := true |
| TARGET_KERNEL_SOURCE := kernel/fairphone/FP4 |
| TARGET_KERNEL_CONFIG := lineage_FP4_defconfig |
| |
| # Partitions |
| BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296 |
| TARGET_COPY_OUT_VENDOR := vendor |
| |
| # Recovery |
| TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.default |
| TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 |
| TARGET_RECOVERY_UI_MARGIN_HEIGHT := 50 |
| TARGET_RECOVERY_UI_MARGIN_WIDTH := 10 |
| TARGET_USERIMAGES_USE_EXT4 := true |
| TARGET_USERIMAGES_USE_F2FS := true |
| |
| # Security patch level |
| VENDOR_SECURITY_PATCH := 2021-11-05 |
| |
| # Inherit the proprietary files |
| include vendor/fairphone/FP4/BoardConfigVendor.mk |