blob: ed259dbeed53511c4db746d60e9dee5a242ea2b8 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001# config.mk
Doug Zongkere01100c2009-06-19 17:12:18 -07002#
The Android Open Source Project88b60792009-03-03 19:28:42 -08003# 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
Raghu Gandham8da43102012-07-25 19:57:22 -07009TARGET_ARCH := arm
David 'Digit' Turner5f5056f2011-06-15 15:33:24 +020010
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#
22TARGET_ARCH_VARIANT := armv7-a
Christopher Ferris6103fd72013-02-22 17:24:25 -080023TARGET_CPU_VARIANT := generic
David 'Digit' Turner5f5056f2011-06-15 15:33:24 +020024TARGET_CPU_ABI := armeabi-v7a
25TARGET_CPU_ABI2 := armeabi
26
The Android Open Source Project88b60792009-03-03 19:28:42 -080027HAVE_HTC_AUDIO_DRIVER := true
28BOARD_USES_GENERIC_AUDIO := true
Chih-Chung Changb9e030e2010-05-10 14:59:49 +080029
30# no hardware camera
31USE_CAMERA_STUB := true
Jean-Baptiste Queruf7a6ead2010-08-25 10:01:35 -070032
David Turner94431142011-09-28 22:54:08 +020033# Enable dex-preoptimization to speed up the first boot sequence
34# of an SDK AVD. Note that this operation only works on Linux for now
35ifeq ($(HOST_OS),linux)
Raghu Gandhamb53cc7a2012-05-07 07:04:57 -070036 ifeq ($(WITH_DEXPREOPT),)
37 WITH_DEXPREOPT := true
Nikola Veljkovicdcef8d32016-08-31 15:48:18 +020038 WITH_DEXPREOPT_BOOT_IMG_ONLY := false
Raghu Gandhamb53cc7a2012-05-07 07:04:57 -070039 endif
David Turner94431142011-09-28 22:54:08 +020040endif
41
David 'Digit' Turner43dd89d2011-08-23 22:25:13 +020042# Build OpenGLES emulation guest and host libraries
43BUILD_EMULATOR_OPENGL := true
Jesse Hall615d2ff2011-12-01 11:45:49 -080044
45# Build and enable the OpenGL ES View renderer. When running on the emulator,
46# the GLES renderer disables itself if host GL acceleration isn't available.
47USE_OPENGL_RENDERER := true
Nick Kralevich3c9fae22013-07-09 18:04:51 -070048
49TARGET_USERIMAGES_USE_EXT4 := true
Prathmesh Prabhu316654f2016-03-14 11:05:47 -070050BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1879048192 # 1.75 GB
Tsu Chiang Chuang27a026c2014-05-06 17:27:20 -070051BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
Nick Kralevich3c9fae22013-07-09 18:04:51 -070052BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
53BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
54BOARD_FLASH_BLOCK_SIZE := 512
55TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
Stephen Smalley1d5352e2013-11-05 09:37:41 -050056
57BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
Deepanshu Gupta4e5e5822014-08-01 10:14:15 -070058
59ifeq ($(TARGET_PRODUCT),sdk)
60 # include an expanded selection of fonts for the SDK.
61 EXTENDED_FONT_FOOTPRINT := true
62endif