Peter Collingbourne | 157c396 | 2022-01-31 18:19:06 -0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2022 The Android Open-Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | include device/linaro/dragonboard/BoardConfigCommon.mk |
| 18 | |
| 19 | # Primary Arch |
| 20 | TARGET_ARCH := arm64 |
| 21 | TARGET_ARCH_VARIANT := armv8-a-branchprot |
| 22 | TARGET_CPU_VARIANT := kryo385 |
| 23 | TARGET_CPU_ABI := arm64-v8a |
| 24 | |
| 25 | # Secondary Arch |
| 26 | TARGET_2ND_ARCH := arm |
| 27 | TARGET_2ND_ARCH_VARIANT := armv8-2a |
| 28 | TARGET_2ND_CPU_VARIANT := kryo385 |
| 29 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 30 | TARGET_2ND_CPU_ABI2 := armeabi |
| 31 | |
| 32 | # Board Information |
| 33 | TARGET_BOOTLOADER_BOARD_NAME := sm8450 |
| 34 | TARGET_BOARD_PLATFORM := sm8450 |
| 35 | |
| 36 | TARGET_NO_KERNEL := false |
| 37 | BOARD_KERNEL_BASE := 0x80000000 |
| 38 | BOARD_KERNEL_PAGESIZE := 4096 |
| 39 | |
| 40 | BOARD_INCLUDE_DTB_IN_BOOTIMG := true |
| 41 | BOARD_BOOT_HEADER_VERSION := 2 |
| 42 | BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION) |
| 43 | |
| 44 | BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=sm8450 |
| 45 | BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on |
| 46 | BOARD_KERNEL_CMDLINE += allow_mismatched_32bit_el0 |
| 47 | |
| 48 | # Image Configuration |
| 49 | BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M |
| 50 | BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M |
| 51 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 |
| 52 | BOARD_FLASH_BLOCK_SIZE := 131072 |
| 53 | |
| 54 | # Super/Dynamic partition |
| 55 | BOARD_SUPER_PARTITION_SIZE := 6442450944 |
| 56 | BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 6438256640 # Reserve 4M for DAP metadata |
| 57 | BOARD_SUPER_PARTITION_METADATA_DEVICE := super |
| 58 | BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true |