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 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 16 | |
| 17 | TARGET_NO_BOOTLOADER := true |
| 18 | TARGET_NO_KERNEL := true |
| 19 | TARGET_NO_RECOVERY := true |
| 20 | |
Amit Pundir | 3d8b3c6 | 2023-06-05 15:22:50 +0530 | [diff] [blame^] | 21 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := erofs |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 22 | TARGET_USERIMAGES_USE_EXT4 := true |
| 23 | TARGET_COPY_OUT_VENDOR := vendor |
Amit Pundir | 3d8b3c6 | 2023-06-05 15:22:50 +0530 | [diff] [blame^] | 24 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := erofs |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 25 | TARGET_COPY_OUT_SYSTEM_EXT := system_ext |
Amit Pundir | 3d8b3c6 | 2023-06-05 15:22:50 +0530 | [diff] [blame^] | 26 | BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := erofs |
Yongqin Liu | 5566317 | 2020-03-28 11:30:25 +0800 | [diff] [blame] | 27 | TARGET_COPY_OUT_PRODUCT := product |
Amit Pundir | 3d8b3c6 | 2023-06-05 15:22:50 +0530 | [diff] [blame^] | 28 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := erofs |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 29 | BOARD_USES_METADATA_PARTITION := true |
| 30 | # Super partition |
| 31 | TARGET_USE_DYNAMIC_PARTITIONS := true |
| 32 | BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true |
| 33 | BOARD_SUPER_PARTITION_GROUPS := db_dynamic_partitions |
Yongqin Liu | 5566317 | 2020-03-28 11:30:25 +0800 | [diff] [blame] | 34 | BOARD_DB_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor system_ext product |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 35 | |
| 36 | # Enable Treble |
| 37 | PRODUCT_FULL_TREBLE := true |
| 38 | BOARD_VNDK_VERSION := current |
| 39 | |
| 40 | # Mesa DRM hwcomposer |
| 41 | BOARD_USES_DRM_HWCOMPOSER := true |
John Stultz | dd29e43 | 2021-10-06 22:32:11 +0000 | [diff] [blame] | 42 | BOARD_GPU_DRIVERS := freedreno |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 43 | TARGET_USES_HWC2 := true |
John Stultz | b101435 | 2022-02-01 06:32:16 +0000 | [diff] [blame] | 44 | |
| 45 | ifeq ($(TARGET_BUILD_MESA),true) |
John Stultz | dd29e43 | 2021-10-06 22:32:11 +0000 | [diff] [blame] | 46 | BOARD_MESA3D_USES_MESON_BUILD := true |
| 47 | BOARD_MESA3D_GALLIUM_DRIVERS := freedreno |
| 48 | BOARD_MESA3D_VULKAN_DRIVERS := freedreno |
John Stultz | b101435 | 2022-02-01 06:32:16 +0000 | [diff] [blame] | 49 | else |
| 50 | BOARD_USE_CUSTOMIZED_MESA := true |
| 51 | endif |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 52 | |
| 53 | # WiFi |
| 54 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 55 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 56 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 57 | BOARD_WLAN_DEVICE := qcwcn |
| 58 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 59 | |
| 60 | # BT |
| 61 | BOARD_HAVE_BLUETOOTH := true |
| 62 | |
| 63 | BOARD_SEPOLICY_DIRS += \ |
| 64 | device/linaro/dragonboard/sepolicy \ |
| 65 | system/bt/vendor_libs/linux/sepolicy |
| 66 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 67 | # Enable dex pre-opt to speed up initial boot |
| 68 | ifeq ($(HOST_OS),linux) |
| 69 | ifeq ($(WITH_DEXPREOPT),) |
| 70 | WITH_DEXPREOPT := true |
| 71 | WITH_DEXPREOPT_PIC := true |
| 72 | endif |
| 73 | endif |
Amit Pundir | fbd3fbb | 2021-11-18 14:59:17 +0530 | [diff] [blame] | 74 | |
| 75 | # Copy firmware files to ramdisk/vendor_ramdisk to workaround |
| 76 | # the dependency on FW_LOADER_USER_HELPER_FALLBACK kernel config |
| 77 | BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true |