Amit Pundir | c738b81 | 2019-06-19 16:13:49 +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 := false |
| 33 | TARGET_NO_RECOVERY := true |
| 34 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 35 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4 |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 36 | TARGET_USERIMAGES_USE_EXT4 := true |
| 37 | TARGET_COPY_OUT_VENDOR := vendor |
| 38 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 39 | |
| 40 | # Enable Treble |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 41 | PRODUCT_FULL_TREBLE := true |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 42 | BOARD_VNDK_VERSION := current |
| 43 | |
| 44 | # Mesa DRM hwcomposer |
| 45 | BOARD_USES_DRM_HWCOMPOSER := true |
| 46 | BOARD_GPU_DRIVERS := freedreno virgl |
| 47 | TARGET_USES_HWC2 := true |
| 48 | |
| 49 | # WiFi |
| 50 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 51 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 52 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 53 | BOARD_WLAN_DEVICE := qcwcn |
| 54 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 55 | |
| 56 | # BT |
| 57 | BOARD_HAVE_BLUETOOTH := true |
| 58 | |
| 59 | BOARD_SEPOLICY_DIRS += \ |
| 60 | device/xiaomi/beryllium/sepolicy \ |
| 61 | system/bt/vendor_libs/linux/sepolicy |
| 62 | |
| 63 | DEVICE_MANIFEST_FILE := device/xiaomi/beryllium/manifest.xml |
| 64 | DEVICE_MATRIX_FILE := device/xiaomi/beryllium/compatibility_matrix.xml |
| 65 | |
| 66 | # Enable dex pre-opt to speed up initial boot |
| 67 | ifeq ($(HOST_OS),linux) |
| 68 | ifeq ($(WITH_DEXPREOPT),) |
| 69 | WITH_DEXPREOPT := true |
| 70 | WITH_DEXPREOPT_PIC := true |
| 71 | endif |
| 72 | endif |