• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2013 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# BoardConfig.mk
17#
18# Product-specific compile-time definitions.
19#
20
21# The generic product target doesn't have any hardware-specific pieces.
22TARGET_NO_BOOTLOADER := true
23TARGET_NO_KERNEL := true
24
25TARGET_ARCH := mips64
26ifeq (,$(TARGET_ARCH_VARIANT))
27TARGET_ARCH_VARIANT := mips64r6
28endif
29TARGET_CPU_ABI  := mips64
30
31TARGET_2ND_ARCH := mips
32ifeq (,$(TARGET_2ND_ARCH_VARIANT))
33ifeq ($(TARGET_ARCH_VARIANT),mips64r6)
34# Imgtec builds use 32r6 arch variant with Imgtec-maintained prebuilts/ndk library:
35# TARGET_2ND_ARCH_VARIANT := mips32r6
36# Aosp builds lack full set of mips32r6 NDK prebuilts, so use 32r2 abi:
37TARGET_2ND_ARCH_VARIANT :=  mips32r2-fp
38else
39TARGET_2ND_ARCH_VARIANT :=  mips32r2-fp
40endif
41endif
42TARGET_2ND_CPU_ABI  := mips
43
44# Make TARGET_XXX_CPU_VARIANT the same as TARGET_XXX_ARCH_VARIANT
45TARGET_CPU_VARIANT := $(TARGET_ARCH_VARIANT)
46TARGET_2ND_CPU_VARIANT := $(TARGET_2ND_ARCH_VARIANT)
47
48# The emulator (qemu) uses the Goldfish devices
49HAVE_HTC_AUDIO_DRIVER := true
50BOARD_USES_GENERIC_AUDIO := true
51
52# no hardware camera
53USE_CAMERA_STUB := true
54
55# Enable dex-preoptimization to speed up the first boot sequence
56# of an SDK AVD. Note that this operation only works on Linux for now
57ifeq ($(HOST_OS),linux)
58  ifeq ($(WITH_DEXPREOPT),)
59    WITH_DEXPREOPT := true
60    WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false
61  endif
62endif
63
64TARGET_USES_HWC2 := true
65NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
66
67# Build OpenGLES emulation guest and host libraries
68BUILD_EMULATOR_OPENGL := true
69BUILD_QEMU_IMAGES := true
70
71# Build and enable the OpenGL ES View renderer. When running on the emulator,
72# the GLES renderer disables itself if host GL acceleration isn't available.
73USE_OPENGL_RENDERER := true
74
75TARGET_USERIMAGES_USE_EXT4 := true
76BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1879048192  # 1.75 GB
77BOARD_USERDATAIMAGE_PARTITION_SIZE := 1610612736  # 1.5 GB, lots of space for running tests
78TARGET_COPY_OUT_VENDOR := vendor
79# ~100 MB vendor image. Please adjust system image / vendor image sizes
80# when finalizing them.
81BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000
82BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
83BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
84BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
85BOARD_FLASH_BLOCK_SIZE := 512
86TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
87DEVICE_MATRIX_FILE   := device/generic/goldfish/compatibility_matrix.xml
88
89BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy
90
91DEX_PREOPT_DEFAULT := nostripping
92