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 | |
| 41 | # Bluetooth configuration |
| 42 | BOARD_BLUETOOTH_USE_TEST_AS_VENDOR := true |
| 43 | BOARD_BLUETOOTH_IMPL_DIR := $(TOP_DIR)system/bt |
| 44 | BOARD_USE_BLUETOOTH_STUBS := false |
| 45 | |
| 46 | # The compiler will occasionally generate movaps, etc. |
| 47 | BOARD_MALLOC_ALIGNMENT := 16 |
| 48 | |
| 49 | # System partition size: 3.0G |
| 50 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 |
Greg Hartman | 09b0659 | 2018-03-16 22:00:14 -0700 | [diff] [blame] | 51 | # Make the userdata partition 4G to accomodate ASAN and CTS |
| 52 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296 |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 53 | |
| 54 | # Cache partition size: 64M |
| 55 | BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864 |
| 56 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 57 | |
Greg Hartman | 74f7e6a | 2017-08-31 13:45:43 -0700 | [diff] [blame] | 58 | BOARD_KERNEL_CMDLINE := loop.max_part=7 |
Greg Hartman | a3f06d2 | 2017-11-13 18:32:57 -0800 | [diff] [blame] | 59 | BOARD_KERNEL_CMDLINE += console=ttyS0 androidboot.console=ttyS1 |
Greg Hartman | b575963 | 2017-11-13 16:58:16 -0800 | [diff] [blame] | 60 | BOARD_KERNEL_CMDLINE += androidboot.hardware=vsoc |
Greg Hartman | 74f7e6a | 2017-08-31 13:45:43 -0700 | [diff] [blame] | 61 | BOARD_KERNEL_CMDLINE += enforcing=0 audit=1 |
| 62 | BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive |
Tomasz Wiszkowski | c816c8f | 2017-11-29 12:23:49 -0800 | [diff] [blame] | 63 | BOARD_KERNEL_CMDLINE += mac80211_hwsim.radios=0 |
Greg Hartman | 74f7e6a | 2017-08-31 13:45:43 -0700 | [diff] [blame] | 64 | |
| 65 | # TODO(b/65266349) Figure out why this is needed |
| 66 | BOARD_KERNEL_CMDLINE += security=selinux |
| 67 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 68 | # 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. |
| 71 | BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240 |
| 72 | |
| 73 | BOARD_BOOTIMAGE_MAX_SIZE := 8388608 |
| 74 | BOARD_SYSLOADER_MAX_SIZE := 7340032 |
| 75 | # TODO(san): See if we can get rid of this. |
| 76 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 77 | |
Tomasz Wiszkowski | ca327fe | 2017-05-26 15:54:12 -0700 | [diff] [blame] | 78 | WITH_DEXPREOPT := true |
| 79 | |
| 80 | USE_OPENGL_RENDERER := true |
| 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 | |
| 122 | DEVICE_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 |
| 126 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true |
| 127 | |
| 128 | # Settings for dhcpcd-6.8.2. |
| 129 | DHCPCD_USE_IPV6 := no |
| 130 | DHCPCD_USE_DBUS := no |
| 131 | DHCPCD_USE_SCRIPT := yes |
| 132 | |
| 133 | USE_XML_AUDIO_POLICY_CONF := 1 |
Steven Moreland | cd5f3ef | 2018-01-08 15:09:48 -0800 | [diff] [blame] | 134 | |
| 135 | BOARD_VNDK_VERSION := current |
| 136 | |
| 137 | # TODO(b/73078796): remove |
| 138 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |