1# 2# Copyright (C) 2016 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17TARGET_BOARD_PLATFORM := msm8998 18 19TARGET_ARCH := arm64 20TARGET_ARCH_VARIANT := armv8-a 21TARGET_CPU_ABI := arm64-v8a 22TARGET_CPU_ABI2 := 23TARGET_CPU_VARIANT := cortex-a73 24 25TARGET_2ND_ARCH := arm 26TARGET_2ND_ARCH_VARIANT := armv8-a 27TARGET_2ND_CPU_ABI := armeabi-v7a 28TARGET_2ND_CPU_ABI2 := armeabi 29TARGET_2ND_CPU_VARIANT := cortex-a73 30 31BUILD_BROKEN_DUP_RULES := true 32BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true 33 34BOARD_KERNEL_CMDLINE += androidboot.hardware=$(TARGET_BOOTLOADER_BOARD_NAME) androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 35BOARD_KERNEL_CMDLINE += user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 36BOARD_KERNEL_CMDLINE += service_locator.enable=1 37BOARD_KERNEL_CMDLINE += swiotlb=2048 38BOARD_KERNEL_CMDLINE += firmware_class.path=/vendor/firmware 39BOARD_KERNEL_CMDLINE += loop.max_part=7 40BOARD_KERNEL_CMDLINE += raid=noautodetect 41BOARD_KERNEL_CMDLINE += usbcore.autosuspend=7 42 43BOARD_KERNEL_BASE := 0x00000000 44BOARD_KERNEL_PAGESIZE := 4096 45ifeq ($(filter-out walleye_kasan, muskie_kasan, $(TARGET_PRODUCT)),) 46BOARD_KERNEL_OFFSET := 0x80000 47BOARD_KERNEL_TAGS_OFFSET := 0x02500000 48BOARD_RAMDISK_OFFSET := 0x02700000 49BOARD_MKBOOTIMG_ARGS := --kernel_offset $(BOARD_KERNEL_OFFSET) --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) 50else 51BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 52BOARD_RAMDISK_OFFSET := 0x02000000 53endif 54 55TARGET_NO_BOOTLOADER ?= true 56TARGET_NO_KERNEL := false 57TARGET_NO_RECOVERY := true 58BOARD_USES_RECOVERY_AS_BOOT := true 59BOARD_BUILD_SYSTEM_ROOT_IMAGE := true 60BOARD_USES_METADATA_PARTITION := true 61 62# Partitions (listed in the file) to be wiped under recovery. 63TARGET_RECOVERY_WIPE := device/google/wahoo/recovery.wipe 64TARGET_RECOVERY_FSTAB := device/google/wahoo/fstab.hardware 65 66BOARD_AVB_ENABLE := true 67 68BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 69BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0 70ifneq ($(PRODUCT_INCREASE_INODE_COUNT),true) 71BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096 72else 73BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 8192 74endif 75TARGET_USERIMAGES_USE_EXT4 := true 76BOARD_USERDATAIMAGE_PARTITION_SIZE := 26503790080 77BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432 78BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4 79BOARD_FLASH_BLOCK_SIZE := 131072 80 81# DTBO partition definitions 82BOARD_PREBUILT_DTBOIMAGE := device/google/wahoo-kernel/dtbo.img 83BOARD_DTBOIMG_PARTITION_SIZE := 8388608 84 85TARGET_COPY_OUT_VENDOR := vendor 86 87# Install odex files into the other system image 88BOARD_USES_SYSTEM_OTHER_ODEX := true 89 90BOARD_ROOT_EXTRA_FOLDERS := persist firmware metadata 91 92BOARD_VENDOR_SEPOLICY_DIRS += device/google/wahoo/sepolicy/vendor 93BOARD_PLAT_PUBLIC_SEPOLICY_DIR := device/google/wahoo/sepolicy/public 94BOARD_PLAT_PRIVATE_SEPOLICY_DIR := device/google/wahoo/sepolicy/private 95BOARD_VENDOR_SEPOLICY_DIRS += device/google/wahoo/sepolicy/verizon 96 97TARGET_FS_CONFIG_GEN := device/google/wahoo/config.fs 98 99QCOM_BOARD_PLATFORMS += msm8998 100BOARD_HAVE_BLUETOOTH_QCOM := true 101BOARD_USES_SDM845_BLUETOOTH_HAL := true 102BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/google/wahoo/bluetooth 103 104# Camera 105TARGET_USES_AOSP := true 106BOARD_QTI_CAMERA_32BIT_ONLY := true 107CAMERA_DAEMON_NOT_PRESENT := true 108TARGET_USES_ION := true 109TARGET_USES_EASEL := true 110BOARD_USES_EASEL := true 111 112# GPS 113TARGET_NO_RPC := true 114BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default 115BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true 116 117# RenderScript 118OVERRIDE_RS_DRIVER := libRSDriver_adreno.so 119 120# wlan 121BOARD_WLAN_DEVICE := qcwcn 122BOARD_WPA_SUPPLICANT_DRIVER := NL80211 123BOARD_HOSTAPD_DRIVER := NL80211 124WIFI_DRIVER_DEFAULT := qca_cld3 125WPA_SUPPLICANT_VERSION := VER_0_8_X 126WIFI_DRIVER_FW_PATH_STA := "sta" 127WIFI_DRIVER_FW_PATH_AP := "ap" 128WIFI_DRIVER_FW_PATH_P2P := "p2p" 129BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 130BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE) 131WIFI_HIDL_FEATURE_AWARE := true 132 133# Audio 134BOARD_USES_ALSA_AUDIO := true 135USE_XML_AUDIO_POLICY_CONF := 1 136AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true 137AUDIO_FEATURE_ENABLED_SND_MONITOR := true 138AUDIO_FEATURE_ENABLED_USB_TUNNEL := true 139BOARD_ROOT_EXTRA_SYMLINKS := /vendor/lib/dsp:/dsp 140 141# Include whaoo modules 142USES_DEVICE_GOOGLE_WAHOO := true 143 144# Graphics 145TARGET_USES_GRALLOC1 := true 146TARGET_USES_HWC2 := true 147 148VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 149SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 150 151# Display 152TARGET_HAS_WIDE_COLOR_DISPLAY := false 153TARGET_HAS_HDR_DISPLAY := false 154TARGET_USES_COLOR_METADATA := true 155 156# Charger Mode 157BOARD_CHARGER_ENABLE_SUSPEND := true 158 159# Vendor Interface Manifest 160DEVICE_MANIFEST_FILE := device/google/wahoo/manifest.xml 161DEVICE_MATRIX_FILE := device/google/wahoo/compatibility_matrix.xml 162DEVICE_FRAMEWORK_MANIFEST_FILE := device/google/wahoo/framework_manifest.xml 163DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := device/google/wahoo/device_framework_matrix.xml 164BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 165 166# Use mke2fs to create ext4 images 167TARGET_USES_MKE2FS := true 168 169BOARD_VNDK_VERSION := current 170 171# Generate an APEX image for experiment b/119800099. 172DEXPREOPT_GENERATE_APEX_IMAGE := true 173 174# Board uses A/B OTA. 175AB_OTA_UPDATER := true 176 177AB_OTA_PARTITIONS += \ 178 boot \ 179 system \ 180 vbmeta \ 181 dtbo 182