blob: 1d58eabc817728ecccb3d1e7c3b738a109144cdb [file] [log] [blame]
Isaac Chen55e1d012018-06-11 12:52:22 +08001# BoardConfigEmuCommon.mk
2#
3# Common compile-time definitions for emulator
4#
5
6# The generic product target doesn't have any hardware-specific pieces.
7TARGET_NO_BOOTLOADER := true
8TARGET_NO_KERNEL := true
9
10HAVE_HTC_AUDIO_DRIVER := true
11BOARD_USES_GENERIC_AUDIO := true
12TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH)
13
14TARGET_USES_64_BIT_BINDER := true
15TARGET_USES_MKE2FS := true
16
17# no hardware camera
18USE_CAMERA_STUB := true
19
20TARGET_USES_HWC2 := true
21NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
22
23# Build OpenGLES emulation guest and host libraries
24BUILD_EMULATOR_OPENGL := true
25BUILD_QEMU_IMAGES := true
26
27# Build and enable the OpenGL ES View renderer. When running on the emulator,
28# the GLES renderer disables itself if host GL acceleration isn't available.
29USE_OPENGL_RENDERER := true
30
31TARGET_COPY_OUT_VENDOR := vendor
32# ~100 MB vendor image. Please adjust system image / vendor image sizes
33# when finalizing them.
34BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
35BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
36BOARD_FLASH_BLOCK_SIZE := 512
37TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
38DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
39
40# Android generic system image always create metadata partition
41BOARD_USES_METADATA_PARTITION := true
42
43# Set this to create /cache mount point for non-A/B devices that mounts /cache.
44# The partition size doesn't matter, just to make build pass.
45BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
46BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
47
48BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/common
49BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
50
51BUILD_BROKEN_DUP_RULES := false