blob: 94270eafd59bc896355d84d20bfb2a8ec5c171bd [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
Tomasz Wiszkowski72c9b542017-09-19 10:15:20 -070021# Build a separate vendor.img partition
22BOARD_USES_VENDORIMAGE := true
23BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
Iliyan Malchevb380cb62018-03-02 10:44:18 -080024BOARD_VENDORIMAGE_PARTITION_SIZE := 100663296 # 96MB
Tomasz Wiszkowski72c9b542017-09-19 10:15:20 -070025TARGET_COPY_OUT_VENDOR := vendor
26
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070027TARGET_NO_RECOVERY := true
Greg Hartman512dad92018-06-21 23:52:56 -070028ifneq (,$(CUTTLEFISH_SYSTEM_AS_ROOT))
Alistair Strachan29130082018-06-12 14:15:30 -070029BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
Greg Hartman512dad92018-06-21 23:52:56 -070030endif
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070031BOARD_USES_GENERIC_AUDIO := false
32USE_CAMERA_STUB := true
33TARGET_USERIMAGES_USE_EXT4 := true
34TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
35BOARD_EGL_CFG := device/google/cuttlefish/shared/config/egl.cfg
36TARGET_USES_64_BIT_BINDER := true
37
38# Hardware composer configuration
39TARGET_USES_HWC2 := true
40
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070041# The compiler will occasionally generate movaps, etc.
42BOARD_MALLOC_ALIGNMENT := 16
43
44# System partition size: 3.0G
45BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
Greg Hartman09b06592018-03-16 22:00:14 -070046# Make the userdata partition 4G to accomodate ASAN and CTS
47BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070048
49# Cache partition size: 64M
50BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864
51BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
52
Alistair Strachanfaebd892018-03-20 14:21:31 -070053BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER := minigbm
54BOARD_USES_DRM_HWCOMPOSER := true
55BOARD_USES_MINIGBM := true
56BOARD_GPU_DRIVERS := virgl
Jorge E. Moreira5bee9b32018-09-19 16:03:55 -070057# This prevents mesa3d from unconditionally pulling in some modules
58BOARD_USE_CUSTOMIZED_MESA := true
Alistair Strachanfaebd892018-03-20 14:21:31 -070059
Jorge E. Moreiraa0d64b42018-10-10 12:54:40 -070060# Enable goldfish's encoder.
61# TODO(b/113617962) Remove this if we decide to use
62# device/generic/opengl-transport to generate the encoder
63BUILD_EMULATOR_OPENGL_DRIVER := false
64BUILD_EMULATOR_OPENGL := true
65
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070066# Minimum size of the final bootable disk image: 10G
67# GCE will pad disk images out to 10G. Our disk images should be at least as
68# big to avoid warnings about partition table oddities.
69BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240
70
71BOARD_BOOTIMAGE_MAX_SIZE := 8388608
72BOARD_SYSLOADER_MAX_SIZE := 7340032
73# TODO(san): See if we can get rid of this.
74BOARD_FLASH_BLOCK_SIZE := 512
75
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070076WITH_DEXPREOPT := true
77
78USE_OPENGL_RENDERER := true
79
Greg Hartmanaebd8b92018-07-24 01:51:52 -070080BOARD_SWIFTSHADER_RELATIVE_PATH := gl_impl/swiftshader
81
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070082# Wifi.
83BOARD_WLAN_DEVICE := wlan0
84BOARD_HOSTAPD_DRIVER := NL80211
85BOARD_WPA_SUPPLICANT_DRIVER := NL80211
86BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated
87BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
88WPA_SUPPLICANT_VERSION := VER_0_8_X
89WIFI_DRIVER_FW_PATH_PARAM := "/dev/null"
90WIFI_DRIVER_FW_PATH_STA := "/dev/null"
91WIFI_DRIVER_FW_PATH_AP := "/dev/null"
92
93BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/sepolicy
94
Tomasz Wiszkowski6c50d6d2017-09-22 10:22:30 -070095# master has breaking changes in dlfcn.h, but the platform SDK hasn't been
96# bumped. Restore the line below when it is.
Greg Hartman94f7f9e2018-03-12 22:23:34 -070097VSOC_VERSION_CFLAGS := -DVSOC_PLATFORM_SDK_VERSION=28
98# VSOC_VERSION_CFLAGS := -DVSOC_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION}
Tomasz Wiszkowski6c50d6d2017-09-22 10:22:30 -070099VSOC_STLPORT_INCLUDES :=
100VSOC_STLPORT_LIBS :=
101VSOC_STLPORT_STATIC_LIBS :=
102VSOC_TEST_INCLUDES := external/googletest/googlemock/include external/googletest/googletest/include
103VSOC_TEST_LIBRARIES := libgmock_main_host libgtest_host libgmock_host
104VSOC_LIBCXX_STATIC := libc++_static
105VSOC_PROTOBUF_SHARED_LIB := libprotobuf-cpp-full
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -0700106
Tomasz Wiszkowski6c50d6d2017-09-22 10:22:30 -0700107# TODO(ender): Remove all these once we stop depending on GCE code.
108GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION}
109GCE_STLPORT_INCLUDES := $(VSOC_STLPORT_INCLUDES)
110GCE_STLPORT_LIBS := $(VSOC_STLPORT_LIBS)
111GCE_STLPORT_STATIC_LIBS := $(VSOC_STLPORT_STATIC_LIBS)
112GCE_TEST_INCLUDES := $(VSOC_TEST_INCLUDES)
113GCE_TEST_LIBRARIES := $(VSOC_TEST_LIBRARIES)
114GCE_LIBCXX_STATIC := $(VSOC_LIBCXX_STATIC)
115GCE_PROTOBUF_SHARED_LIB := $(VSOC_PROTOBUF_SHARED_LIB)
116# TODO(ender): up till here.
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -0700117
Tomasz Wiszkowski6c50d6d2017-09-22 10:22:30 -0700118STAGEFRIGHT_AVCENC_CFLAGS := -DANDROID_GCE
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -0700119
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -0700120INIT_BOOTCHART := true
121
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -0700122# Need this so that the application's loop on reading input can be synchronized
123# with HW VSYNC
124TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
125
126# Settings for dhcpcd-6.8.2.
127DHCPCD_USE_IPV6 := no
128DHCPCD_USE_DBUS := no
129DHCPCD_USE_SCRIPT := yes
130
131USE_XML_AUDIO_POLICY_CONF := 1
Steven Morelandcd5f3ef2018-01-08 15:09:48 -0800132
133BOARD_VNDK_VERSION := current
134
135# TODO(b/73078796): remove
136BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true