blob: ca70e593809cac31a3cad4aef17952651324f48c [file] [log] [blame]
Amit Pundirc738b812019-06-19 16:13:49 +05301# Copyright (C) 2013 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16# Primary Arch
17TARGET_ARCH := arm64
18TARGET_ARCH_VARIANT := armv8-2a
19TARGET_CPU_VARIANT := kryo385
20TARGET_CPU_ABI := arm64-v8a
21
22# Secondary Arch
23TARGET_2ND_ARCH := arm
24TARGET_2ND_ARCH_VARIANT := armv8-2a
25TARGET_2ND_CPU_VARIANT := kryo385
26TARGET_2ND_CPU_ABI := armeabi-v7a
27TARGET_2ND_CPU_ABI2 := armeabi
28
29TARGET_USES_64_BIT_BINDER := true
30
31TARGET_NO_BOOTLOADER := true
32TARGET_NO_KERNEL := false
33TARGET_NO_RECOVERY := true
34
Alexander Martinz28349532022-01-10 17:05:19 +010035# Kernel/boot.img Configuration
36BOARD_KERNEL_BASE := 0x00000000
37BOARD_KERNEL_PAGESIZE := 4096
38BOARD_KERNEL_TAGS_OFFSET := 0x00000100
39BOARD_RAMDISK_OFFSET := 0x01000000
40BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon earlyprintk console=tty0 androidboot.console=ttyMSM0
41BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc@0/1d84000.ufshc
42BOARD_KERNEL_CMDLINE += androidboot.hardware=sdm845
43BOARD_KERNEL_CMDLINE += firmware_class.path=/vendor/firmware/ init=/init printk.devkmsg=on
44BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30
45
46# Image Configuration
47BOARD_FLASH_BLOCK_SIZE := 262144
48BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M
49BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
50BOARD_USERDATAIMAGE_PARTITION_SIZE := 57453555712
51BOARD_VENDORIMAGE_PARTITION_SIZE := 536870912
52
Amit Pundir276a0552019-11-23 22:27:15 +053053BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
Amit Pundirc738b812019-06-19 16:13:49 +053054TARGET_USERIMAGES_USE_EXT4 := true
Alexander Martinzbf2f33b2022-01-07 17:25:46 +010055TARGET_USERIMAGES_USE_F2FS := true
Amit Pundirc738b812019-06-19 16:13:49 +053056TARGET_COPY_OUT_VENDOR := vendor
57BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
58
59# Enable Treble
Amit Pundir276a0552019-11-23 22:27:15 +053060PRODUCT_FULL_TREBLE := true
Amit Pundirc738b812019-06-19 16:13:49 +053061BOARD_VNDK_VERSION := current
62
63# Mesa DRM hwcomposer
64BOARD_USES_DRM_HWCOMPOSER := true
65BOARD_GPU_DRIVERS := freedreno virgl
66TARGET_USES_HWC2 := true
67
68# WiFi
69WPA_SUPPLICANT_VERSION := VER_0_8_X
70BOARD_WPA_SUPPLICANT_DRIVER := NL80211
71BOARD_HOSTAPD_DRIVER := NL80211
72BOARD_WLAN_DEVICE := qcwcn
73BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
74
75# BT
76BOARD_HAVE_BLUETOOTH := true
77
Caleb Connollyd3e01642021-10-29 21:17:02 +010078# TinyHAL
79BOARD_USES_TINYHAL_AUDIO := true
80
Amit Pundirc738b812019-06-19 16:13:49 +053081BOARD_SEPOLICY_DIRS += \
Caleb Connollyac639022021-08-06 10:21:00 +010082 device/generic/sdm845/sepolicy \
Amit Pundirc738b812019-06-19 16:13:49 +053083 system/bt/vendor_libs/linux/sepolicy
84
Caleb Connollyac639022021-08-06 10:21:00 +010085DEVICE_MANIFEST_FILE := device/generic/sdm845/manifest.xml
86DEVICE_MATRIX_FILE := device/generic/sdm845/compatibility_matrix.xml
Amit Pundirc738b812019-06-19 16:13:49 +053087
88# Enable dex pre-opt to speed up initial boot
89ifeq ($(HOST_OS),linux)
90 ifeq ($(WITH_DEXPREOPT),)
91 WITH_DEXPREOPT := true
92 WITH_DEXPREOPT_PIC := true
93 endif
94endif