blob: f38c4d8b861a09db1bb73a3e07a6a3b2bbbf257d [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001# config.mk
Doug Zongkere01100c2009-06-19 17:12:18 -07002#
The Android Open Source Project88b60792009-03-03 19:28:42 -08003# 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
Raghu Gandham8da43102012-07-25 19:57:22 -07009TARGET_ARCH := arm
David 'Digit' Turner5f5056f2011-06-15 15:33:24 +020010
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#
22TARGET_ARCH_VARIANT := armv7-a
Christopher Ferris6103fd72013-02-22 17:24:25 -080023TARGET_CPU_VARIANT := generic
David 'Digit' Turner5f5056f2011-06-15 15:33:24 +020024TARGET_CPU_ABI := armeabi-v7a
25TARGET_CPU_ABI2 := armeabi
The Android Open Source Project88b60792009-03-03 19:28:42 -080026HAVE_HTC_AUDIO_DRIVER := true
27BOARD_USES_GENERIC_AUDIO := true
Yahan Zhou12b53952018-02-21 15:41:51 -080028TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH)
Chih-Chung Changb9e030e2010-05-10 14:59:49 +080029
30# no hardware camera
31USE_CAMERA_STUB := true
Jean-Baptiste Queruf7a6ead2010-08-25 10:01:35 -070032
David Turner94431142011-09-28 22:54:08 +020033# 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
35ifeq ($(HOST_OS),linux)
Raghu Gandhamb53cc7a2012-05-07 07:04:57 -070036 ifeq ($(WITH_DEXPREOPT),)
37 WITH_DEXPREOPT := true
Mathieu Chartierf834ecc2017-08-28 14:19:35 -070038 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
Raghu Gandhamb53cc7a2012-05-07 07:04:57 -070039 endif
David Turner94431142011-09-28 22:54:08 +020040endif
41
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070042TARGET_USES_HWC2 := true
Lingfeng Yanga70b40f2017-05-09 15:33:26 -070043NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070044
David 'Digit' Turner43dd89d2011-08-23 22:25:13 +020045# Build OpenGLES emulation guest and host libraries
46BUILD_EMULATOR_OPENGL := true
Bo Huf0d50bb2017-08-01 19:02:09 +000047BUILD_QEMU_IMAGES := true
Jesse Hall615d2ff2011-12-01 11:45:49 -080048
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.
51USE_OPENGL_RENDERER := true
Nick Kralevich3c9fae22013-07-09 18:04:51 -070052
53TARGET_USERIMAGES_USE_EXT4 := true
Yahan Zhou93d16362016-11-01 15:59:00 -070054BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 # 2 GB
Tsu Chiang Chuang27a026c2014-05-06 17:27:20 -070055BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
Yahan Zhou3afe69d2017-04-21 12:14:44 -070056TARGET_COPY_OUT_VENDOR := vendor
57# ~100 MB vendor image. Please adjust system image / vendor image sizes
58# when finalizing them.
59BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
60BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
Nick Kralevich3c9fae22013-07-09 18:04:51 -070061BOARD_FLASH_BLOCK_SIZE := 512
62TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
bohu813249b2017-08-10 00:20:01 -070063DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
Stephen Smalley1d5352e2013-11-05 09:37:41 -050064
65BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
bohu4a6cc6a2017-06-22 22:03:32 -070066BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
bohue9046cb2017-11-28 09:24:02 -080067
Bjoern Johansson12fd2d82017-05-04 10:51:02 -070068# Wifi.
Bjoern Johansson275bdb02017-11-14 17:10:44 -080069BOARD_WLAN_DEVICE := emulator
Bjoern Johansson12fd2d82017-05-04 10:51:02 -070070BOARD_HOSTAPD_DRIVER := NL80211
71BOARD_WPA_SUPPLICANT_DRIVER := NL80211
72BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated
73BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
74WPA_SUPPLICANT_VERSION := VER_0_8_X
75WIFI_DRIVER_FW_PATH_PARAM := "/dev/null"
76WIFI_DRIVER_FW_PATH_STA := "/dev/null"
77WIFI_DRIVER_FW_PATH_AP := "/dev/null"
78
bohue9046cb2017-11-28 09:24:02 -080079# Enable A/B update
80TARGET_NO_RECOVERY := true
81BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
Steven Moreland5ee470b2018-03-15 13:09:15 -070082
83BOARD_VNDK_VERSION := current