Alexander Martinz | 54fdc2d | 2021-04-22 14:19:05 +0200 | [diff] [blame^] | 1 | # |
| 2 | # Copyright 2021 SHIFT GmbH |
| 3 | # Copyright 2021 The LineageOS Project |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | |
| 18 | # Use the non-open-source parts, if they're present |
| 19 | -include vendor/shift/axolotl/BoardConfigVendor.mk |
| 20 | |
| 21 | DEVICE_PATH := device/shift/axolotl |
| 22 | |
| 23 | BOARD_VENDOR := shift |
| 24 | |
| 25 | ########## |
| 26 | |
| 27 | # Architecture |
| 28 | TARGET_ARCH := arm64 |
| 29 | TARGET_ARCH_VARIANT := armv8-a |
| 30 | TARGET_CPU_ABI := arm64-v8a |
| 31 | TARGET_CPU_ABI2 := |
| 32 | TARGET_CPU_VARIANT := generic |
| 33 | TARGET_CPU_VARIANT_RUNTIME := kryo385 |
| 34 | |
| 35 | TARGET_2ND_ARCH := arm |
| 36 | TARGET_2ND_ARCH_VARIANT := armv8-2a |
| 37 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 38 | TARGET_2ND_CPU_ABI2 := armeabi |
| 39 | TARGET_2ND_CPU_VARIANT := generic |
| 40 | TARGET_2ND_CPU_VARIANT_RUNTIME := kryo385 |
| 41 | |
| 42 | # Bootloader |
| 43 | TARGET_BOOTLOADER_BOARD_NAME := sdm845 |
| 44 | TARGET_NO_BOOTLOADER := true |
| 45 | TARGET_NO_KERNEL := false |
| 46 | |
| 47 | # Kernel |
| 48 | TARGET_KERNEL_ARCH := arm64 |
| 49 | TARGET_KERNEL_HEADER_ARCH := arm64 |
| 50 | TARGET_KERNEL_CLANG_COMPILE := true |
| 51 | TARGET_KERNEL_CONFIG := lineage_axolotl_defconfig |
| 52 | TARGET_KERNEL_SOURCE := kernel/shift/sdm845 |
| 53 | #TARGET_NEEDS_DTBOIMAGE := true |
| 54 | TARGET_USES_UNCOMPRESSED_KERNEL := false |
| 55 | |
| 56 | BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb |
| 57 | BOARD_KERNEL_BASE := 0x00000000 |
| 58 | BOARD_KERNEL_PAGESIZE := 4096 |
| 59 | BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 |
| 60 | BOARD_RAMDISK_OFFSET := 0x02000000 |
| 61 | |
| 62 | BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xA84000 androidboot.console=ttyMSM0 printk.devkmsg=on |
| 63 | BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom video=vfb:640x400,bpp=32,memsize=3072000 androidboot.configfs=true loop.max_part=7 |
| 64 | BOARD_KERNEL_CMDLINE += msm_rtb.filter=0x237 |
| 65 | BOARD_KERNEL_CMDLINE += ehci-hcd.park=3 |
| 66 | BOARD_KERNEL_CMDLINE += service_locator.enable=1 |
| 67 | BOARD_KERNEL_CMDLINE += androidboot.memcg=1 cgroup.memory=nokmem |
| 68 | BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3 swiotlb=2048 |
| 69 | BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc/1d84000.ufshc |
| 70 | BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
| 71 | |
| 72 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 73 | BOARD_MKBOOTIMG_ARGS := --header_version 2 |
| 74 | |
| 75 | # Platform |
| 76 | TARGET_BOARD_PLATFORM := sdm845 |
| 77 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno630 |
| 78 | |
| 79 | ########## |
| 80 | |
| 81 | # AB |
| 82 | AB_OTA_UPDATER := true |
| 83 | #AB_OTA_PARTITIONS += boot dtbo system vendor vbmeta vbmeta_system vbmeta_vendor |
| 84 | AB_OTA_PARTITIONS += system vbmeta |
| 85 | |
| 86 | # APEX |
| 87 | DEXPREOPT_GENERATE_APEX_IMAGE := true |
| 88 | |
| 89 | # Audio |
| 90 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 91 | |
| 92 | # Bluetooth |
| 93 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth |
| 94 | |
| 95 | # Treble |
| 96 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 97 | BOARD_VNDK_VERSION := current |
| 98 | TARGET_COPY_OUT_VENDOR := vendor |
| 99 | TARGET_COPY_OUT_PRODUCT := product |
| 100 | TARGET_USES_64_BIT_BINDER := true |
| 101 | |
| 102 | # GSI forces product packages to /system for now. |
| 103 | TARGET_COPY_OUT_PRODUCT := system/product |
| 104 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := |
| 105 | |
| 106 | # Partitions |
| 107 | BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000 |
| 108 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06000000 |
| 109 | TARGET_USERIMAGES_USE_EXT4 := true |
| 110 | TARGET_USERIMAGES_USE_F2FS := true |
| 111 | |
| 112 | # Partitions - DTBO |
| 113 | BOARD_DTBOIMG_PARTITION_SIZE := 0x0800000 |
| 114 | #BOARD_PREBUILT_DTBOIMAGE := out/target/product/$(TARGET_PRODUCT)/prebuilt_dtbo.img |
| 115 | |
| 116 | # Enable dynamic system image size and reserved 64MB in it. |
| 117 | BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864 |
| 118 | |
| 119 | # Partition mount points under root |
| 120 | BOARD_USES_METADATA_PARTITION := true |
| 121 | |
| 122 | # Dynamic Partitions |
| 123 | BOARD_DYNAMIC_PARTITION_ENABLE := true |
| 124 | BOARD_EXT4_SHARE_DUP_BLOCKS := true |
| 125 | BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 6438256640 |
| 126 | #BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := system product vendor |
| 127 | BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := system |
| 128 | BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions |
| 129 | BOARD_SUPER_PARTITION_SIZE := 12884901888 |
| 130 | |
| 131 | # Recovery |
| 132 | #BOARD_INCLUDE_RECOVERY_DTBO := true |
| 133 | TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.axolotl |
| 134 | TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 |
| 135 | TARGET_RECOVERY_UI_LIB := \ |
| 136 | libfstab \ |
| 137 | |
| 138 | # Verified Boot |
| 139 | BOARD_AVB_ENABLE := true |
| 140 | |
| 141 | # Qualcomm BSP |
| 142 | BOARD_USES_QCOM_HARDWARE := true |
| 143 | BUILD_WITHOUT_VENDOR := true |
| 144 | |
| 145 | TARGET_SYSTEM_PROP := $(DEVICE_PATH)/system.prop |