blob: 4c8d837666dfc4b2bc4ce9a82e98ebc8ba84bc65 [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
7BOARD_VENDOR := fairphone
8DEVICE_PATH := device/fairphone/FP4
9
10# Architecture
11TARGET_ARCH := arm64
12TARGET_ARCH_VARIANT := armv8-a
13TARGET_CPU_ABI := arm64-v8a
14TARGET_CPU_ABI2 :=
15TARGET_CPU_VARIANT := cortex-a76
16
17TARGET_2ND_ARCH := arm
18TARGET_2ND_ARCH_VARIANT := armv8-a
19TARGET_2ND_CPU_ABI := armeabi-v7a
20TARGET_2ND_CPU_ABI2 := armeabi
21TARGET_2ND_CPU_VARIANT := cortex-a76
22
23# Assert
24TARGET_OTA_ASSERT_DEVICE := FP4
25
26# A/B
27AB_OTA_UPDATER := true
28AB_OTA_PARTITIONS += \
29 recovery
30
31# Binder API version
32TARGET_USES_64_BIT_BINDER := true
33
34# Display
35TARGET_SCREEN_DENSITY := 440
36
37# Kernel
38BOARD_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
39BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
40BOARD_INCLUDE_DTB_IN_BOOTIMG := true
41BOARD_INCLUDE_RECOVERY_DTBO := true
42BOARD_KERNEL_SEPARATED_DTBO := true
43BOARD_BOOTIMG_HEADER_VERSION := 2
44BOARD_KERNEL_BASE := 0x00000000
45BOARD_KERNEL_PAGESIZE := 4096
46BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
47BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
48BOARD_KERNEL_IMAGE_NAME := Image
49TARGET_KERNEL_ARCH := arm64
50TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc
51TARGET_KERNEL_CLANG_COMPILE := true
52TARGET_KERNEL_SOURCE := kernel/fairphone/FP4
53TARGET_KERNEL_CONFIG := lineage_FP4_defconfig
54
55# Partitions
56BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296
57TARGET_COPY_OUT_VENDOR := vendor
58
59# Recovery
60TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.default
61TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
62TARGET_RECOVERY_UI_MARGIN_HEIGHT := 50
63TARGET_RECOVERY_UI_MARGIN_WIDTH := 10
64TARGET_USERIMAGES_USE_EXT4 := true
65TARGET_USERIMAGES_USE_F2FS := true