1# BoardConfigEmuCommon.mk
2#
3# Common compile-time definitions for emulator
4#
5
6HAVE_HTC_AUDIO_DRIVER := true
7BOARD_USES_GENERIC_AUDIO := true
8TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH)
9
10# no hardware camera
11USE_CAMERA_STUB := true
12
13NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
14
15# Build OpenGLES emulation guest and host libraries
16BUILD_EMULATOR_OPENGL := true
17BUILD_QEMU_IMAGES := true
18
19# Build and enable the OpenGL ES View renderer. When running on the emulator,
20# the GLES renderer disables itself if host GL acceleration isn't available.
21USE_OPENGL_RENDERER := true
22
23# Emulator doesn't support sparse image format.
24TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
25
26ifeq ($(PRODUCT_USE_DYNAMIC_PARTITIONS),true)
27  # emulator is Non-A/B device
28  AB_OTA_UPDATER := false
29
30  # emulator needs super.img
31  BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true
32
33  BOARD_EXT4_SHARE_DUP_BLOCKS := true
34
35  # 3G + header
36  BOARD_SUPER_PARTITION_SIZE := 3229614080
37  BOARD_SUPER_PARTITION_GROUPS := emulator_dynamic_partitions
38  BOARD_EMULATOR_DYNAMIC_PARTITIONS_PARTITION_LIST := \
39      system \
40      vendor
41
42  # 3G
43  BOARD_EMULATOR_DYNAMIC_PARTITIONS_SIZE := 3221225472
44else ifeq ($(PRODUCT_USE_DYNAMIC_PARTITION_SIZE),true)
45  # Enable dynamic system image size and reserved 64MB in it.
46  BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 67108864
47  BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 67108864
48else
49  BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
50  BOARD_VENDORIMAGE_PARTITION_SIZE := 146800640
51endif
52
53BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_FLASH_BLOCK_SIZE := 512
55DEVICE_MATRIX_FILE   := device/generic/goldfish/compatibility_matrix.xml
56
57BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/common
58