Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 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 | |
Tomasz Wiszkowski | 72c9b54 | 2017-09-19 10:15:20 -0700 | [diff] [blame] | 21 | # Build a separate vendor.img partition |
| 22 | BOARD_USES_VENDORIMAGE := true |
| 23 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
Iliyan Malchev | b380cb6 | 2018-03-02 10:44:18 -0800 | [diff] [blame] | 24 | BOARD_VENDORIMAGE_PARTITION_SIZE := 100663296 # 96MB |
Tomasz Wiszkowski | 72c9b54 | 2017-09-19 10:15:20 -0700 | [diff] [blame] | 25 | TARGET_COPY_OUT_VENDOR := vendor |
| 26 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 27 | TARGET_NO_RECOVERY := true |
Greg Hartman | 512dad9 | 2018-06-21 23:52:56 -0700 | [diff] [blame] | 28 | ifneq (,$(CUTTLEFISH_SYSTEM_AS_ROOT)) |
Alistair Strachan | 2913008 | 2018-06-12 14:15:30 -0700 | [diff] [blame] | 29 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
Greg Hartman | 512dad9 | 2018-06-21 23:52:56 -0700 | [diff] [blame] | 30 | endif |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 31 | BOARD_USES_GENERIC_AUDIO := false |
| 32 | USE_CAMERA_STUB := true |
| 33 | TARGET_USERIMAGES_USE_EXT4 := true |
| 34 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |
| 35 | BOARD_EGL_CFG := device/google/cuttlefish/shared/config/egl.cfg |
| 36 | TARGET_USES_64_BIT_BINDER := true |
| 37 | |
| 38 | # Hardware composer configuration |
| 39 | TARGET_USES_HWC2 := true |
| 40 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 41 | # The compiler will occasionally generate movaps, etc. |
| 42 | BOARD_MALLOC_ALIGNMENT := 16 |
| 43 | |
| 44 | # System partition size: 3.0G |
| 45 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 |
Greg Hartman | 09b0659 | 2018-03-16 22:00:14 -0700 | [diff] [blame] | 46 | # Make the userdata partition 4G to accomodate ASAN and CTS |
| 47 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296 |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 48 | |
| 49 | # Cache partition size: 64M |
| 50 | BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864 |
| 51 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 52 | |
Alistair Strachan | faebd89 | 2018-03-20 14:21:31 -0700 | [diff] [blame] | 53 | BOARD_DRM_HWCOMPOSER_BUFFER_IMPORTER := minigbm |
| 54 | BOARD_USES_DRM_HWCOMPOSER := true |
| 55 | BOARD_USES_MINIGBM := true |
| 56 | BOARD_GPU_DRIVERS := virgl |
Jorge E. Moreira | 5bee9b3 | 2018-09-19 16:03:55 -0700 | [diff] [blame] | 57 | # This prevents mesa3d from unconditionally pulling in some modules |
| 58 | BOARD_USE_CUSTOMIZED_MESA := true |
Alistair Strachan | faebd89 | 2018-03-20 14:21:31 -0700 | [diff] [blame] | 59 | |
Jorge E. Moreira | a0d64b4 | 2018-10-10 12:54:40 -0700 | [diff] [blame^] | 60 | # Enable goldfish's encoder. |
| 61 | # TODO(b/113617962) Remove this if we decide to use |
| 62 | # device/generic/opengl-transport to generate the encoder |
| 63 | BUILD_EMULATOR_OPENGL_DRIVER := false |
| 64 | BUILD_EMULATOR_OPENGL := true |
| 65 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 66 | # 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. |
| 69 | BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240 |
| 70 | |
| 71 | BOARD_BOOTIMAGE_MAX_SIZE := 8388608 |
| 72 | BOARD_SYSLOADER_MAX_SIZE := 7340032 |
| 73 | # TODO(san): See if we can get rid of this. |
| 74 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 75 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 76 | WITH_DEXPREOPT := true |
| 77 | |
| 78 | USE_OPENGL_RENDERER := true |
| 79 | |
Greg Hartman | aebd8b9 | 2018-07-24 01:51:52 -0700 | [diff] [blame] | 80 | BOARD_SWIFTSHADER_RELATIVE_PATH := gl_impl/swiftshader |
| 81 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 82 | # Wifi. |
| 83 | BOARD_WLAN_DEVICE := wlan0 |
| 84 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 85 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 86 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated |
| 87 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated |
| 88 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 89 | WIFI_DRIVER_FW_PATH_PARAM := "/dev/null" |
| 90 | WIFI_DRIVER_FW_PATH_STA := "/dev/null" |
| 91 | WIFI_DRIVER_FW_PATH_AP := "/dev/null" |
| 92 | |
| 93 | BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/sepolicy |
| 94 | |
Tomasz Wiszkowski | 6c50d6d | 2017-09-22 10:22:30 -0700 | [diff] [blame] | 95 | # master has breaking changes in dlfcn.h, but the platform SDK hasn't been |
| 96 | # bumped. Restore the line below when it is. |
Greg Hartman | 94f7f9e | 2018-03-12 22:23:34 -0700 | [diff] [blame] | 97 | VSOC_VERSION_CFLAGS := -DVSOC_PLATFORM_SDK_VERSION=28 |
| 98 | # VSOC_VERSION_CFLAGS := -DVSOC_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION} |
Tomasz Wiszkowski | 6c50d6d | 2017-09-22 10:22:30 -0700 | [diff] [blame] | 99 | VSOC_STLPORT_INCLUDES := |
| 100 | VSOC_STLPORT_LIBS := |
| 101 | VSOC_STLPORT_STATIC_LIBS := |
| 102 | VSOC_TEST_INCLUDES := external/googletest/googlemock/include external/googletest/googletest/include |
| 103 | VSOC_TEST_LIBRARIES := libgmock_main_host libgtest_host libgmock_host |
| 104 | VSOC_LIBCXX_STATIC := libc++_static |
| 105 | VSOC_PROTOBUF_SHARED_LIB := libprotobuf-cpp-full |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 106 | |
Tomasz Wiszkowski | 6c50d6d | 2017-09-22 10:22:30 -0700 | [diff] [blame] | 107 | # TODO(ender): Remove all these once we stop depending on GCE code. |
| 108 | GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION} |
| 109 | GCE_STLPORT_INCLUDES := $(VSOC_STLPORT_INCLUDES) |
| 110 | GCE_STLPORT_LIBS := $(VSOC_STLPORT_LIBS) |
| 111 | GCE_STLPORT_STATIC_LIBS := $(VSOC_STLPORT_STATIC_LIBS) |
| 112 | GCE_TEST_INCLUDES := $(VSOC_TEST_INCLUDES) |
| 113 | GCE_TEST_LIBRARIES := $(VSOC_TEST_LIBRARIES) |
| 114 | GCE_LIBCXX_STATIC := $(VSOC_LIBCXX_STATIC) |
| 115 | GCE_PROTOBUF_SHARED_LIB := $(VSOC_PROTOBUF_SHARED_LIB) |
| 116 | # TODO(ender): up till here. |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 117 | |
Tomasz Wiszkowski | 6c50d6d | 2017-09-22 10:22:30 -0700 | [diff] [blame] | 118 | STAGEFRIGHT_AVCENC_CFLAGS := -DANDROID_GCE |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 119 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 120 | INIT_BOOTCHART := true |
| 121 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 122 | # Need this so that the application's loop on reading input can be synchronized |
| 123 | # with HW VSYNC |
| 124 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true |
| 125 | |
| 126 | # Settings for dhcpcd-6.8.2. |
| 127 | DHCPCD_USE_IPV6 := no |
| 128 | DHCPCD_USE_DBUS := no |
| 129 | DHCPCD_USE_SCRIPT := yes |
| 130 | |
| 131 | USE_XML_AUDIO_POLICY_CONF := 1 |
Steven Moreland | cd5f3ef | 2018-01-08 15:09:48 -0800 | [diff] [blame] | 132 | |
| 133 | BOARD_VNDK_VERSION := current |
| 134 | |
| 135 | # TODO(b/73078796): remove |
| 136 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |