Home | History | Annotate | Download | only in generic
      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_ARCH := arm
     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
     23 TARGET_CPU_VARIANT := generic
     24 TARGET_CPU_ABI := armeabi-v7a
     25 TARGET_CPU_ABI2 := armeabi
     26 HAVE_HTC_AUDIO_DRIVER := true
     27 BOARD_USES_GENERIC_AUDIO := true
     28 
     29 # no hardware camera
     30 USE_CAMERA_STUB := true
     31 
     32 # Enable dex-preoptimization to speed up the first boot sequence
     33 # of an SDK AVD. Note that this operation only works on Linux for now
     34 ifeq ($(HOST_OS),linux)
     35   ifeq ($(WITH_DEXPREOPT),)
     36     WITH_DEXPREOPT := true
     37     WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
     38   endif
     39 endif
     40 
     41 TARGET_USES_HWC2 := true
     42 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
     43 
     44 # Build OpenGLES emulation guest and host libraries
     45 BUILD_EMULATOR_OPENGL := true
     46 BUILD_QEMU_IMAGES := true
     47 
     48 # Build and enable the OpenGL ES View renderer. When running on the emulator,
     49 # the GLES renderer disables itself if host GL acceleration isn't available.
     50 USE_OPENGL_RENDERER := true
     51 
     52 TARGET_USERIMAGES_USE_EXT4 := true
     53 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648  # 2 GB
     54 BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
     55 TARGET_COPY_OUT_VENDOR := vendor
     56 # ~100 MB vendor image. Please adjust system image / vendor image sizes
     57 # when finalizing them.
     58 BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
     59 BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
     60 BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
     61 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
     62 BOARD_FLASH_BLOCK_SIZE := 512
     63 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
     64 DEVICE_MATRIX_FILE   := device/generic/goldfish/compatibility_matrix.xml
     65 
     66 BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
     67 BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
     68