blob: b79ee277575c898fd50f9d365e809d84f7e4843a [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
Greg Hartman2bfe3812018-03-15 07:53:58 -070049# Resize to 4G to accomodate ASAN and CTS
50BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296
Yahan Zhou3afe69d2017-04-21 12:14:44 -070051TARGET_COPY_OUT_VENDOR := vendor
bohu4a6cc6a2017-06-22 22:03:32 -070052BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
Yahan Zhou3afe69d2017-04-21 12:14:44 -070053# ~100 MB vendor image. Please adjust system image / vendor image sizes
54# when finalizing them.
55BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
56BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
Nick Kralevich3c9fae22013-07-09 18:04:51 -070057BOARD_FLASH_BLOCK_SIZE := 512
58TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
bohu813249b2017-08-10 00:20:01 -070059DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml
Stephen Smalley737f9a12013-12-20 13:26:11 -050060
Stephen Smalleya49411f2014-06-16 12:36:49 -040061BOARD_SEPOLICY_DIRS += \
62 build/target/board/generic/sepolicy \
63 build/target/board/generic_x86/sepolicy
bohue9046cb2017-11-28 09:24:02 -080064
Isaac Chend9fed022017-11-30 18:55:10 +080065BOARD_VNDK_VERSION := current
66
Dan Willemsen07a72272018-04-06 21:00:17 +000067BUILD_BROKEN_DUP_RULES := false
68
bohue9046cb2017-11-28 09:24:02 -080069# Enable A/B update
70TARGET_NO_RECOVERY := true
71BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
Bjoern Johansson127395f2017-02-09 22:28:47 -080072
73# Wifi.
Bjoern Johansson275bdb02017-11-14 17:10:44 -080074BOARD_WLAN_DEVICE := emulator
Bjoern Johansson127395f2017-02-09 22:28:47 -080075BOARD_HOSTAPD_DRIVER := NL80211
76BOARD_WPA_SUPPLICANT_DRIVER := NL80211
77BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated
78BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated
79WPA_SUPPLICANT_VERSION := VER_0_8_X
80WIFI_DRIVER_FW_PATH_PARAM := "/dev/null"
81WIFI_DRIVER_FW_PATH_STA := "/dev/null"
82WIFI_DRIVER_FW_PATH_AP := "/dev/null"