blob: 216c366ac4e76d264b06668f0c5a51b18d9a02f2 [file] [log] [blame]
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -07001#
2# Copyright 2017 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#
18# Common BoardConfig for all supported architectures.
19#
20
21TARGET_NO_RECOVERY := true
22BOARD_USES_GENERIC_AUDIO := false
23USE_CAMERA_STUB := true
24TARGET_USERIMAGES_USE_EXT4 := true
25TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
26BOARD_EGL_CFG := device/google/cuttlefish/shared/config/egl.cfg
27TARGET_USES_64_BIT_BINDER := true
28
29# Hardware composer configuration
30TARGET_USES_HWC2 := true
31
32# Bluetooth configuration
33BOARD_BLUETOOTH_USE_TEST_AS_VENDOR := true
34BOARD_BLUETOOTH_IMPL_DIR := $(TOP_DIR)system/bt
35BOARD_USE_BLUETOOTH_STUBS := false
36
37# The compiler will occasionally generate movaps, etc.
38BOARD_MALLOC_ALIGNMENT := 16
39
40# System partition size: 3.0G
41BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
42BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824
43
44# Cache partition size: 64M
45BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864
46BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
47
48BOARD_KERNEL_CMDLINE := console=ttyS0 init=/init androidboot.hardware=vsoc androidboot.console=ttyS0 security=selinux androidboot.selinux=permissive enforcing=0 loop.max_part=7 audit=0
49
50# Minimum size of the final bootable disk image: 10G
51# GCE will pad disk images out to 10G. Our disk images should be at least as
52# big to avoid warnings about partition table oddities.
53BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240
54
55BOARD_BOOTIMAGE_MAX_SIZE := 8388608
56BOARD_SYSLOADER_MAX_SIZE := 7340032
57# TODO(san): See if we can get rid of this.
58BOARD_FLASH_BLOCK_SIZE := 512
59
60# master has breaking changes in dlfcn.h, but the platform SDK hasn't been
61# bumped. Restore the line below when it is.
62GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=26
63# GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION}
64SSHDIR := /var/run/ssh
65STAGEFRIGHT_AVCENC_CFLAGS := -DANDROID_GCE
66
67WITH_DEXPREOPT := true
68
69USE_OPENGL_RENDERER := true
70
71USE_CLANG_PLATFORM_BUILD := true
72
73# Wifi.
74BOARD_WLAN_DEVICE := wlan0
75BOARD_HOSTAPD_DRIVER := NL80211
76BOARD_WPA_SUPPLICANT_DRIVER := NL80211
77BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated
78BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
79WPA_SUPPLICANT_VERSION := VER_0_8_X
80WIFI_DRIVER_FW_PATH_PARAM := "/dev/null"
81WIFI_DRIVER_FW_PATH_STA := "/dev/null"
82WIFI_DRIVER_FW_PATH_AP := "/dev/null"
83
84BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/sepolicy
85
86GCE_STLPORT_INCLUDES :=
87GCE_STLPORT_LIBS :=
88GCE_STLPORT_STATIC_LIBS :=
89
90GCE_TEST_INCLUDES := external/googletest/googlemock/include external/googletest/googletest/include
91GCE_TEST_LIBRARIES := libgmock_main_host libgtest_host libgmock_host
92
93GCE_LIBCXX_STATIC := libc++_static
94
95GCE_PROTOBUF_SHARED_LIB := libprotobuf-cpp-full
96INIT_BOOTCHART := true
97
98DEVICE_MANIFEST_FILE := device/google/cuttlefish/shared/config/manifest.xml
99
100# Need this so that the application's loop on reading input can be synchronized
101# with HW VSYNC
102TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
103
104# Settings for dhcpcd-6.8.2.
105DHCPCD_USE_IPV6 := no
106DHCPCD_USE_DBUS := no
107DHCPCD_USE_SCRIPT := yes
108
109USE_XML_AUDIO_POLICY_CONF := 1
110