blob: a9c5142049affd1db9a49ba157e19b014e62477b [file] [log] [blame]
Pavel Chupinfd82a492012-11-26 09:50:07 +04001# config.mk
2#
3# Product-specific compile-time definitions.
4#
5
6# The generic product target doesn't have any hardware-specific pieces.
7TARGET_NO_BOOTLOADER := true
8TARGET_NO_KERNEL := true
9TARGET_CPU_ABI := x86_64
10TARGET_ARCH := x86_64
11TARGET_ARCH_VARIANT := x86_64
12TARGET_PRELINK_MODULE := false
Yahan Zhou12b53952018-02-21 15:41:51 -080013TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH)
Pavel Chupinfd82a492012-11-26 09:50:07 +040014
Colin Cross930b5fb2014-01-28 14:35:16 -080015TARGET_2ND_CPU_ABI := x86
16TARGET_2ND_ARCH := x86
Dan Willemsen04aa5212016-05-10 14:08:45 -070017TARGET_2ND_ARCH_VARIANT := x86_64
Colin Cross930b5fb2014-01-28 14:35:16 -080018
19TARGET_USES_64_BIT_BINDER := true
20
Pavel Chupinfd82a492012-11-26 09:50:07 +040021# The IA emulator (qemu) uses the Goldfish devices
22HAVE_HTC_AUDIO_DRIVER := true
23BOARD_USES_GENERIC_AUDIO := true
24
25# no hardware camera
26USE_CAMERA_STUB := true
27
Pavel Chupinfd82a492012-11-26 09:50:07 +040028# Enable dex-preoptimization to speed up the first boot sequence
29# of an SDK AVD. Note that this operation only works on Linux for now
30ifeq ($(HOST_OS),linux)
Ying Wangc6848b32014-03-20 12:57:19 -070031WITH_DEXPREOPT ?= true
Mathieu Chartierf834ecc2017-08-28 14:19:35 -070032WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false
Pavel Chupinfd82a492012-11-26 09:50:07 +040033endif
34
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070035TARGET_USES_HWC2 := true
Lingfeng Yanga70b40f2017-05-09 15:33:26 -070036NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070037
Greg Hackmanndc011362014-03-31 16:54:52 -070038# Build OpenGLES emulation host and guest libraries
39BUILD_EMULATOR_OPENGL := true
Bo Huf0d50bb2017-08-01 19:02:09 +000040BUILD_QEMU_IMAGES := true
Pavel Chupinfd82a492012-11-26 09:50:07 +040041
42# Build and enable the OpenGL ES View renderer. When running on the emulator,
43# the GLES renderer disables itself if host GL acceleration isn't available.
44USE_OPENGL_RENDERER := true
45
46TARGET_USERIMAGES_USE_EXT4 := true
Yahan Zhouc3634362016-11-03 17:51:26 -070047BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 # 2.5 GB
Tsu Chiang Chuang27a026c2014-05-06 17:27:20 -070048BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
Yahan Zhou3afe69d2017-04-21 12:14:44 -070049TARGET_COPY_OUT_VENDOR := vendor
50# ~100 MB vendor image. Please adjust system image / vendor image sizes
51# when finalizing them.
52BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
53BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
Pavel Chupinfd82a492012-11-26 09:50:07 +040054BOARD_FLASH_BLOCK_SIZE := 512
55TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
bohu4a6cc6a2017-06-22 22:03:32 -070056BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
bohu813249b2017-08-10 00:20:01 -070057DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
Stephen Smalley901d7922015-04-29 09:55:08 -040058
59BOARD_SEPOLICY_DIRS += \
60 build/target/board/generic/sepolicy \
61 build/target/board/generic_x86/sepolicy
bohue9046cb2017-11-28 09:24:02 -080062
Isaac Chend9fed022017-11-30 18:55:10 +080063BOARD_VNDK_VERSION := current
64
bohue9046cb2017-11-28 09:24:02 -080065# Enable A/B update
66TARGET_NO_RECOVERY := true
67BOARD_BUILD_SYSTEM_ROOT_IMAGE := true