1# 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 21# Build a separate vendor.img partition 22BOARD_USES_VENDORIMAGE := true 23BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 24BOARD_VENDORIMAGE_PARTITION_SIZE := 100663296 # 96MB 25TARGET_COPY_OUT_VENDOR := vendor 26 27TARGET_NO_RECOVERY := true 28BOARD_USES_GENERIC_AUDIO := false 29USE_CAMERA_STUB := true 30TARGET_USERIMAGES_USE_EXT4 := true 31TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 32BOARD_EGL_CFG := device/google/cuttlefish/shared/config/egl.cfg 33TARGET_USES_64_BIT_BINDER := true 34 35# Hardware composer configuration 36TARGET_USES_HWC2 := true 37 38# Bluetooth configuration 39BOARD_BLUETOOTH_USE_TEST_AS_VENDOR := true 40BOARD_BLUETOOTH_IMPL_DIR := $(TOP_DIR)system/bt 41BOARD_USE_BLUETOOTH_STUBS := false 42 43# The compiler will occasionally generate movaps, etc. 44BOARD_MALLOC_ALIGNMENT := 16 45 46# System partition size: 3.0G 47BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 48# Make the userdata partition 4G to accomodate ASAN and CTS 49BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296 50 51# Cache partition size: 64M 52BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864 53BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 54 55BOARD_KERNEL_CMDLINE := loop.max_part=7 56BOARD_KERNEL_CMDLINE += console=ttyS0 androidboot.console=ttyS1 57BOARD_KERNEL_CMDLINE += androidboot.hardware=vsoc 58BOARD_KERNEL_CMDLINE += enforcing=0 audit=1 59BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive 60BOARD_KERNEL_CMDLINE += mac80211_hwsim.radios=0 61 62# TODO(b/65266349) Figure out why this is needed 63BOARD_KERNEL_CMDLINE += security=selinux 64 65# Minimum size of the final bootable disk image: 10G 66# GCE will pad disk images out to 10G. Our disk images should be at least as 67# big to avoid warnings about partition table oddities. 68BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240 69 70BOARD_BOOTIMAGE_MAX_SIZE := 8388608 71BOARD_SYSLOADER_MAX_SIZE := 7340032 72# TODO(san): See if we can get rid of this. 73BOARD_FLASH_BLOCK_SIZE := 512 74 75WITH_DEXPREOPT := true 76 77USE_OPENGL_RENDERER := true 78 79# Wifi. 80BOARD_WLAN_DEVICE := wlan0 81BOARD_HOSTAPD_DRIVER := NL80211 82BOARD_WPA_SUPPLICANT_DRIVER := NL80211 83BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated 84BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated 85WPA_SUPPLICANT_VERSION := VER_0_8_X 86WIFI_DRIVER_FW_PATH_PARAM := "/dev/null" 87WIFI_DRIVER_FW_PATH_STA := "/dev/null" 88WIFI_DRIVER_FW_PATH_AP := "/dev/null" 89 90BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/sepolicy 91 92# master has breaking changes in dlfcn.h, but the platform SDK hasn't been 93# bumped. Restore the line below when it is. 94VSOC_VERSION_CFLAGS := -DVSOC_PLATFORM_SDK_VERSION=28 95# VSOC_VERSION_CFLAGS := -DVSOC_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION} 96VSOC_STLPORT_INCLUDES := 97VSOC_STLPORT_LIBS := 98VSOC_STLPORT_STATIC_LIBS := 99VSOC_TEST_INCLUDES := external/googletest/googlemock/include external/googletest/googletest/include 100VSOC_TEST_LIBRARIES := libgmock_main_host libgtest_host libgmock_host 101VSOC_LIBCXX_STATIC := libc++_static 102VSOC_PROTOBUF_SHARED_LIB := libprotobuf-cpp-full 103 104# TODO(ender): Remove all these once we stop depending on GCE code. 105GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION} 106GCE_STLPORT_INCLUDES := $(VSOC_STLPORT_INCLUDES) 107GCE_STLPORT_LIBS := $(VSOC_STLPORT_LIBS) 108GCE_STLPORT_STATIC_LIBS := $(VSOC_STLPORT_STATIC_LIBS) 109GCE_TEST_INCLUDES := $(VSOC_TEST_INCLUDES) 110GCE_TEST_LIBRARIES := $(VSOC_TEST_LIBRARIES) 111GCE_LIBCXX_STATIC := $(VSOC_LIBCXX_STATIC) 112GCE_PROTOBUF_SHARED_LIB := $(VSOC_PROTOBUF_SHARED_LIB) 113# TODO(ender): up till here. 114 115STAGEFRIGHT_AVCENC_CFLAGS := -DANDROID_GCE 116 117INIT_BOOTCHART := true 118 119DEVICE_MANIFEST_FILE := device/google/cuttlefish/shared/config/manifest.xml 120 121# Need this so that the application's loop on reading input can be synchronized 122# with HW VSYNC 123TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true 124 125# Settings for dhcpcd-6.8.2. 126DHCPCD_USE_IPV6 := no 127DHCPCD_USE_DBUS := no 128DHCPCD_USE_SCRIPT := yes 129 130USE_XML_AUDIO_POLICY_CONF := 1 131 132BOARD_VNDK_VERSION := current 133 134# TODO(b/73078796): remove 135BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 136