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 | |
| 7 | BOARD_VENDOR := fairphone |
| 8 | DEVICE_PATH := device/fairphone/FP4 |
| 9 | |
Luca Stefani | 82ac435 | 2019-09-12 23:47:56 +0200 | [diff] [blame] | 10 | # APEX |
| 11 | DEXPREOPT_GENERATE_APEX_IMAGE := true |
| 12 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 13 | # Architecture |
| 14 | TARGET_ARCH := arm64 |
| 15 | TARGET_ARCH_VARIANT := armv8-a |
| 16 | TARGET_CPU_ABI := arm64-v8a |
| 17 | TARGET_CPU_ABI2 := |
| 18 | TARGET_CPU_VARIANT := cortex-a76 |
| 19 | |
| 20 | TARGET_2ND_ARCH := arm |
| 21 | TARGET_2ND_ARCH_VARIANT := armv8-a |
| 22 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 23 | TARGET_2ND_CPU_ABI2 := armeabi |
| 24 | TARGET_2ND_CPU_VARIANT := cortex-a76 |
| 25 | |
| 26 | # Assert |
| 27 | TARGET_OTA_ASSERT_DEVICE := FP4 |
| 28 | |
| 29 | # A/B |
| 30 | AB_OTA_UPDATER := true |
| 31 | AB_OTA_PARTITIONS += \ |
| 32 | recovery |
| 33 | |
| 34 | # Binder API version |
| 35 | TARGET_USES_64_BIT_BINDER := true |
| 36 | |
| 37 | # Display |
| 38 | TARGET_SCREEN_DENSITY := 440 |
| 39 | |
merothh | 74ca26a | 2022-01-02 19:12:01 +0530 | [diff] [blame^] | 40 | # HIDL |
| 41 | DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ |
| 42 | $(DEVICE_PATH)/framework_compatibility_matrix.xml \ |
| 43 | vendor/lineage/config/device_framework_matrix.xml |
| 44 | DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml |
| 45 | DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml |
| 46 | ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest-qva.xml |
| 47 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 48 | # Kernel |
| 49 | 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 |
| 50 | BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
| 51 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 52 | BOARD_INCLUDE_RECOVERY_DTBO := true |
| 53 | BOARD_KERNEL_SEPARATED_DTBO := true |
| 54 | BOARD_BOOTIMG_HEADER_VERSION := 2 |
| 55 | BOARD_KERNEL_BASE := 0x00000000 |
| 56 | BOARD_KERNEL_PAGESIZE := 4096 |
| 57 | BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) |
| 58 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION) |
| 59 | BOARD_KERNEL_IMAGE_NAME := Image |
| 60 | TARGET_KERNEL_ARCH := arm64 |
| 61 | TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc |
| 62 | TARGET_KERNEL_CLANG_COMPILE := true |
| 63 | TARGET_KERNEL_SOURCE := kernel/fairphone/FP4 |
| 64 | TARGET_KERNEL_CONFIG := lineage_FP4_defconfig |
| 65 | |
| 66 | # Partitions |
| 67 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296 |
| 68 | TARGET_COPY_OUT_VENDOR := vendor |
| 69 | |
| 70 | # Recovery |
| 71 | TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.default |
| 72 | TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 |
| 73 | TARGET_RECOVERY_UI_MARGIN_HEIGHT := 50 |
| 74 | TARGET_RECOVERY_UI_MARGIN_WIDTH := 10 |
| 75 | TARGET_USERIMAGES_USE_EXT4 := true |
| 76 | TARGET_USERIMAGES_USE_F2FS := true |
merothh | acf1dfa | 2022-01-02 18:21:21 +0530 | [diff] [blame] | 77 | |
| 78 | # Security patch level |
| 79 | VENDOR_SECURITY_PATCH := 2021-11-05 |
| 80 | |
| 81 | # Inherit the proprietary files |
| 82 | include vendor/fairphone/FP4/BoardConfigVendor.mk |