BoardConfig.mk revision 8dc227f48214dd9c38c828e0707bb64d8883a329
1# Copyright (C) 2013 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# The generic product target doesn't have any hardware-specific pieces. 17TARGET_NO_BOOTLOADER := true 18TARGET_NO_KERNEL := true 19TARGET_ARCH := arm64 20TARGET_ARCH_VARIANT := armv8-a 21TARGET_CPU_VARIANT := generic 22TARGET_CPU_ABI := arm64-v8a 23 24TARGET_2ND_ARCH := arm 25 26ifdef TARGET_BUILD_APPS 27# DO NOT USE 28# DO NOT USE 29# 30# This architecture / CPU variant must NOT be used for any 64 bit 31# platform builds. It is the lowest common denominator required 32# to build an unbundled application for all supported 32 and 64 bit 33# platforms. 34# 35# If you're building a 64 bit platform (and not an application) the 36# ARM-v8 specification allows you to assume NEON and all the features 37# available in a cortex-A15 CPU. You should be able to set : 38# 39# TARGET_2ND_ARCH_VARIANT := armv7-a-neon 40# TARGET_2ND_CPU_VARIANT := cortex-a15 41# 42# DO NOT USE 43# DO NOT USE 44TARGET_2ND_ARCH_VARIANT := armv7-a 45# DO NOT USE 46# DO NOT USE 47TARGET_2ND_CPU_VARIANT := generic 48# DO NOT USE 49# DO NOT USE 50else 51TARGET_2ND_ARCH_VARIANT := armv7-a-neon 52TARGET_2ND_CPU_VARIANT := cortex-a15 53endif 54 55TARGET_USES_64_BIT_BINDER := true 56 57# no hardware camera 58USE_CAMERA_STUB := true 59 60# Enable dex-preoptimization to speed up the first boot sequence 61# of an SDK AVD. Note that this operation only works on Linux for now 62ifeq ($(HOST_OS),linux) 63 ifeq ($(WITH_DEXPREOPT),) 64 WITH_DEXPREOPT := true 65 endif 66endif 67 68# Build OpenGLES emulation host and guest libraries 69BUILD_EMULATOR_OPENGL := 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 := 786432000 77BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 78BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 79BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 80BOARD_FLASH_BLOCK_SIZE := 512 81TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 82 83