The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # config.mk |
Doug Zongker | e01100c | 2009-06-19 17:12:18 -0700 | [diff] [blame] | 2 | # |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 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 |
Raghu Gandham | 8da4310 | 2012-07-25 19:57:22 -0700 | [diff] [blame] | 9 | TARGET_ARCH := arm |
David 'Digit' Turner | 5f5056f | 2011-06-15 15:33:24 +0200 | [diff] [blame] | 10 | |
| 11 | # Note: we build the platform images for ARMv7-A _without_ NEON. |
| 12 | # |
| 13 | # Technically, the emulator supports ARMv7-A _and_ NEON instructions, but |
| 14 | # emulated NEON code paths typically ends up 2x slower than the normal C code |
| 15 | # it is supposed to replace (unlike on real devices where it is 2x to 3x |
| 16 | # faster). |
| 17 | # |
| 18 | # What this means is that the platform image will not use NEON code paths |
| 19 | # that are slower to emulate. On the other hand, it is possible to emulate |
| 20 | # application code generated with the NDK that uses NEON in the emulator. |
| 21 | # |
| 22 | TARGET_ARCH_VARIANT := armv7-a |
Christopher Ferris | 6103fd7 | 2013-02-22 17:24:25 -0800 | [diff] [blame] | 23 | TARGET_CPU_VARIANT := generic |
David 'Digit' Turner | 5f5056f | 2011-06-15 15:33:24 +0200 | [diff] [blame] | 24 | TARGET_CPU_ABI := armeabi-v7a |
| 25 | TARGET_CPU_ABI2 := armeabi |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 26 | HAVE_HTC_AUDIO_DRIVER := true |
| 27 | BOARD_USES_GENERIC_AUDIO := true |
Yahan Zhou | 12b5395 | 2018-02-21 15:41:51 -0800 | [diff] [blame] | 28 | TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH) |
Chih-Chung Chang | b9e030e | 2010-05-10 14:59:49 +0800 | [diff] [blame] | 29 | |
| 30 | # no hardware camera |
| 31 | USE_CAMERA_STUB := true |
Jean-Baptiste Queru | f7a6ead | 2010-08-25 10:01:35 -0700 | [diff] [blame] | 32 | |
David Turner | 9443114 | 2011-09-28 22:54:08 +0200 | [diff] [blame] | 33 | # Enable dex-preoptimization to speed up the first boot sequence |
| 34 | # of an SDK AVD. Note that this operation only works on Linux for now |
| 35 | ifeq ($(HOST_OS),linux) |
Raghu Gandham | b53cc7a | 2012-05-07 07:04:57 -0700 | [diff] [blame] | 36 | ifeq ($(WITH_DEXPREOPT),) |
| 37 | WITH_DEXPREOPT := true |
Mathieu Chartier | f834ecc | 2017-08-28 14:19:35 -0700 | [diff] [blame] | 38 | WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false |
Raghu Gandham | b53cc7a | 2012-05-07 07:04:57 -0700 | [diff] [blame] | 39 | endif |
David Turner | 9443114 | 2011-09-28 22:54:08 +0200 | [diff] [blame] | 40 | endif |
| 41 | |
Lingfeng Yang | 450cd0b | 2017-03-17 10:47:19 -0700 | [diff] [blame] | 42 | TARGET_USES_HWC2 := true |
Lingfeng Yang | a70b40f | 2017-05-09 15:33:26 -0700 | [diff] [blame] | 43 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
Lingfeng Yang | 450cd0b | 2017-03-17 10:47:19 -0700 | [diff] [blame] | 44 | |
David 'Digit' Turner | 43dd89d | 2011-08-23 22:25:13 +0200 | [diff] [blame] | 45 | # Build OpenGLES emulation guest and host libraries |
| 46 | BUILD_EMULATOR_OPENGL := true |
Bo Hu | f0d50bb | 2017-08-01 19:02:09 +0000 | [diff] [blame] | 47 | BUILD_QEMU_IMAGES := true |
Jesse Hall | 615d2ff | 2011-12-01 11:45:49 -0800 | [diff] [blame] | 48 | |
| 49 | # Build and enable the OpenGL ES View renderer. When running on the emulator, |
| 50 | # the GLES renderer disables itself if host GL acceleration isn't available. |
| 51 | USE_OPENGL_RENDERER := true |
Nick Kralevich | 3c9fae2 | 2013-07-09 18:04:51 -0700 | [diff] [blame] | 52 | |
| 53 | TARGET_USERIMAGES_USE_EXT4 := true |
Yahan Zhou | 93d1636 | 2016-11-01 15:59:00 -0700 | [diff] [blame] | 54 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 # 2 GB |
Tsu Chiang Chuang | 27a026c | 2014-05-06 17:27:20 -0700 | [diff] [blame] | 55 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 |
Yahan Zhou | 3afe69d | 2017-04-21 12:14:44 -0700 | [diff] [blame] | 56 | TARGET_COPY_OUT_VENDOR := vendor |
| 57 | # ~100 MB vendor image. Please adjust system image / vendor image sizes |
| 58 | # when finalizing them. |
| 59 | BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000 |
| 60 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
Nick Kralevich | 3c9fae2 | 2013-07-09 18:04:51 -0700 | [diff] [blame] | 61 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 62 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |
bohu | 813249b | 2017-08-10 00:20:01 -0700 | [diff] [blame] | 63 | DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml |
Stephen Smalley | 1d5352e | 2013-11-05 09:37:41 -0500 | [diff] [blame] | 64 | |
| 65 | BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy |
bohu | 4a6cc6a | 2017-06-22 22:03:32 -0700 | [diff] [blame] | 66 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
bohu | e9046cb | 2017-11-28 09:24:02 -0800 | [diff] [blame] | 67 | |
| 68 | # Enable A/B update |
| 69 | TARGET_NO_RECOVERY := true |
| 70 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
Steven Moreland | 5ee470b | 2018-03-15 13:09:15 -0700 | [diff] [blame] | 71 | |
Dan Willemsen | 07a7227 | 2018-04-06 21:00:17 +0000 | [diff] [blame^] | 72 | BOARD_VNDK_VERSION := current |
| 73 | |
| 74 | BUILD_BROKEN_DUP_RULES := false |