1 # 2 # Copyright (C) 2013-2014 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 # Build a separate vendor.img 18 TARGET_COPY_OUT_VENDOR := vendor 19 20 TARGET_ARCH := arm64 21 TARGET_ARCH_VARIANT := armv8-a 22 TARGET_CPU_ABI := arm64-v8a 23 TARGET_CPU_ABI2 := 24 TARGET_CPU_VARIANT := denver64 25 26 TARGET_2ND_ARCH := arm 27 TARGET_2ND_ARCH_VARIANT := armv7-a-neon 28 TARGET_2ND_CPU_ABI := armeabi-v7a 29 TARGET_2ND_CPU_ABI2 := armeabi 30 TARGET_2ND_CPU_VARIANT := denver 31 32 # Disable emulator for "make dist" until there is a 64-bit qemu kernel 33 BUILD_EMULATOR := false 34 35 TARGET_NO_BOOTLOADER := true 36 37 BOARD_KERNEL_CMDLINE += androidboot.hardware=flounder 38 39 TARGET_NO_RADIOIMAGE := true 40 41 TARGET_BOARD_PLATFORM := tegra132 42 TARGET_BOARD_INFO_FILE := device/htc/flounder/board-info.txt 43 44 TARGET_BOOTLOADER_BOARD_NAME := flounder 45 46 USE_OPENGL_RENDERER := true 47 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 2 48 BOARD_DISABLE_TRIPLE_BUFFERED_DISPLAY_SURFACES := true 49 50 TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 51 52 TARGET_USERIMAGES_USE_EXT4 := true 53 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2782920704 54 # BOARD_USERDATAIMAGE_PARTITION_SIZE := 13287555072 55 BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 56 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 57 BOARD_FLASH_BLOCK_SIZE := 4096 58 59 BOARD_CHARGER_DISABLE_INIT_BLANK := true 60 BOARD_USES_GENERIC_INVENSENSE := false 61 62 # RenderScript 63 OVERRIDE_RS_DRIVER := libnvRSDriver.so 64 BOARD_OVERRIDE_RS_CPU_VARIANT_32 := cortex-a15 65 BOARD_OVERRIDE_RS_CPU_VARIANT_64 := cortex-a57 66 67 # Bluetooth 68 BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/flounder/bluetooth 69 BOARD_HAVE_BLUETOOTH_BCM := true 70 71 BOARD_USES_GENERIC_AUDIO := false 72 BOARD_USES_ALSA_AUDIO := true 73 74 BOARD_HAL_STATIC_LIBRARIES := libdumpstate.flounder libhealthd.flounder 75 76 BOARD_VENDOR_USE_SENSOR_HAL := sensor_hub 77 78 # GPS related defines 79 TARGET_NO_RPC := true 80 BOARD_USES_QCOM_HARDWARE_GPS := true 81 82 # Wifi related defines 83 BOARD_WPA_SUPPLICANT_DRIVER := NL80211 84 WPA_SUPPLICANT_VERSION := VER_0_8_X 85 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd 86 BOARD_HOSTAPD_DRIVER := NL80211 87 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd 88 BOARD_WLAN_DEVICE := bcmdhd 89 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path" 90 WIFI_DRIVER_FW_PATH_STA := "/vendor/firmware/fw_bcmdhd.bin" 91 WIFI_DRIVER_FW_PATH_AP := "/vendor/firmware/fw_bcmdhd_apsta.bin" 92 93 BOARD_SEPOLICY_DIRS += device/htc/flounder/sepolicy 94 BOARD_SECCOMP_POLICY += device/htc/flounder/seccomp 95 96 TARGET_USES_64_BIT_BCMDHD := true 97 TARGET_USES_64_BIT_BINDER := true 98 99 BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 100 101 # HACK: Build apps as 64b for volantis_64_only 102 ifneq (,$(filter ro.zygote=zygote64, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))) 103 TARGET_PREFER_32_BIT_APPS := 104 TARGET_SUPPORTS_32_BIT_APPS := 105 TARGET_SUPPORTS_64_BIT_APPS := true 106 endif 107 108 # Don't dex preopt apps to avoid I/O congestion due to paging larger sized 109 # pre-compiled .odex files as opposed to background generated interpret-only 110 # odex files. 111 WITH_DEXPREOPT_BOOT_IMG_ONLY := true 112 113 TARGET_RELEASETOOLS_EXTENSIONS := device/htc/flounder 114 115 ART_USE_HSPACE_COMPACT=true 116 117 # let charger mode enter suspend 118 BOARD_CHARGER_ENABLE_SUSPEND := true 119 120 MALLOC_SVELTE := true 121 122 USE_CLANG_PLATFORM_BUILD := true 123 124 # Use the non-open-source parts, if they're present 125 -include vendor/htc/flounder/BoardConfigVendor.mk 126