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 | |
Alexander Martinz | 2834953 | 2022-01-10 17:05:19 +0100 | [diff] [blame] | 35 | # Kernel/boot.img Configuration |
| 36 | BOARD_KERNEL_BASE := 0x00000000 |
| 37 | BOARD_KERNEL_PAGESIZE := 4096 |
| 38 | BOARD_KERNEL_TAGS_OFFSET := 0x00000100 |
| 39 | BOARD_RAMDISK_OFFSET := 0x01000000 |
| 40 | BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon earlyprintk console=tty0 androidboot.console=ttyMSM0 |
| 41 | BOARD_KERNEL_CMDLINE += androidboot.boot_devices=soc@0/1d84000.ufshc |
Alexander Martinz | 2834953 | 2022-01-10 17:05:19 +0100 | [diff] [blame] | 42 | BOARD_KERNEL_CMDLINE += firmware_class.path=/vendor/firmware/ init=/init printk.devkmsg=on |
Caleb Connolly | 4146e5d | 2022-04-05 18:42:59 +0100 | [diff] [blame] | 43 | BOARD_KERNEL_CMDLINE += deferred_probe_timeout=30 androidboot.selinux=permissive |
Alexander Martinz | 2834953 | 2022-01-10 17:05:19 +0100 | [diff] [blame] | 44 | |
| 45 | # Image Configuration |
| 46 | BOARD_FLASH_BLOCK_SIZE := 262144 |
| 47 | BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M |
Alexander Martinz | 2834953 | 2022-01-10 17:05:19 +0100 | [diff] [blame] | 48 | BOARD_VENDORIMAGE_PARTITION_SIZE := 536870912 |
| 49 | |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 50 | BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4 |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 51 | TARGET_USERIMAGES_USE_EXT4 := true |
Alexander Martinz | bf2f33b | 2022-01-07 17:25:46 +0100 | [diff] [blame] | 52 | TARGET_USERIMAGES_USE_F2FS := true |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 53 | TARGET_COPY_OUT_VENDOR := vendor |
| 54 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 55 | |
| 56 | # Enable Treble |
Amit Pundir | 276a055 | 2019-11-23 22:27:15 +0530 | [diff] [blame] | 57 | PRODUCT_FULL_TREBLE := true |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 58 | BOARD_VNDK_VERSION := current |
| 59 | |
| 60 | # Mesa DRM hwcomposer |
| 61 | BOARD_USES_DRM_HWCOMPOSER := true |
| 62 | BOARD_GPU_DRIVERS := freedreno virgl |
| 63 | TARGET_USES_HWC2 := true |
| 64 | |
| 65 | # WiFi |
| 66 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 67 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 68 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 69 | BOARD_WLAN_DEVICE := qcwcn |
| 70 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) |
| 71 | |
| 72 | # BT |
| 73 | BOARD_HAVE_BLUETOOTH := true |
| 74 | |
Caleb Connolly | d3e0164 | 2021-10-29 21:17:02 +0100 | [diff] [blame] | 75 | # TinyHAL |
| 76 | BOARD_USES_TINYHAL_AUDIO := true |
| 77 | |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 78 | BOARD_SEPOLICY_DIRS += \ |
Caleb Connolly | ac63902 | 2021-08-06 10:21:00 +0100 | [diff] [blame] | 79 | device/generic/sdm845/sepolicy \ |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 80 | system/bt/vendor_libs/linux/sepolicy |
| 81 | |
Caleb Connolly | ac63902 | 2021-08-06 10:21:00 +0100 | [diff] [blame] | 82 | DEVICE_MANIFEST_FILE := device/generic/sdm845/manifest.xml |
| 83 | DEVICE_MATRIX_FILE := device/generic/sdm845/compatibility_matrix.xml |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 84 | |
| 85 | # Enable dex pre-opt to speed up initial boot |
| 86 | ifeq ($(HOST_OS),linux) |
| 87 | ifeq ($(WITH_DEXPREOPT),) |
| 88 | WITH_DEXPREOPT := true |
| 89 | WITH_DEXPREOPT_PIC := true |
| 90 | endif |
| 91 | endif |