Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 1 | # |
Mark Salyzyn | a92b335 | 2014-02-21 11:08:00 -0800 | [diff] [blame] | 2 | # Copyright (C) 2013-2014 The Android Open-Source Project |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 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 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 17 | # Use the non-open-source parts, if they're present |
| 18 | -include vendor/htc/flounder/BoardConfigVendor.mk |
Ying Wang | 8dea397 | 2014-07-23 20:26:48 -0700 | [diff] [blame] | 19 | # Build a separate vendor.img |
| 20 | TARGET_COPY_OUT_VENDOR := vendor |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 21 | |
Colin Cross | 265e5f5 | 2014-03-14 14:49:35 -0700 | [diff] [blame] | 22 | TARGET_ARCH := arm64 |
| 23 | TARGET_ARCH_VARIANT := armv8-a |
| 24 | TARGET_CPU_ABI := arm64-v8a |
| 25 | TARGET_CPU_ABI2 := |
Christopher Ferris | a1c9f15 | 2014-06-23 16:53:47 -0700 | [diff] [blame] | 26 | TARGET_CPU_VARIANT := denver64 |
Colin Cross | d2b9d14 | 2014-05-15 11:13:50 -0700 | [diff] [blame] | 27 | TARGET_CPU_SMP := true |
Colin Cross | 265e5f5 | 2014-03-14 14:49:35 -0700 | [diff] [blame] | 28 | |
| 29 | TARGET_2ND_ARCH := arm |
| 30 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
| 31 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 32 | TARGET_2ND_CPU_ABI2 := armeabi |
Roger Hsieh | 45c712f | 2014-05-09 18:22:19 +0800 | [diff] [blame] | 33 | TARGET_2ND_CPU_VARIANT := denver |
Colin Cross | 265e5f5 | 2014-03-14 14:49:35 -0700 | [diff] [blame] | 34 | |
Colin Cross | 265e5f5 | 2014-03-14 14:49:35 -0700 | [diff] [blame] | 35 | # Disable emulator for "make dist" until there is a 64-bit qemu kernel |
| 36 | BUILD_EMULATOR := false |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 37 | |
| 38 | TARGET_NO_BOOTLOADER := true |
| 39 | |
| 40 | TARGET_NO_RADIOIMAGE := true |
Colin Cross | 2e4e82b | 2014-01-31 18:41:57 -0800 | [diff] [blame] | 41 | |
Colin Cross | 2e4e82b | 2014-01-31 18:41:57 -0800 | [diff] [blame] | 42 | TARGET_BOARD_PLATFORM := tegra132 |
Alex Ray | 07917d4 | 2013-10-18 16:51:58 -0700 | [diff] [blame] | 43 | TARGET_BOARD_INFO_FILE := device/htc/flounder/board-info.txt |
Colin Cross | 2e4e82b | 2014-01-31 18:41:57 -0800 | [diff] [blame] | 44 | |
| 45 | TARGET_BOOTLOADER_BOARD_NAME := flounder |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 46 | |
| 47 | USE_OPENGL_RENDERER := true |
Prajakta Gudadhe | 1af8814 | 2014-08-15 17:05:00 -0700 | [diff] [blame] | 48 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 2 |
| 49 | BOARD_DISABLE_TRIPLE_BUFFERED_DISPLAY_SURFACES := true |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 50 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 51 | TARGET_USERIMAGES_USE_EXT4 := true |
Rom Lemarchand | cad8deb | 2014-08-20 09:39:22 -0700 | [diff] [blame] | 52 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2782920704 |
JP Abgrall | 3113d35 | 2014-06-26 16:59:49 -0700 | [diff] [blame] | 53 | # BOARD_USERDATAIMAGE_PARTITION_SIZE := 13287555072 |
Colin Cross | bc23eb0 | 2014-04-01 12:45:00 -0700 | [diff] [blame] | 54 | BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456 |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 55 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 56 | BOARD_FLASH_BLOCK_SIZE := 4096 |
| 57 | |
| 58 | BOARD_CHARGER_DISABLE_INIT_BLANK := true |
| 59 | BOARD_USES_GENERIC_INVENSENSE := false |
| 60 | |
Jason Sams | cb633ff | 2014-06-17 14:58:59 -0700 | [diff] [blame] | 61 | # RenderScript |
Tim Murray | e9e9926 | 2014-11-24 12:49:22 -0800 | [diff] [blame] | 62 | OVERRIDE_RS_DRIVER := libnvRSDriver.so |
Tim Murray | b09d6d6 | 2014-07-15 13:28:42 -0700 | [diff] [blame] | 63 | BOARD_OVERRIDE_RS_CPU_VARIANT_32 := cortex-a15 |
| 64 | BOARD_OVERRIDE_RS_CPU_VARIANT_64 := cortex-a57 |
Jason Sams | cb633ff | 2014-06-17 14:58:59 -0700 | [diff] [blame] | 65 | |
Thomas.TT_Lin | 41ac6ae | 2014-03-13 19:07:45 +0800 | [diff] [blame] | 66 | # Bluetooth |
Bill Yi | 2c2d4fb | 2014-07-30 15:12:05 -0700 | [diff] [blame] | 67 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/flounder/bluetooth |
thomas.tt_lin | bbd5977 | 2013-11-07 11:11:43 +0800 | [diff] [blame] | 68 | BOARD_HAVE_BLUETOOTH_BCM := true |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 69 | |
| 70 | BOARD_USES_GENERIC_AUDIO := false |
| 71 | BOARD_USES_ALSA_AUDIO := true |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 72 | |
Greg Hackmann | 7cd774b | 2014-06-27 12:21:08 -0700 | [diff] [blame] | 73 | BOARD_HAL_STATIC_LIBRARIES := libdumpstate.flounder libhealthd.flounder |
Todd Poynor | 6d83f95 | 2014-01-03 16:00:28 -0800 | [diff] [blame] | 74 | |
Andy Chuang | 92af8b2 | 2014-03-14 18:38:17 +0800 | [diff] [blame] | 75 | BOARD_VENDOR_USE_SENSOR_HAL := sensor_hub |
| 76 | |
shen_kuo | 45c2228 | 2014-08-01 19:53:18 +0800 | [diff] [blame] | 77 | # GPS related defines |
| 78 | BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default |
| 79 | TARGET_NO_RPC := true |
| 80 | BOARD_USES_QCOM_HARDWARE_GPS := true |
| 81 | |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 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" |
Colin Cross | 9d42c35 | 2014-02-10 17:28:36 -0800 | [diff] [blame] | 92 | |
| 93 | BOARD_SEPOLICY_DIRS := device/htc/flounder/sepolicy |
| 94 | BOARD_SEPOLICY_UNION := \ |
tim.tm_lin | e5976c1 | 2014-05-16 14:41:26 +0800 | [diff] [blame] | 95 | bluetooth.te \ |
| 96 | device.te \ |
dcashman | f65ee08 | 2014-05-19 11:00:05 -0700 | [diff] [blame] | 97 | drmserver.te \ |
tim.tm_lin | e5976c1 | 2014-05-16 14:41:26 +0800 | [diff] [blame] | 98 | file.te \ |
Colin Cross | 9d42c35 | 2014-02-10 17:28:36 -0800 | [diff] [blame] | 99 | file_contexts \ |
Mark Salyzyn | 1497759 | 2014-04-03 07:51:47 -0700 | [diff] [blame] | 100 | genfs_contexts \ |
edwin_tung | fcf63dc | 2014-04-16 13:24:43 +0800 | [diff] [blame] | 101 | gpsd.te \ |
Nick Kralevich | 3b71e25 | 2014-04-18 16:30:35 -0700 | [diff] [blame] | 102 | kernel.te \ |
tim.tm_lin | e5976c1 | 2014-05-16 14:41:26 +0800 | [diff] [blame] | 103 | kickstart.te \ |
Nick Kralevich | 0330db5 | 2014-05-29 14:39:49 -0700 | [diff] [blame] | 104 | mediaserver.te \ |
Nick Kralevich | be275d0 | 2014-04-21 11:06:17 -0700 | [diff] [blame] | 105 | netd.te \ |
tim.tm_lin | e5976c1 | 2014-05-16 14:41:26 +0800 | [diff] [blame] | 106 | netmgrd.te \ |
| 107 | qmuxd.te \ |
| 108 | radio.te \ |
| 109 | rild.te \ |
Nick Kralevich | 86a2ffc | 2014-06-04 15:34:47 -0700 | [diff] [blame] | 110 | surfaceflinger.te \ |
Nick Kralevich | 3b71e25 | 2014-04-18 16:30:35 -0700 | [diff] [blame] | 111 | system_server.te \ |
Arve Hjønnevåg | 36dff43 | 2014-08-28 15:16:57 -0700 | [diff] [blame] | 112 | tee.te \ |
tim.tm_lin | e5976c1 | 2014-05-16 14:41:26 +0800 | [diff] [blame] | 113 | te_macros \ |
Nick Kralevich | 3b71e25 | 2014-04-18 16:30:35 -0700 | [diff] [blame] | 114 | touch_fusion.te |
Dmitry Shmidt | fa92449 | 2014-02-14 10:47:01 -0800 | [diff] [blame] | 115 | |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 116 | TARGET_USES_64_BIT_BCMDHD := true |
| 117 | TARGET_USES_64_BIT_BINDER := true |
Mark Salyzyn | a92b335 | 2014-02-21 11:08:00 -0800 | [diff] [blame] | 118 | |
| 119 | TARGET_USES_LOGD := true |
Satya Popuri | 0fe2eee | 2014-04-28 12:44:10 -0700 | [diff] [blame] | 120 | BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 |
Colin Cross | c89366e | 2014-05-05 13:48:06 -0700 | [diff] [blame] | 121 | |
| 122 | # HACK: Build apps as 64b for volantis_64_only |
| 123 | ifneq (,$(filter ro.zygote=zygote64, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES))) |
| 124 | TARGET_PREFER_32_BIT_APPS := |
| 125 | TARGET_SUPPORTS_32_BIT_APPS := |
| 126 | TARGET_SUPPORTS_64_BIT_APPS := true |
| 127 | endif |
Badhri Jagan Sridharan | 872ab6d | 2014-05-07 15:05:32 -0700 | [diff] [blame] | 128 | |
Alex Light | a0352d4 | 2014-08-11 10:45:30 -0700 | [diff] [blame] | 129 | # Enable dex-preoptimization to speed up first boot sequence |
| 130 | ifeq ($(HOST_OS),linux) |
| 131 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 132 | ifeq ($(WITH_DEXPREOPT),) |
| 133 | WITH_DEXPREOPT := true |
| 134 | endif |
| 135 | endif |
| 136 | endif |
| 137 | |
Badhri Jagan Sridharan | 872ab6d | 2014-05-07 15:05:32 -0700 | [diff] [blame] | 138 | TARGET_RELEASETOOLS_EXTENSIONS := device/htc/flounder |
Raph Levien | 785318a | 2014-08-07 14:29:34 -0700 | [diff] [blame] | 139 | |
Mathieu Chartier | 3a1312c | 2014-08-14 12:03:26 -0700 | [diff] [blame] | 140 | ART_USE_HSPACE_COMPACT=true |
| 141 | |
Raph Levien | 785318a | 2014-08-07 14:29:34 -0700 | [diff] [blame] | 142 | # Include an expanded selection of fonts |
| 143 | EXTENDED_FONT_FOOTPRINT := true |
keny_wu | e644687 | 2014-08-15 18:05:06 +0800 | [diff] [blame] | 144 | |
| 145 | # let charger mode enter suspend |
| 146 | BOARD_CHARGER_ENABLE_SUSPEND := true |
Christopher Ferris | a1a55e1 | 2014-09-17 16:31:21 -0700 | [diff] [blame] | 147 | |
| 148 | MALLOC_IMPL := dlmalloc |