blob: f71e72b95df6632c9c62714e86bf97655ba3d349 [file] [log] [blame]
Bruce Beare08ee4282011-02-18 15:06:20 -08001# 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
Bruce Bearec25e5032010-04-28 14:12:52 -07009TARGET_CPU_ABI := x86
Bruce Beare08ee4282011-02-18 15:06:20 -080010TARGET_ARCH := x86
Andrew Hsiehb968c852012-05-21 14:27:59 +080011TARGET_ARCH_VARIANT := x86
Bruce Beare08ee4282011-02-18 15:06:20 -080012TARGET_PRELINK_MODULE := false
Yahan Zhou12b53952018-02-21 15:41:51 -080013TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH)
Bruce Bearec25e5032010-04-28 14:12:52 -070014
bohu16952882018-01-18 11:08:15 -080015#emulator now uses 64bit kernel to run 32bit x86 image
16#
17TARGET_USES_64_BIT_BINDER := true
18
Bruce Beare08ee4282011-02-18 15:06:20 -080019# The IA emulator (qemu) uses the Goldfish devices
20HAVE_HTC_AUDIO_DRIVER := true
21BOARD_USES_GENERIC_AUDIO := true
Bruce Bearecce6f922010-07-12 11:32:37 -070022
Bruce Beare08ee4282011-02-18 15:06:20 -080023# no hardware camera
24USE_CAMERA_STUB := true
Bruce Bearecce6f922010-07-12 11:32:37 -070025
David Turner94431142011-09-28 22:54:08 +020026# Enable dex-preoptimization to speed up the first boot sequence
27# of an SDK AVD. Note that this operation only works on Linux for now
28ifeq ($(HOST_OS),linux)
Ying Wangc6848b32014-03-20 12:57:19 -070029WITH_DEXPREOPT ?= true
Mathieu Chartierf834ecc2017-08-28 14:19:35 -070030WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false
David Turner94431142011-09-28 22:54:08 +020031endif
32
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070033TARGET_USES_HWC2 := true
Lingfeng Yanga70b40f2017-05-09 15:33:26 -070034NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070035
David 'Digit' Turner43dd89d2011-08-23 22:25:13 +020036# Build OpenGLES emulation host and guest libraries
37BUILD_EMULATOR_OPENGL := true
Xavier Ducrohet295cb9b2012-02-16 16:35:42 -080038
Bo Huf0d50bb2017-08-01 19:02:09 +000039# Build partitioned system.img and vendor.img (if applicable)
40# for qemu, otherwise, init cannot find PART_NAME
41BUILD_QEMU_IMAGES := true
42
Xavier Ducrohet295cb9b2012-02-16 16:35:42 -080043# Build and enable the OpenGL ES View renderer. When running on the emulator,
44# the GLES renderer disables itself if host GL acceleration isn't available.
45USE_OPENGL_RENDERER := true
Nick Kralevich3c9fae22013-07-09 18:04:51 -070046
47TARGET_USERIMAGES_USE_EXT4 := true
bohu813249b2017-08-10 00:20:01 -070048BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560
Tsu Chiang Chuang27a026c2014-05-06 17:27:20 -070049BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
Yahan Zhou3afe69d2017-04-21 12:14:44 -070050TARGET_COPY_OUT_VENDOR := vendor
bohu4a6cc6a2017-06-22 22:03:32 -070051BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
Yahan Zhou3afe69d2017-04-21 12:14:44 -070052# ~100 MB vendor image. Please adjust system image / vendor image sizes
53# when finalizing them.
54BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
55BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
Nick Kralevich3c9fae22013-07-09 18:04:51 -070056BOARD_FLASH_BLOCK_SIZE := 512
57TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
bohu813249b2017-08-10 00:20:01 -070058DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
Stephen Smalley737f9a12013-12-20 13:26:11 -050059
Stephen Smalleya49411f2014-06-16 12:36:49 -040060BOARD_SEPOLICY_DIRS += \
61 build/target/board/generic/sepolicy \
62 build/target/board/generic_x86/sepolicy
bohue9046cb2017-11-28 09:24:02 -080063
Isaac Chend9fed022017-11-30 18:55:10 +080064BOARD_VNDK_VERSION := current
65
bohue9046cb2017-11-28 09:24:02 -080066# Enable A/B update
67TARGET_NO_RECOVERY := true
68BOARD_BUILD_SYSTEM_ROOT_IMAGE := true