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. 22 TARGET_NO_BOOTLOADER := true 23 TARGET_NO_KERNEL := true 24 25 TARGET_ARCH := mips64 26 ifeq (,$(TARGET_ARCH_VARIANT)) 27 TARGET_ARCH_VARIANT := mips64r6 28 endif 29 TARGET_CPU_ABI := mips64 30 31 TARGET_2ND_ARCH := mips 32 ifeq (,$(TARGET_2ND_ARCH_VARIANT)) 33 ifeq ($(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: 37 TARGET_2ND_ARCH_VARIANT := mips32r2-fp 38 else 39 TARGET_2ND_ARCH_VARIANT := mips32r2-fp 40 endif 41 endif 42 TARGET_2ND_CPU_ABI := mips 43 44 # Make TARGET_XXX_CPU_VARIANT the same as TARGET_XXX_ARCH_VARIANT 45 TARGET_CPU_VARIANT := $(TARGET_ARCH_VARIANT) 46 TARGET_2ND_CPU_VARIANT := $(TARGET_2ND_ARCH_VARIANT) 47 48 # The emulator (qemu) uses the Goldfish devices 49 HAVE_HTC_AUDIO_DRIVER := true 50 BOARD_USES_GENERIC_AUDIO := true 51 52 # no hardware camera 53 USE_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 57 ifeq ($(HOST_OS),linux) 58 ifeq ($(WITH_DEXPREOPT),) 59 WITH_DEXPREOPT := true 60 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false 61 endif 62 endif 63 64 TARGET_USES_HWC2 := true 65 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 66 67 # Build OpenGLES emulation guest and host libraries 68 BUILD_EMULATOR_OPENGL := true 69 BUILD_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. 73 USE_OPENGL_RENDERER := true 74 75 TARGET_USERIMAGES_USE_EXT4 := true 76 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1879048192 # 1.75 GB 77 BOARD_USERDATAIMAGE_PARTITION_SIZE := 1610612736 # 1.5 GB, lots of space for running tests 78 TARGET_COPY_OUT_VENDOR := vendor 79 # ~100 MB vendor image. Please adjust system image / vendor image sizes 80 # when finalizing them. 81 BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000 82 BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 83 BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 84 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 85 BOARD_FLASH_BLOCK_SIZE := 512 86 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 87 DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml 88 89 BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy 90 91 DEX_PREOPT_DEFAULT := nostripping 92