Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 1 | # 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 |
| 17 | TARGET_ARCH := arm64 |
| 18 | TARGET_ARCH_VARIANT := armv8-2a |
| 19 | TARGET_CPU_VARIANT := kryo385 |
| 20 | TARGET_CPU_ABI := arm64-v8a |
| 21 | |
| 22 | # Secondary Arch |
| 23 | TARGET_2ND_ARCH := arm |
| 24 | TARGET_2ND_ARCH_VARIANT := armv8-2a |
| 25 | TARGET_2ND_CPU_VARIANT := kryo385 |
| 26 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 27 | TARGET_2ND_CPU_ABI2 := armeabi |
| 28 | |
| 29 | TARGET_USES_64_BIT_BINDER := true |
| 30 | |
| 31 | TARGET_NO_BOOTLOADER := true |
| 32 | TARGET_NO_KERNEL := true |
| 33 | TARGET_NO_RECOVERY := true |
| 34 | |
| 35 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 36 | TARGET_USERIMAGES_USE_EXT4 := true |
| 37 | TARGET_COPY_OUT_VENDOR := vendor |
| 38 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 39 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
| 40 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4 |
Yongqin Liu | 5566317 | 2020-03-28 11:30:25 +0800 | [diff] [blame] | 41 | TARGET_COPY_OUT_PRODUCT := product |
| 42 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 43 | BOARD_USES_METADATA_PARTITION := true |
John Stultz | 70f37c6 | 2020-10-06 05:03:00 +0000 | [diff] [blame] | 44 | # Cache partition size: 64M |
| 45 | BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864 |
| 46 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 47 | # Super partition |
| 48 | TARGET_USE_DYNAMIC_PARTITIONS := true |
| 49 | BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true |
| 50 | BOARD_SUPER_PARTITION_GROUPS := db_dynamic_partitions |
Yongqin Liu | 5566317 | 2020-03-28 11:30:25 +0800 | [diff] [blame] | 51 | BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 52 | |
| 53 | # Enable Treble |
| 54 | PRODUCT_FULL_TREBLE := true |
| 55 | BOARD_VNDK_VERSION := current |
| 56 | |
| 57 | # Mesa DRM hwcomposer |
| 58 | BOARD_USES_DRM_HWCOMPOSER := true |
| 59 | BOARD_GPU_DRIVERS := freedreno virgl |
| 60 | TARGET_USES_HWC2 := true |
| 61 | |
| 62 | # WiFi |
| 63 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 64 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 65 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 66 | BOARD_WLAN_DEVICE := qcwcn |
| 67 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 68 | |
| 69 | # BT |
| 70 | BOARD_HAVE_BLUETOOTH := true |
| 71 | |
| 72 | BOARD_SEPOLICY_DIRS += \ |
| 73 | device/linaro/dragonboard/sepolicy \ |
| 74 | system/bt/vendor_libs/linux/sepolicy |
| 75 | |
| 76 | DEVICE_MANIFEST_FILE := device/linaro/dragonboard/manifest.xml |
| 77 | DEVICE_MATRIX_FILE := device/linaro/dragonboard/compatibility_matrix.xml |
| 78 | |
| 79 | # Enable dex pre-opt to speed up initial boot |
| 80 | ifeq ($(HOST_OS),linux) |
| 81 | ifeq ($(WITH_DEXPREOPT),) |
| 82 | WITH_DEXPREOPT := true |
| 83 | WITH_DEXPREOPT_PIC := true |
| 84 | endif |
| 85 | endif |