Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 1 | # config.mk |
| 2 | # |
| 3 | # Product-specific compile-time definitions. |
| 4 | # |
| 5 | |
| 6 | # The generic product target doesn't have any hardware-specific pieces. |
| 7 | TARGET_NO_BOOTLOADER := true |
| 8 | TARGET_NO_KERNEL := true |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 9 | TARGET_CPU_ABI := x86 |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 10 | TARGET_ARCH := x86 |
Andrew Hsieh | b968c85 | 2012-05-21 14:27:59 +0800 | [diff] [blame] | 11 | TARGET_ARCH_VARIANT := x86 |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 12 | TARGET_PRELINK_MODULE := false |
Yahan Zhou | 12b5395 | 2018-02-21 15:41:51 -0800 | [diff] [blame] | 13 | TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH) |
Bruce Beare | c25e503 | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 14 | |
bohu | 1695288 | 2018-01-18 11:08:15 -0800 | [diff] [blame] | 15 | #emulator now uses 64bit kernel to run 32bit x86 image |
| 16 | # |
| 17 | TARGET_USES_64_BIT_BINDER := true |
| 18 | |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 19 | # The IA emulator (qemu) uses the Goldfish devices |
| 20 | HAVE_HTC_AUDIO_DRIVER := true |
| 21 | BOARD_USES_GENERIC_AUDIO := true |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 22 | |
Bruce Beare | 08ee428 | 2011-02-18 15:06:20 -0800 | [diff] [blame] | 23 | # no hardware camera |
| 24 | USE_CAMERA_STUB := true |
Bruce Beare | cce6f92 | 2010-07-12 11:32:37 -0700 | [diff] [blame] | 25 | |
David Turner | 9443114 | 2011-09-28 22:54:08 +0200 | [diff] [blame] | 26 | # 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 |
| 28 | ifeq ($(HOST_OS),linux) |
Ying Wang | c6848b3 | 2014-03-20 12:57:19 -0700 | [diff] [blame] | 29 | WITH_DEXPREOPT ?= true |
Mathieu Chartier | f834ecc | 2017-08-28 14:19:35 -0700 | [diff] [blame] | 30 | WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false |
David Turner | 9443114 | 2011-09-28 22:54:08 +0200 | [diff] [blame] | 31 | endif |
| 32 | |
Lingfeng Yang | 450cd0b | 2017-03-17 10:47:19 -0700 | [diff] [blame] | 33 | TARGET_USES_HWC2 := true |
Lingfeng Yang | a70b40f | 2017-05-09 15:33:26 -0700 | [diff] [blame] | 34 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
Lingfeng Yang | 450cd0b | 2017-03-17 10:47:19 -0700 | [diff] [blame] | 35 | |
David 'Digit' Turner | 43dd89d | 2011-08-23 22:25:13 +0200 | [diff] [blame] | 36 | # Build OpenGLES emulation host and guest libraries |
| 37 | BUILD_EMULATOR_OPENGL := true |
Xavier Ducrohet | 295cb9b | 2012-02-16 16:35:42 -0800 | [diff] [blame] | 38 | |
Bo Hu | f0d50bb | 2017-08-01 19:02:09 +0000 | [diff] [blame] | 39 | # Build partitioned system.img and vendor.img (if applicable) |
| 40 | # for qemu, otherwise, init cannot find PART_NAME |
| 41 | BUILD_QEMU_IMAGES := true |
| 42 | |
Xavier Ducrohet | 295cb9b | 2012-02-16 16:35:42 -0800 | [diff] [blame] | 43 | # 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. |
| 45 | USE_OPENGL_RENDERER := true |
Nick Kralevich | 3c9fae2 | 2013-07-09 18:04:51 -0700 | [diff] [blame] | 46 | |
| 47 | TARGET_USERIMAGES_USE_EXT4 := true |
bohu | 813249b | 2017-08-10 00:20:01 -0700 | [diff] [blame] | 48 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 |
Tsu Chiang Chuang | 27a026c | 2014-05-06 17:27:20 -0700 | [diff] [blame] | 49 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 |
Yahan Zhou | 3afe69d | 2017-04-21 12:14:44 -0700 | [diff] [blame] | 50 | TARGET_COPY_OUT_VENDOR := vendor |
bohu | 4a6cc6a | 2017-06-22 22:03:32 -0700 | [diff] [blame] | 51 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
Yahan Zhou | 3afe69d | 2017-04-21 12:14:44 -0700 | [diff] [blame] | 52 | # ~100 MB vendor image. Please adjust system image / vendor image sizes |
| 53 | # when finalizing them. |
| 54 | BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000 |
| 55 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
Nick Kralevich | 3c9fae2 | 2013-07-09 18:04:51 -0700 | [diff] [blame] | 56 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 57 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |
bohu | 813249b | 2017-08-10 00:20:01 -0700 | [diff] [blame] | 58 | DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml |
Stephen Smalley | 737f9a1 | 2013-12-20 13:26:11 -0500 | [diff] [blame] | 59 | |
Stephen Smalley | a49411f | 2014-06-16 12:36:49 -0400 | [diff] [blame] | 60 | BOARD_SEPOLICY_DIRS += \ |
| 61 | build/target/board/generic/sepolicy \ |
| 62 | build/target/board/generic_x86/sepolicy |
bohu | e9046cb | 2017-11-28 09:24:02 -0800 | [diff] [blame] | 63 | |
Isaac Chen | d9fed02 | 2017-11-30 18:55:10 +0800 | [diff] [blame] | 64 | BOARD_VNDK_VERSION := current |
| 65 | |
Dan Willemsen | 07a7227 | 2018-04-06 21:00:17 +0000 | [diff] [blame] | 66 | BUILD_BROKEN_DUP_RULES := false |
| 67 | |
bohu | e9046cb | 2017-11-28 09:24:02 -0800 | [diff] [blame] | 68 | # Enable A/B update |
| 69 | TARGET_NO_RECOVERY := true |
| 70 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |