1# 2# Copyright (C) 2015 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 17# Use the non-open-source parts, if they're present 18-include vendor/google_devices/dragon/BoardConfigVendor.mk 19# Build a separate vendor.img 20TARGET_COPY_OUT_VENDOR := vendor 21 22TARGET_ARCH := arm64 23TARGET_ARCH_VARIANT := armv8-a 24TARGET_CPU_ABI := arm64-v8a 25TARGET_CPU_ABI2 := 26TARGET_CPU_VARIANT := cortex-a53 27 28TARGET_2ND_ARCH := arm 29TARGET_2ND_ARCH_VARIANT := armv7-a-neon 30TARGET_2ND_CPU_ABI := armeabi-v7a 31TARGET_2ND_CPU_ABI2 := armeabi 32TARGET_2ND_CPU_VARIANT := cortex-a7 33 34# Disable emulator for "make dist" until there is a 64-bit qemu kernel 35BUILD_EMULATOR := false 36 37TARGET_BOARD_PLATFORM := tegra210_dragon 38TARGET_BOARD_INFO_FILE ?= device/google/dragon/board-info.txt 39 40TARGET_BOOTLOADER_BOARD_NAME := dragon 41TARGET_RELEASETOOLS_EXTENSIONS := device/google/dragon 42 43USE_OPENGL_RENDERER := true 44NUM_FRAMEBUFFER_SURFACE_BUFFERS := 2 45BOARD_DISABLE_TRIPLE_BUFFERED_DISPLAY_SURFACES := true 46BOARD_USES_DRM_HWCOMPOSER := true 47BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER := nvidia-gralloc 48BOARD_USES_LIBDRM := true 49TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888 50 51PRESENT_TIME_OFFSET_FROM_VSYNC_NS := 0 52VSYNC_EVENT_PHASE_OFFSET_NS := 7500000 53SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000 54 55TARGET_USERIMAGES_USE_EXT4 := true 56BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3758096384 57BOARD_CACHEIMAGE_PARTITION_SIZE := 419430400 58BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 59BOARD_FLASH_BLOCK_SIZE := 4096 60 61BOARD_CHARGER_DISABLE_INIT_BLANK := true 62BOARD_USES_GENERIC_INVENSENSE := false 63 64# RenderScript 65OVERRIDE_RS_DRIVER := libnvRSDriver.so 66BOARD_OVERRIDE_RS_CPU_VARIANT_32 := cortex-a15 67BOARD_OVERRIDE_RS_CPU_VARIANT_64 := cortex-a57 68 69BOARD_USES_GENERIC_AUDIO := false 70BOARD_USES_ALSA_AUDIO := true 71 72BOARD_VENDOR_USE_SENSOR_HAL := sensor_hub 73 74TARGET_USES_64_BIT_BCMDHD := true 75TARGET_USES_64_BIT_BINDER := true 76 77BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 78 79#TARGET_SUPPORTS_64_BIT_APPS := true 80 81# Bluetooth 82BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/google/dragon/bluetooth 83BOARD_HAVE_BLUETOOTH_BCM := true 84 85# Wifi related defines 86BOARD_WPA_SUPPLICANT_DRIVER := NL80211 87WPA_SUPPLICANT_VERSION := VER_0_8_X 88BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd 89BOARD_HOSTAPD_DRIVER := NL80211 90BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd 91BOARD_WLAN_DEVICE := bcmdhd 92WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 93WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 94WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 95 96# Enable dex-preoptimization to speed up first boot sequence 97ifeq ($(HOST_OS),linux) 98 ifeq ($(TARGET_BUILD_VARIANT),user) 99 ifeq ($(WITH_DEXPREOPT),) 100 WITH_DEXPREOPT := true 101 endif 102 endif 103endif 104 105ART_USE_HSPACE_COMPACT=true 106 107# let charger mode enter suspend 108BOARD_CHARGER_ENABLE_SUSPEND := true 109 110BOARD_SEPOLICY_DIRS += device/google/dragon/sepolicy 111BOARD_SECCOMP_POLICY += device/google/dragon/seccomp 112 113# add firmware update to the updater binary 114TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_dragon 115TARGET_RECOVERY_UPDATER_EXTRA_LIBS += 116TARGET_RECOVERY_UI_LIB := librecovery_ui_dragon 117 118ifeq ($(SECURE_OS_BUILD),tlk) 119 BOARD_SUPPORT_ROLLBACK_PROTECTION := true 120endif 121 122BOARD_HAL_STATIC_LIBRARIES := libdumpstate.dragon libhealthd.dragon 123