blob: 9b19707523ff644f655c72da39d36c54d21c9474 [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +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 := true
33TARGET_NO_RECOVERY := true
34
35BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
36TARGET_USERIMAGES_USE_EXT4 := true
37TARGET_COPY_OUT_VENDOR := vendor
38BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
39TARGET_COPY_OUT_SYSTEM_EXT := system_ext
40BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
Yongqin Liu55663172020-03-28 11:30:25 +080041TARGET_COPY_OUT_PRODUCT := product
42BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
Amit Pundir4e375822019-04-18 16:46:10 +053043BOARD_USES_METADATA_PARTITION := true
44# Super partition
45TARGET_USE_DYNAMIC_PARTITIONS := true
46BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
47BOARD_SUPER_PARTITION_GROUPS := db_dynamic_partitions
Yongqin Liu55663172020-03-28 11:30:25 +080048BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
Amit Pundir4e375822019-04-18 16:46:10 +053049
50# Enable Treble
51PRODUCT_FULL_TREBLE := true
52BOARD_VNDK_VERSION := current
53
54# Mesa DRM hwcomposer
55BOARD_USES_DRM_HWCOMPOSER := true
John Stultzdd29e432021-10-06 22:32:11 +000056BOARD_GPU_DRIVERS := freedreno
Amit Pundir4e375822019-04-18 16:46:10 +053057TARGET_USES_HWC2 := true
John Stultzdd29e432021-10-06 22:32:11 +000058BOARD_MESA3D_USES_MESON_BUILD := true
59BOARD_MESA3D_GALLIUM_DRIVERS := freedreno
60BOARD_MESA3D_VULKAN_DRIVERS := freedreno
61
Amit Pundir4e375822019-04-18 16:46:10 +053062
63# WiFi
64WPA_SUPPLICANT_VERSION := VER_0_8_X
65BOARD_WPA_SUPPLICANT_DRIVER := NL80211
66BOARD_HOSTAPD_DRIVER := NL80211
67BOARD_WLAN_DEVICE := qcwcn
68BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
69
70# BT
71BOARD_HAVE_BLUETOOTH := true
72
73BOARD_SEPOLICY_DIRS += \
74 device/linaro/dragonboard/sepolicy \
75 system/bt/vendor_libs/linux/sepolicy
76
77DEVICE_MANIFEST_FILE := device/linaro/dragonboard/manifest.xml
78DEVICE_MATRIX_FILE := device/linaro/dragonboard/compatibility_matrix.xml
79
80# Enable dex pre-opt to speed up initial boot
81ifeq ($(HOST_OS),linux)
82 ifeq ($(WITH_DEXPREOPT),)
83 WITH_DEXPREOPT := true
84 WITH_DEXPREOPT_PIC := true
85 endif
86endif
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053087
88# Copy firmware files to ramdisk/vendor_ramdisk to workaround
89# the dependency on FW_LOADER_USER_HELPER_FALLBACK kernel config
90BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true