BoardConfig.mk revision 3422c21f562133e836505cf295c48b774b0750cd
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
20TARGET_ARCH := arm64
21TARGET_ARCH_VARIANT := armv8-a
22TARGET_CPU_ABI := arm64-v8a
23TARGET_CPU_ABI2 :=
24TARGET_CPU_VARIANT := generic
25TARGET_CPU_SMP := true
26
27TARGET_2ND_ARCH := arm
28TARGET_2ND_ARCH_VARIANT := armv7-a-neon
29TARGET_2ND_CPU_ABI := armeabi-v7a
30TARGET_2ND_CPU_ABI2 := armeabi
31TARGET_2ND_CPU_VARIANT := denver
32
33# Disable emulator for "make dist" until there is a 64-bit qemu kernel
34BUILD_EMULATOR := false
35
36TARGET_NO_BOOTLOADER := true
37
38TARGET_NO_RADIOIMAGE := true
39
40TARGET_BOARD_PLATFORM := tegra132
41TARGET_BOARD_INFO_FILE := device/htc/flounder/board-info.txt
42
43TARGET_BOOTLOADER_BOARD_NAME := flounder
44
45USE_OPENGL_RENDERER := true
46NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
47
48TARGET_RECOVERY_FSTAB = device/htc/flounder/fstab.flounder
49TARGET_USERIMAGES_USE_EXT4 := true
50BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1342177280
51BOARD_USERDATAIMAGE_PARTITION_SIZE := 13287555072
52BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
53BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_FLASH_BLOCK_SIZE := 4096
55
56BOARD_CHARGER_DISABLE_INIT_BLANK := true
57BOARD_USES_GENERIC_INVENSENSE := false
58
59USE_E2FSPROGS := true
60
61# Bluetooth
62BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := vendor/htc/flounder
63BOARD_HAVE_BLUETOOTH_BCM := true
64
65BOARD_USES_GENERIC_AUDIO := false
66BOARD_USES_ALSA_AUDIO := true
67
68BOARD_HAL_STATIC_LIBRARIES := libdumpstate.flounder
69
70BOARD_VENDOR_USE_SENSOR_HAL := sensor_hub
71
72# Wifi related defines
73BOARD_WPA_SUPPLICANT_DRIVER := NL80211
74WPA_SUPPLICANT_VERSION      := VER_0_8_X
75BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
76BOARD_HOSTAPD_DRIVER        := NL80211
77BOARD_HOSTAPD_PRIVATE_LIB   := lib_driver_cmd_bcmdhd
78BOARD_WLAN_DEVICE           := bcmdhd
79WIFI_DRIVER_FW_PATH_PARAM   := "/sys/module/bcmdhd/parameters/firmware_path"
80WIFI_DRIVER_FW_PATH_STA     := "/vendor/firmware/fw_bcmdhd.bin"
81WIFI_DRIVER_FW_PATH_AP      := "/vendor/firmware/fw_bcmdhd_apsta.bin"
82
83BOARD_HAL_STATIC_LIBRARIES := libhealthd.flounder
84
85BOARD_SEPOLICY_DIRS := device/htc/flounder/sepolicy
86BOARD_SEPOLICY_UNION := \
87	bluetooth.te \
88	device.te \
89	drmserver.te \
90	file.te \
91	file_contexts \
92	genfs_contexts \
93	gpsd.te \
94	kernel.te \
95	kickstart.te \
96	mediaserver.te \
97	netd.te \
98	netmgrd.te \
99	qmuxd.te \
100	radio.te \
101	rild.te \
102	surfaceflinger.te \
103	system_server.te \
104	te_macros \
105	touch_fusion.te
106
107TARGET_USES_64_BIT_BCMDHD := true
108TARGET_USES_64_BIT_BINDER := true
109
110TARGET_USES_LOGD := true
111BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1
112
113# HACK: Build apps as 64b for volantis_64_only
114ifneq (,$(filter ro.zygote=zygote64, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES)))
115TARGET_PREFER_32_BIT_APPS :=
116TARGET_SUPPORTS_32_BIT_APPS :=
117TARGET_SUPPORTS_64_BIT_APPS := true
118endif
119
120TARGET_RELEASETOOLS_EXTENSIONS := device/htc/flounder
121