blob: 87cde99cce7197180032b6b58bbd66d4369ecf56 [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
Amit Pundir4e375822019-04-18 16:46:10 +053016TARGET_USES_64_BIT_BINDER := true
17
18TARGET_NO_BOOTLOADER := true
19TARGET_NO_KERNEL := true
20TARGET_NO_RECOVERY := true
21
22BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
23TARGET_USERIMAGES_USE_EXT4 := true
24TARGET_COPY_OUT_VENDOR := vendor
25BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
26TARGET_COPY_OUT_SYSTEM_EXT := system_ext
27BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
Yongqin Liu55663172020-03-28 11:30:25 +080028TARGET_COPY_OUT_PRODUCT := product
29BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
Amit Pundir4e375822019-04-18 16:46:10 +053030BOARD_USES_METADATA_PARTITION := true
31# Super partition
32TARGET_USE_DYNAMIC_PARTITIONS := true
33BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
34BOARD_SUPER_PARTITION_GROUPS := db_dynamic_partitions
Yongqin Liu55663172020-03-28 11:30:25 +080035BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product
Amit Pundir4e375822019-04-18 16:46:10 +053036
37# Enable Treble
38PRODUCT_FULL_TREBLE := true
39BOARD_VNDK_VERSION := current
40
41# Mesa DRM hwcomposer
42BOARD_USES_DRM_HWCOMPOSER := true
John Stultzdd29e432021-10-06 22:32:11 +000043BOARD_GPU_DRIVERS := freedreno
Amit Pundir4e375822019-04-18 16:46:10 +053044TARGET_USES_HWC2 := true
John Stultzb1014352022-02-01 06:32:16 +000045
46ifeq ($(TARGET_BUILD_MESA),true)
John Stultzdd29e432021-10-06 22:32:11 +000047BOARD_MESA3D_USES_MESON_BUILD := true
48BOARD_MESA3D_GALLIUM_DRIVERS := freedreno
49BOARD_MESA3D_VULKAN_DRIVERS := freedreno
John Stultzb1014352022-02-01 06:32:16 +000050else
51BOARD_USE_CUSTOMIZED_MESA := true
52endif
Amit Pundir4e375822019-04-18 16:46:10 +053053
54# WiFi
55WPA_SUPPLICANT_VERSION := VER_0_8_X
56BOARD_WPA_SUPPLICANT_DRIVER := NL80211
57BOARD_HOSTAPD_DRIVER := NL80211
58BOARD_WLAN_DEVICE := qcwcn
59BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
60
61# BT
62BOARD_HAVE_BLUETOOTH := true
63
64BOARD_SEPOLICY_DIRS += \
65 device/linaro/dragonboard/sepolicy \
66 system/bt/vendor_libs/linux/sepolicy
67
Amit Pundir4e375822019-04-18 16:46:10 +053068# Enable dex pre-opt to speed up initial boot
69ifeq ($(HOST_OS),linux)
70 ifeq ($(WITH_DEXPREOPT),)
71 WITH_DEXPREOPT := true
72 WITH_DEXPREOPT_PIC := true
73 endif
74endif
Amit Pundirfbd3fbb2021-11-18 14:59:17 +053075
76# Copy firmware files to ramdisk/vendor_ramdisk to workaround
77# the dependency on FW_LOADER_USER_HELPER_FALLBACK kernel config
78BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true