blob: 58408087d79c386057f754d4c88b953725f604b3 [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
41# Bluetooth configuration
42BOARD_BLUETOOTH_USE_TEST_AS_VENDOR := true
43BOARD_BLUETOOTH_IMPL_DIR := $(TOP_DIR)system/bt
44BOARD_USE_BLUETOOTH_STUBS := false
45
46# The compiler will occasionally generate movaps, etc.
47BOARD_MALLOC_ALIGNMENT := 16
48
49# System partition size: 3.0G
50BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
Greg Hartman09b06592018-03-16 22:00:14 -070051# Make the userdata partition 4G to accomodate ASAN and CTS
52BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070053
54# Cache partition size: 64M
55BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864
56BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
57
Greg Hartman74f7e6a2017-08-31 13:45:43 -070058BOARD_KERNEL_CMDLINE := loop.max_part=7
Greg Hartmana3f06d22017-11-13 18:32:57 -080059BOARD_KERNEL_CMDLINE += console=ttyS0 androidboot.console=ttyS1
Greg Hartmanb5759632017-11-13 16:58:16 -080060BOARD_KERNEL_CMDLINE += androidboot.hardware=vsoc
Greg Hartman74f7e6a2017-08-31 13:45:43 -070061BOARD_KERNEL_CMDLINE += enforcing=0 audit=1
62BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
Tomasz Wiszkowskic816c8f2017-11-29 12:23:49 -080063BOARD_KERNEL_CMDLINE += mac80211_hwsim.radios=0
Greg Hartman74f7e6a2017-08-31 13:45:43 -070064
65# TODO(b/65266349) Figure out why this is needed
66BOARD_KERNEL_CMDLINE += security=selinux
67
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070068# Minimum size of the final bootable disk image: 10G
69# GCE will pad disk images out to 10G. Our disk images should be at least as
70# big to avoid warnings about partition table oddities.
71BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240
72
73BOARD_BOOTIMAGE_MAX_SIZE := 8388608
74BOARD_SYSLOADER_MAX_SIZE := 7340032
75# TODO(san): See if we can get rid of this.
76BOARD_FLASH_BLOCK_SIZE := 512
77
Tomasz Wiszkowskica327fe2017-05-26 15:54:12 -070078WITH_DEXPREOPT := true
79
80USE_OPENGL_RENDERER := true
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
122DEVICE_MANIFEST_FILE := device/google/cuttlefish/shared/config/manifest.xml
123
124# Need this so that the application's loop on reading input can be synchronized
125# with HW VSYNC
126TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true
127
128# Settings for dhcpcd-6.8.2.
129DHCPCD_USE_IPV6 := no
130DHCPCD_USE_DBUS := no
131DHCPCD_USE_SCRIPT := yes
132
133USE_XML_AUDIO_POLICY_CONF := 1
Steven Morelandcd5f3ef2018-01-08 15:09:48 -0800134
135BOARD_VNDK_VERSION := current
136
137# TODO(b/73078796): remove
138BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true