• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2016 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16# Configuration for generic_x86 + arm libraries needed by binary translation.
17
18# The generic product target doesn't have any hardware-specific pieces.
19TARGET_NO_BOOTLOADER := true
20TARGET_NO_KERNEL := true
21TARGET_CPU_ABI := x86
22TARGET_ARCH := x86
23TARGET_ARCH_VARIANT := x86
24
25TARGET_2ND_ARCH := arm
26TARGET_2ND_CPU_ABI := armeabi-v7a
27TARGET_2ND_CPU_ABI2 := armeabi
28TARGET_2ND_ARCH_VARIANT := armv7-a
29TARGET_2ND_CPU_VARIANT := generic
30
31# Tell the build system this isn't a typical 64bit+32bit multilib configuration.
32TARGET_TRANSLATE_2ND_ARCH := true
33
34# no hardware camera
35USE_CAMERA_STUB := true
36
37# Enable dex-preoptimization to speed up the first boot sequence
38# of an SDK AVD. Note that this operation only works on Linux for now
39ifeq ($(HOST_OS),linux)
40  ifeq ($(WITH_DEXPREOPT),)
41    WITH_DEXPREOPT := true
42    WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
43  endif
44endif
45
46TARGET_USES_HWC2 := true
47NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
48
49# Build OpenGLES emulation host and guest libraries
50BUILD_EMULATOR_OPENGL := true
51
52# Build and enable the OpenGL ES View renderer. When running on the emulator,
53# the GLES renderer disables itself if host GL acceleration isn't available.
54USE_OPENGL_RENDERER := true
55
56TARGET_USERIMAGES_USE_EXT4 := true
57BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1879048192  # 1.75 GB
58BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
59BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
60BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
61BOARD_FLASH_BLOCK_SIZE := 512
62TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
63
64BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
65