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 | |
Sebastiano Barezzi | 2789dea | 2021-02-10 22:01:11 +0100 | [diff] [blame] | 64 | # DRM |
| 65 | TARGET_ENABLE_MEDIADRM_64 := true |
| 66 | |
merothh | 1b7e530 | 2022-01-03 00:41:34 +0530 | [diff] [blame^] | 67 | # Filesystem |
| 68 | TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs |
| 69 | |
merothh | 74ca26a | 2022-01-02 19:12:01 +0530 | [diff] [blame] | 70 | # HIDL |
| 71 | DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ |
| 72 | $(DEVICE_PATH)/framework_compatibility_matrix.xml \ |
| 73 | vendor/lineage/config/device_framework_matrix.xml |
| 74 | DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml |
| 75 | DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml |
| 76 | ODM_MANIFEST_FILES := $(DEVICE_PATH)/manifest-qva.xml |
| 77 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 78 | # Kernel |
| 79 | 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 |
| 80 | BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
| 81 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 82 | BOARD_INCLUDE_RECOVERY_DTBO := true |
| 83 | BOARD_KERNEL_SEPARATED_DTBO := true |
| 84 | BOARD_BOOTIMG_HEADER_VERSION := 2 |
| 85 | BOARD_KERNEL_BASE := 0x00000000 |
| 86 | BOARD_KERNEL_PAGESIZE := 4096 |
| 87 | BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64) |
| 88 | BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION) |
| 89 | BOARD_KERNEL_IMAGE_NAME := Image |
| 90 | TARGET_KERNEL_ARCH := arm64 |
| 91 | TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc |
| 92 | TARGET_KERNEL_CLANG_COMPILE := true |
| 93 | TARGET_KERNEL_SOURCE := kernel/fairphone/FP4 |
| 94 | TARGET_KERNEL_CONFIG := lineage_FP4_defconfig |
| 95 | |
Erfan Abdi | dfd3663 | 2020-12-18 01:12:50 +0330 | [diff] [blame] | 96 | # Kernel modules - Audio |
| 97 | TARGET_MODULE_ALIASES += \ |
| 98 | adsp_loader_dlkm.ko:audio_adsp_loader.ko \ |
| 99 | apr_dlkm.ko:audio_apr.ko \ |
| 100 | bolero_cdc_dlkm.ko:audio_bolero_cdc.ko \ |
| 101 | hdmi_dlkm.ko:audio_hdmi.ko \ |
| 102 | machine_dlkm.ko:audio_machine_lito.ko \ |
| 103 | mbhc_dlkm.ko:audio_mbhc.ko \ |
| 104 | native_dlkm.ko:audio_native.ko \ |
| 105 | pinctrl_lpi_dlkm.ko:audio_pinctrl_lpi.ko \ |
| 106 | platform_dlkm.ko:audio_platform.ko \ |
| 107 | q6_dlkm.ko:audio_q6.ko \ |
| 108 | q6_notifier_dlkm.ko:audio_q6_notifier.ko \ |
| 109 | q6_pdr_dlkm.ko:audio_q6_pdr.ko \ |
| 110 | rx_macro_dlkm.ko:audio_rx_macro.ko \ |
| 111 | snd_event_dlkm.ko:audio_snd_event.ko \ |
| 112 | stub_dlkm.ko:audio_stub.ko \ |
| 113 | swr_ctrl_dlkm.ko:audio_swr_ctrl.ko \ |
| 114 | swr_dlkm.ko:audio_swr.ko \ |
| 115 | tx_macro_dlkm.ko:audio_tx_macro.ko \ |
| 116 | usf_dlkm.ko:audio_usf.ko \ |
| 117 | va_macro_dlkm.ko:audio_va_macro.ko \ |
| 118 | wcd937x_dlkm.ko:audio_wcd937x.ko \ |
| 119 | wcd937x_slave_dlkm.ko:audio_wcd937x_slave.ko \ |
| 120 | wcd938x_dlkm.ko:audio_wcd938x.ko \ |
| 121 | wcd938x_slave_dlkm.ko:audio_wcd938x_slave.ko \ |
| 122 | wcd9xxx_dlkm.ko:audio_wcd9xxx.ko \ |
| 123 | wcd_core_dlkm.ko:audio_wcd_core.ko \ |
| 124 | wsa881x_dlkm.ko:audio_wsa881x.ko \ |
| 125 | wsa883x_dlkm.ko:audio_wsa883x.ko \ |
| 126 | wsa_macro_dlkm.ko:audio_wsa_macro.ko |
| 127 | |
| 128 | # Kernel modules - WLAN |
| 129 | TARGET_MODULE_ALIASES += \ |
| 130 | wlan.ko:qca_cld3_wlan.ko |
| 131 | |
Hyejin Kim | 49e328f | 2015-03-06 14:49:37 +0900 | [diff] [blame] | 132 | # Media |
| 133 | TARGET_USES_ION := true |
| 134 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 135 | # Partitions |
| 136 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296 |
| 137 | TARGET_COPY_OUT_VENDOR := vendor |
| 138 | |
merothh | 750fa00 | 2022-01-02 19:42:51 +0530 | [diff] [blame] | 139 | # Platform |
| 140 | BOARD_USES_QCOM_HARDWARE := true |
| 141 | TARGET_BOARD_PLATFORM := lito |
| 142 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 143 | # Recovery |
| 144 | TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.default |
| 145 | TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 |
| 146 | TARGET_RECOVERY_UI_MARGIN_HEIGHT := 50 |
| 147 | TARGET_RECOVERY_UI_MARGIN_WIDTH := 10 |
| 148 | TARGET_USERIMAGES_USE_EXT4 := true |
| 149 | TARGET_USERIMAGES_USE_F2FS := true |
merothh | acf1dfa | 2022-01-02 18:21:21 +0530 | [diff] [blame] | 150 | |
Sebastiano Barezzi | d70ce29 | 2021-02-10 22:08:35 +0100 | [diff] [blame] | 151 | # RIL |
| 152 | ENABLE_VENDOR_RIL_SERVICE := true |
| 153 | |
merothh | acf1dfa | 2022-01-02 18:21:21 +0530 | [diff] [blame] | 154 | # Security patch level |
| 155 | VENDOR_SECURITY_PATCH := 2021-11-05 |
| 156 | |
Sebastiano Barezzi | fd6e1f8 | 2021-02-10 22:10:19 +0100 | [diff] [blame] | 157 | # Wifi |
| 158 | BOARD_WLAN_DEVICE := qcwcn |
| 159 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 160 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 161 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 162 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 163 | WIFI_DRIVER_DEFAULT := qca_cld3 |
| 164 | WIFI_DRIVER_STATE_CTRL_PARAM := "/dev/wlan" |
| 165 | WIFI_DRIVER_STATE_OFF := "OFF" |
| 166 | WIFI_DRIVER_STATE_ON := "ON" |
| 167 | WIFI_HIDL_FEATURE_DUAL_INTERFACE := true |
| 168 | WIFI_HIDL_FEATURE_AWARE := true |
| 169 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 170 | |
merothh | acf1dfa | 2022-01-02 18:21:21 +0530 | [diff] [blame] | 171 | # Inherit the proprietary files |
| 172 | include vendor/fairphone/FP4/BoardConfigVendor.mk |