BoardConfig.mk revision e3a605cbbabfa308a494ccf17441bbf17a314063
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# Use the non-open-source parts, if they're present
18-include vendor/htc/flounder/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 := denver64
27TARGET_CPU_SMP := true
28
29TARGET_2ND_ARCH := arm
30TARGET_2ND_ARCH_VARIANT := armv7-a-neon
31TARGET_2ND_CPU_ABI := armeabi-v7a
32TARGET_2ND_CPU_ABI2 := armeabi
33TARGET_2ND_CPU_VARIANT := denver
34
35# Disable emulator for "make dist" until there is a 64-bit qemu kernel
36BUILD_EMULATOR := false
37
38TARGET_NO_BOOTLOADER := true
39
40TARGET_NO_RADIOIMAGE := true
41
42TARGET_BOARD_PLATFORM := tegra132
43TARGET_BOARD_INFO_FILE := device/htc/flounder/board-info.txt
44
45TARGET_BOOTLOADER_BOARD_NAME := flounder
46
47USE_OPENGL_RENDERER := true
48NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
49
50TARGET_USERIMAGES_USE_EXT4 := true
51BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1342177280
52# BOARD_USERDATAIMAGE_PARTITION_SIZE := 13287555072
53BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
54BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
55BOARD_FLASH_BLOCK_SIZE := 4096
56
57BOARD_CHARGER_DISABLE_INIT_BLANK := true
58BOARD_USES_GENERIC_INVENSENSE := false
59
60# RenderScript
61OVERRIDE_RS_DRIVER := libnvRSDriver.so
62BOARD_OVERRIDE_RS_CPU_VARIANT_32 := cortex-a15
63BOARD_OVERRIDE_RS_CPU_VARIANT_64 := cortex-a57
64
65# Bluetooth
66BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/htc/flounder/bluetooth
67BOARD_HAVE_BLUETOOTH_BCM := true
68
69BOARD_USES_GENERIC_AUDIO := false
70BOARD_USES_ALSA_AUDIO := true
71
72BOARD_HAL_STATIC_LIBRARIES := libdumpstate.flounder libhealthd.flounder
73
74BOARD_VENDOR_USE_SENSOR_HAL := sensor_hub
75
76# GPS related defines
77BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
78TARGET_NO_RPC := true
79BOARD_USES_QCOM_HARDWARE_GPS := true
80
81# Wifi related defines
82BOARD_WPA_SUPPLICANT_DRIVER := NL80211
83WPA_SUPPLICANT_VERSION      := VER_0_8_X
84BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
85BOARD_HOSTAPD_DRIVER        := NL80211
86BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_bcmdhd
87BOARD_WLAN_DEVICE           := bcmdhd
88WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
89WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
90WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
91
92BOARD_SEPOLICY_DIRS := device/htc/flounder/sepolicy
93BOARD_SEPOLICY_UNION := \
94	bluetooth.te \
95	device.te \
96	drmserver.te \
97	file.te \
98	file_contexts \
99	genfs_contexts \
100	gpsd.te \
101	kernel.te \
102	kickstart.te \
103	mediaserver.te \
104	netd.te \
105	netmgrd.te \
106	qmuxd.te \
107	radio.te \
108	rild.te \
109	surfaceflinger.te \
110	system_server.te \
111	te_macros \
112	touch_fusion.te
113
114TARGET_USES_64_BIT_BCMDHD := true
115TARGET_USES_64_BIT_BINDER := true
116
117TARGET_USES_LOGD := true
118BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
119
120# HACK: Build apps as 64b for volantis_64_only
121ifneq (,$(filter ro.zygote=zygote64, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES)))
122TARGET_PREFER_32_BIT_APPS :=
123TARGET_SUPPORTS_32_BIT_APPS :=
124TARGET_SUPPORTS_64_BIT_APPS := true
125endif
126
127TARGET_RELEASETOOLS_EXTENSIONS := device/htc/flounder
128
129# Include an expanded selection of fonts
130EXTENDED_FONT_FOOTPRINT := true
131