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 9 TARGET_CPU_ABI := x86_64 10 TARGET_ARCH := x86_64 11 TARGET_ARCH_VARIANT := x86_64 12 TARGET_PRELINK_MODULE := false 13 TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH) 14 15 TARGET_2ND_CPU_ABI := x86 16 TARGET_2ND_ARCH := x86 17 TARGET_2ND_ARCH_VARIANT := x86_64 18 19 TARGET_USES_64_BIT_BINDER := true 20 21 # The IA emulator (qemu) uses the Goldfish devices 22 HAVE_HTC_AUDIO_DRIVER := true 23 BOARD_USES_GENERIC_AUDIO := true 24 25 # no hardware camera 26 USE_CAMERA_STUB := true 27 28 # Enable dex-preoptimization to speed up the first boot sequence 29 # of an SDK AVD. Note that this operation only works on Linux for now 30 ifeq ($(HOST_OS),linux) 31 WITH_DEXPREOPT ?= true 32 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false 33 endif 34 35 TARGET_USES_HWC2 := true 36 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 37 38 # Build OpenGLES emulation host and guest libraries 39 BUILD_EMULATOR_OPENGL := true 40 BUILD_QEMU_IMAGES := true 41 42 # Build and enable the OpenGL ES View renderer. When running on the emulator, 43 # the GLES renderer disables itself if host GL acceleration isn't available. 44 USE_OPENGL_RENDERER := true 45 46 TARGET_USERIMAGES_USE_EXT4 := true 47 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 # 2.5 GB 48 BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 49 TARGET_COPY_OUT_VENDOR := vendor 50 # ~100 MB vendor image. Please adjust system image / vendor image sizes 51 # when finalizing them. 52 BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000 53 BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 54 BOARD_FLASH_BLOCK_SIZE := 512 55 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 56 BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 57 DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml 58 59 # Android generic system image always create metadata partition 60 BOARD_USES_METADATA_PARTITION := true 61 62 # Set this to create /cache mount point for non-A/B devices that mounts /cache. 63 # The partition size doesn't matter, just to make build pass. 64 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 65 BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 66 67 BOARD_SEPOLICY_DIRS += \ 68 build/target/board/generic/sepolicy \ 69 build/target/board/generic_x86/sepolicy 70 71 # Android Verified Boot (AVB): 72 # Builds a special vbmeta.img that disables AVB verification. 73 # Otherwise, AVB will prevent the device from booting the generic system.img. 74 # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity 75 # metadata into system.img. 76 ifeq ($(BOARD_AVB_ENABLE),true) 77 $(error BOARD_AVB_ENABLE cannot be set for GSI) 78 endif 79 BOARD_BUILD_DISABLED_VBMETAIMAGE := true 80 81 ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) 82 # GSI is always userdebug and needs a couple of properties taking precedence 83 # over those set by the vendor. 84 TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop 85 endif 86 BOARD_VNDK_VERSION := current 87 88 # Wifi. 89 BOARD_WLAN_DEVICE := emulator 90 BOARD_HOSTAPD_DRIVER := NL80211 91 BOARD_WPA_SUPPLICANT_DRIVER := NL80211 92 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated 93 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated 94 WPA_SUPPLICANT_VERSION := VER_0_8_X 95 WIFI_DRIVER_FW_PATH_PARAM := "/dev/null" 96 WIFI_DRIVER_FW_PATH_STA := "/dev/null" 97 WIFI_DRIVER_FW_PATH_AP := "/dev/null" 98 99 # Enable A/B update 100 TARGET_NO_RECOVERY := true 101 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true 102