github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/make/target/board/generic_x86/BoardConfig.mk (about) 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 10 TARGET_ARCH := x86 11 TARGET_ARCH_VARIANT := x86 12 TARGET_PRELINK_MODULE := false 13 TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH) 14 15 #emulator now uses 64bit kernel to run 32bit x86 image 16 # 17 TARGET_USES_64_BIT_BINDER := true 18 19 # The IA emulator (qemu) uses the Goldfish devices 20 HAVE_HTC_AUDIO_DRIVER := true 21 BOARD_USES_GENERIC_AUDIO := true 22 23 # no hardware camera 24 USE_CAMERA_STUB := true 25 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) 29 WITH_DEXPREOPT ?= true 30 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= false 31 endif 32 33 TARGET_USES_HWC2 := true 34 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 35 36 # Build OpenGLES emulation host and guest libraries 37 BUILD_EMULATOR_OPENGL := true 38 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 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 46 47 TARGET_USERIMAGES_USE_EXT4 := true 48 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 49 # Resize to 4G to accomodate ASAN and CTS 50 BOARD_USERDATAIMAGE_PARTITION_SIZE := 4294967296 51 TARGET_COPY_OUT_VENDOR := vendor 52 BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true 53 # ~100 MB vendor image. Please adjust system image / vendor image sizes 54 # when finalizing them. 55 BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000 56 BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 57 BOARD_FLASH_BLOCK_SIZE := 512 58 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 59 DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml 60 61 # Android generic system image always create metadata partition 62 BOARD_USES_METADATA_PARTITION := true 63 64 # Set this to create /cache mount point for non-A/B devices that mounts /cache. 65 # The partition size doesn't matter, just to make build pass. 66 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 67 BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 68 69 BOARD_SEPOLICY_DIRS += \ 70 device/generic/goldfish/sepolicy/common \ 71 device/generic/goldfish/sepolicy/x86 72 73 # Android Verified Boot (AVB): 74 # Builds a special vbmeta.img that disables AVB verification. 75 # Otherwise, AVB will prevent the device from booting the generic system.img. 76 # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity 77 # metadata into system.img. 78 ifeq ($(BOARD_AVB_ENABLE),true) 79 $(error BOARD_AVB_ENABLE cannot be set for GSI) 80 endif 81 BOARD_BUILD_DISABLED_VBMETAIMAGE := true 82 83 ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) 84 # GSI is always userdebug and needs a couple of properties taking precedence 85 # over those set by the vendor. 86 TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop 87 endif 88 BOARD_VNDK_VERSION := current 89 90 # Enable A/B update 91 TARGET_NO_RECOVERY := true 92 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true 93 94 # Wifi. 95 BOARD_WLAN_DEVICE := emulator 96 BOARD_HOSTAPD_DRIVER := NL80211 97 BOARD_WPA_SUPPLICANT_DRIVER := NL80211 98 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_simulated 99 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_simulated 100 WPA_SUPPLICANT_VERSION := VER_0_8_X 101 WIFI_DRIVER_FW_PATH_PARAM := "/dev/null" 102 WIFI_DRIVER_FW_PATH_STA := "/dev/null" 103 WIFI_DRIVER_FW_PATH_AP := "/dev/null"