blob: c871d7eab3f621e697629ac124010c204760e41f [file] [log] [blame]
Isaac Chen55e1d012018-06-11 12:52:22 +08001# BoardConfigEmuCommon.mk
2#
3# Common compile-time definitions for emulator
4#
5
Isaac Chen55e1d012018-06-11 12:52:22 +08006HAVE_HTC_AUDIO_DRIVER := true
7BOARD_USES_GENERIC_AUDIO := true
8TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH)
9
Isaac Chen55e1d012018-06-11 12:52:22 +080010# no hardware camera
11USE_CAMERA_STUB := true
12
Isaac Chen55e1d012018-06-11 12:52:22 +080013NUM_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
Isaac Chen90bfda12019-04-12 13:16:34 +080023# Emulator doesn't support sparse image format.
24TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
25
Cody Schuffelen45dd92e2019-02-26 00:21:17 -080026# ~140 MB vendor image. Please adjust system image / vendor image sizes
Bowgo Tsai9d286382018-08-31 21:40:10 +080027# when finalizing them. The partition size needs to be a multiple of image
28# block size: 4096.
Cody Schuffelen45dd92e2019-02-26 00:21:17 -080029BOARD_VENDORIMAGE_PARTITION_SIZE := 140963840
Isaac Chen55e1d012018-06-11 12:52:22 +080030BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
31BOARD_FLASH_BLOCK_SIZE := 512
Isaac Chen55e1d012018-06-11 12:52:22 +080032DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
33
Isaac Chen55e1d012018-06-11 12:52:22 +080034BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/common
SzuWei Lina2d5ed12019-01-09 15:42:36 +080035
Anton Hanssoncd2f9442019-03-22 15:02:08 +000036# TODO(b/125540538): Remove when emulator uses dynamic partitions
37BOARD_BUILD_SYSTEM_ROOT_IMAGE := true