blob: de61ceaf0ae83ab19b98a91d0b5320e001dcbb03 [file] [log] [blame]
Peter Collingbourne157c3962022-01-31 18:19:06 -08001#
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
17include device/linaro/dragonboard/BoardConfigCommon.mk
18
19# Primary Arch
20TARGET_ARCH := arm64
21TARGET_ARCH_VARIANT := armv8-a-branchprot
22TARGET_CPU_VARIANT := kryo385
23TARGET_CPU_ABI := arm64-v8a
24
25# Secondary Arch
26TARGET_2ND_ARCH := arm
27TARGET_2ND_ARCH_VARIANT := armv8-2a
28TARGET_2ND_CPU_VARIANT := kryo385
29TARGET_2ND_CPU_ABI := armeabi-v7a
30TARGET_2ND_CPU_ABI2 := armeabi
31
32# Board Information
33TARGET_BOOTLOADER_BOARD_NAME := sm8450
34TARGET_BOARD_PLATFORM := sm8450
35
36TARGET_NO_KERNEL := false
37BOARD_KERNEL_BASE := 0x80000000
38BOARD_KERNEL_PAGESIZE := 4096
39
40BOARD_INCLUDE_DTB_IN_BOOTIMG := true
41BOARD_BOOT_HEADER_VERSION := 2
42BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
43
44BOARD_KERNEL_CMDLINE := earlycon firmware_class.path=/vendor/firmware/ androidboot.hardware=sm8450
45BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc@0/1d84000.ufshc printk.devkmsg=on
46BOARD_KERNEL_CMDLINE += allow_mismatched_32bit_el0
47
48# Image Configuration
49BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M
50BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M
51BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480
52BOARD_FLASH_BLOCK_SIZE := 131072
53
54# Super/Dynamic partition
55BOARD_SUPER_PARTITION_SIZE := 6442450944
56BOARD_DB_DYNAMIC_PARTITIONS_SIZE := 6438256640 # Reserve 4M for DAP metadata
57BOARD_SUPER_PARTITION_METADATA_DEVICE := super
58BOARD_SUPER_IMAGE_IN_UPDATE_PACKAGE := true