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 TARGET_2ND_ARCH_VARIANT := mips32r6 35 else 36 TARGET_2ND_ARCH_VARIANT := mips32r2-fp 37 endif 38 endif 39 TARGET_2ND_CPU_ABI := mips 40 41 # Make TARGET_XXX_CPU_VARIANT the same as TARGET_XXX_ARCH_VARIANT 42 TARGET_CPU_VARIANT := $(TARGET_ARCH_VARIANT) 43 TARGET_2ND_CPU_VARIANT := $(TARGET_2ND_ARCH_VARIANT) 44 45 # The emulator (qemu) uses the Goldfish devices 46 HAVE_HTC_AUDIO_DRIVER := true 47 BOARD_USES_GENERIC_AUDIO := true 48 49 # no hardware camera 50 USE_CAMERA_STUB := true 51 52 # Enable dex-preoptimization to speed up the first boot sequence 53 # of an SDK AVD. Note that this operation only works on Linux for now 54 ifeq ($(HOST_OS),linux) 55 ifeq ($(WITH_DEXPREOPT),) 56 WITH_DEXPREOPT := true 57 endif 58 endif 59 60 # Build OpenGLES emulation guest and host libraries 61 BUILD_EMULATOR_OPENGL := true 62 63 # Build and enable the OpenGL ES View renderer. When running on the emulator, 64 # the GLES renderer disables itself if host GL acceleration isn't available. 65 USE_OPENGL_RENDERER := true 66 67 TARGET_USERIMAGES_USE_EXT4 := true 68 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1342177280 # 1.25 GB swag, 20% more than before 69 BOARD_USERDATAIMAGE_PARTITION_SIZE := 734003200 70 BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 71 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 72 BOARD_FLASH_BLOCK_SIZE := 512 73 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 74 75 BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy 76