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 | |
| 21 | TARGET_NO_RECOVERY := true |
| 22 | BOARD_USES_GENERIC_AUDIO := false |
| 23 | USE_CAMERA_STUB := true |
| 24 | TARGET_USERIMAGES_USE_EXT4 := true |
| 25 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |
| 26 | BOARD_EGL_CFG := device/google/cuttlefish/shared/config/egl.cfg |
| 27 | TARGET_USES_64_BIT_BINDER := true |
| 28 | |
| 29 | # Hardware composer configuration |
| 30 | TARGET_USES_HWC2 := true |
| 31 | |
| 32 | # Bluetooth configuration |
| 33 | BOARD_BLUETOOTH_USE_TEST_AS_VENDOR := true |
| 34 | BOARD_BLUETOOTH_IMPL_DIR := $(TOP_DIR)system/bt |
| 35 | BOARD_USE_BLUETOOTH_STUBS := false |
| 36 | |
| 37 | # The compiler will occasionally generate movaps, etc. |
| 38 | BOARD_MALLOC_ALIGNMENT := 16 |
| 39 | |
| 40 | # System partition size: 3.0G |
| 41 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472 |
| 42 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824 |
| 43 | |
| 44 | # Cache partition size: 64M |
| 45 | BOARD_CACHEIMAGE_PARTITION_SIZE := 67108864 |
| 46 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 47 | |
| 48 | BOARD_KERNEL_CMDLINE := console=ttyS0 init=/init androidboot.hardware=vsoc androidboot.console=ttyS0 security=selinux androidboot.selinux=permissive enforcing=0 loop.max_part=7 audit=0 |
| 49 | |
| 50 | # Minimum size of the final bootable disk image: 10G |
| 51 | # GCE will pad disk images out to 10G. Our disk images should be at least as |
| 52 | # big to avoid warnings about partition table oddities. |
| 53 | BOARD_DISK_IMAGE_MINIMUM_SIZE := 10737418240 |
| 54 | |
| 55 | BOARD_BOOTIMAGE_MAX_SIZE := 8388608 |
| 56 | BOARD_SYSLOADER_MAX_SIZE := 7340032 |
| 57 | # TODO(san): See if we can get rid of this. |
| 58 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 59 | |
| 60 | # master has breaking changes in dlfcn.h, but the platform SDK hasn't been |
| 61 | # bumped. Restore the line below when it is. |
| 62 | GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=26 |
| 63 | # GCE_VERSION_CFLAGS := -DGCE_PLATFORM_SDK_VERSION=${PLATFORM_SDK_VERSION} |
| 64 | SSHDIR := /var/run/ssh |
| 65 | STAGEFRIGHT_AVCENC_CFLAGS := -DANDROID_GCE |
| 66 | |
| 67 | WITH_DEXPREOPT := true |
| 68 | |
| 69 | USE_OPENGL_RENDERER := true |
| 70 | |
| 71 | USE_CLANG_PLATFORM_BUILD := true |
| 72 | |
| 73 | # Wifi. |
| 74 | BOARD_WLAN_DEVICE := wlan0 |
| 75 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 76 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 77 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated |
| 78 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated |
| 79 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
| 80 | WIFI_DRIVER_FW_PATH_PARAM := "/dev/null" |
| 81 | WIFI_DRIVER_FW_PATH_STA := "/dev/null" |
| 82 | WIFI_DRIVER_FW_PATH_AP := "/dev/null" |
| 83 | |
| 84 | BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/sepolicy |
| 85 | |
| 86 | GCE_STLPORT_INCLUDES := |
| 87 | GCE_STLPORT_LIBS := |
| 88 | GCE_STLPORT_STATIC_LIBS := |
| 89 | |
| 90 | GCE_TEST_INCLUDES := external/googletest/googlemock/include external/googletest/googletest/include |
| 91 | GCE_TEST_LIBRARIES := libgmock_main_host libgtest_host libgmock_host |
| 92 | |
| 93 | GCE_LIBCXX_STATIC := libc++_static |
| 94 | |
| 95 | GCE_PROTOBUF_SHARED_LIB := libprotobuf-cpp-full |
| 96 | INIT_BOOTCHART := true |
| 97 | |
| 98 | DEVICE_MANIFEST_FILE := device/google/cuttlefish/shared/config/manifest.xml |
| 99 | |
| 100 | # Need this so that the application's loop on reading input can be synchronized |
| 101 | # with HW VSYNC |
| 102 | TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true |
| 103 | |
| 104 | # Settings for dhcpcd-6.8.2. |
| 105 | DHCPCD_USE_IPV6 := no |
| 106 | DHCPCD_USE_DBUS := no |
| 107 | DHCPCD_USE_SCRIPT := yes |
| 108 | |
| 109 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 110 | |