2009-03-04 04:28:42 +01:00
|
|
|
# config.mk
|
2009-06-20 02:12:18 +02:00
|
|
|
#
|
2009-03-04 04:28:42 +01:00
|
|
|
# Product-specific compile-time definitions.
|
|
|
|
#
|
|
|
|
|
|
|
|
# The generic product target doesn't have any hardware-specific pieces.
|
|
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
|
TARGET_NO_KERNEL := true
|
2012-07-26 04:57:22 +02:00
|
|
|
TARGET_ARCH := arm
|
2011-06-15 15:33:24 +02:00
|
|
|
|
|
|
|
# Note: we build the platform images for ARMv7-A _without_ NEON.
|
|
|
|
#
|
|
|
|
# Technically, the emulator supports ARMv7-A _and_ NEON instructions, but
|
|
|
|
# emulated NEON code paths typically ends up 2x slower than the normal C code
|
|
|
|
# it is supposed to replace (unlike on real devices where it is 2x to 3x
|
|
|
|
# faster).
|
|
|
|
#
|
|
|
|
# What this means is that the platform image will not use NEON code paths
|
|
|
|
# that are slower to emulate. On the other hand, it is possible to emulate
|
|
|
|
# application code generated with the NDK that uses NEON in the emulator.
|
|
|
|
#
|
|
|
|
TARGET_ARCH_VARIANT := armv7-a
|
2013-02-23 02:24:25 +01:00
|
|
|
TARGET_CPU_VARIANT := generic
|
2011-06-15 15:33:24 +02:00
|
|
|
TARGET_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_CPU_ABI2 := armeabi
|
2009-03-04 04:28:42 +01:00
|
|
|
HAVE_HTC_AUDIO_DRIVER := true
|
|
|
|
BOARD_USES_GENERIC_AUDIO := true
|
2010-05-10 08:59:49 +02:00
|
|
|
|
|
|
|
# no hardware camera
|
|
|
|
USE_CAMERA_STUB := true
|
2010-08-25 19:01:35 +02:00
|
|
|
|
2011-09-28 22:54:08 +02:00
|
|
|
# Enable dex-preoptimization to speed up the first boot sequence
|
|
|
|
# of an SDK AVD. Note that this operation only works on Linux for now
|
|
|
|
ifeq ($(HOST_OS),linux)
|
2012-05-07 16:04:57 +02:00
|
|
|
ifeq ($(WITH_DEXPREOPT),)
|
|
|
|
WITH_DEXPREOPT := true
|
2017-08-28 23:19:35 +02:00
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
|
2012-05-07 16:04:57 +02:00
|
|
|
endif
|
2011-09-28 22:54:08 +02:00
|
|
|
endif
|
|
|
|
|
2017-03-17 18:47:19 +01:00
|
|
|
TARGET_USES_HWC2 := true
|
2017-05-10 00:33:26 +02:00
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
2017-03-17 18:47:19 +01:00
|
|
|
|
2011-08-23 22:25:13 +02:00
|
|
|
# Build OpenGLES emulation guest and host libraries
|
|
|
|
BUILD_EMULATOR_OPENGL := true
|
2017-08-01 21:02:09 +02:00
|
|
|
BUILD_QEMU_IMAGES := true
|
2011-12-01 20:45:49 +01:00
|
|
|
|
|
|
|
# Build and enable the OpenGL ES View renderer. When running on the emulator,
|
|
|
|
# the GLES renderer disables itself if host GL acceleration isn't available.
|
|
|
|
USE_OPENGL_RENDERER := true
|
2013-07-10 03:04:51 +02:00
|
|
|
|
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
2016-11-01 23:59:00 +01:00
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648 # 2 GB
|
2014-05-07 02:27:20 +02:00
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
|
2017-04-21 21:14:44 +02:00
|
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
|
|
|
# ~100 MB vendor image. Please adjust system image / vendor image sizes
|
|
|
|
# when finalizing them.
|
|
|
|
BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
|
|
|
|
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
2013-07-10 03:04:51 +02:00
|
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
|
|
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_FLASH_BLOCK_SIZE := 512
|
|
|
|
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
|
2013-11-05 15:37:41 +01:00
|
|
|
|
|
|
|
BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
|
2014-08-01 19:14:15 +02:00
|
|
|
|