Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 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. |
| 17 | TARGET_NO_BOOTLOADER := true |
| 18 | TARGET_NO_KERNEL := true |
Colin Cross | 4f0eb7d | 2014-01-21 19:35:38 -0800 | [diff] [blame] | 19 | TARGET_ARCH := arm64 |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 20 | TARGET_ARCH_VARIANT := armv8-a |
| 21 | TARGET_CPU_VARIANT := generic |
Colin Cross | 4f0eb7d | 2014-01-21 19:35:38 -0800 | [diff] [blame] | 22 | TARGET_CPU_ABI := arm64-v8a |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 23 | |
Colin Cross | 930b5fb | 2014-01-28 14:35:16 -0800 | [diff] [blame] | 24 | TARGET_2ND_ARCH := arm |
Narayan Kamath | 24b7840 | 2014-08-19 13:03:01 +0100 | [diff] [blame] | 25 | TARGET_2ND_CPU_ABI := armeabi-v7a |
| 26 | TARGET_2ND_CPU_ABI2 := armeabi |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 27 | |
Ying Wang | b6f60d5 | 2014-10-21 21:20:41 -0700 | [diff] [blame] | 28 | ifneq ($(TARGET_BUILD_APPS)$(filter cts,$(MAKECMDGOALS)),) |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 29 | # DO NOT USE |
| 30 | # DO NOT USE |
| 31 | # |
| 32 | # This architecture / CPU variant must NOT be used for any 64 bit |
| 33 | # platform builds. It is the lowest common denominator required |
Ying Wang | b6f60d5 | 2014-10-21 21:20:41 -0700 | [diff] [blame] | 34 | # to build an unbundled application or cts for all supported 32 and 64 bit |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 35 | # platforms. |
| 36 | # |
| 37 | # If you're building a 64 bit platform (and not an application) the |
| 38 | # ARM-v8 specification allows you to assume NEON and all the features |
| 39 | # available in a cortex-A15 CPU. You should be able to set : |
| 40 | # |
| 41 | # TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
| 42 | # TARGET_2ND_CPU_VARIANT := cortex-a15 |
| 43 | # |
| 44 | # DO NOT USE |
| 45 | # DO NOT USE |
Narayan Kamath | 3930fbd | 2014-08-08 18:26:44 +0100 | [diff] [blame] | 46 | TARGET_2ND_ARCH_VARIANT := armv7-a |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 47 | # DO NOT USE |
| 48 | # DO NOT USE |
Narayan Kamath | 3930fbd | 2014-08-08 18:26:44 +0100 | [diff] [blame] | 49 | TARGET_2ND_CPU_VARIANT := generic |
Narayan Kamath | 8dc227f | 2014-08-18 19:20:07 +0100 | [diff] [blame] | 50 | # DO NOT USE |
| 51 | # DO NOT USE |
| 52 | else |
| 53 | TARGET_2ND_ARCH_VARIANT := armv7-a-neon |
| 54 | TARGET_2ND_CPU_VARIANT := cortex-a15 |
| 55 | endif |
Colin Cross | 930b5fb | 2014-01-28 14:35:16 -0800 | [diff] [blame] | 56 | |
Narayan Kamath | 24b7840 | 2014-08-19 13:03:01 +0100 | [diff] [blame] | 57 | |
Colin Cross | 930b5fb | 2014-01-28 14:35:16 -0800 | [diff] [blame] | 58 | TARGET_USES_64_BIT_BINDER := true |
| 59 | |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 60 | # no hardware camera |
| 61 | USE_CAMERA_STUB := true |
| 62 | |
| 63 | # Enable dex-preoptimization to speed up the first boot sequence |
| 64 | # of an SDK AVD. Note that this operation only works on Linux for now |
| 65 | ifeq ($(HOST_OS),linux) |
| 66 | ifeq ($(WITH_DEXPREOPT),) |
| 67 | WITH_DEXPREOPT := true |
| 68 | endif |
| 69 | endif |
| 70 | |
| 71 | # Build OpenGLES emulation host and guest libraries |
| 72 | BUILD_EMULATOR_OPENGL := true |
| 73 | |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 74 | # Build and enable the OpenGL ES View renderer. When running on the emulator, |
| 75 | # the GLES renderer disables itself if host GL acceleration isn't available. |
| 76 | USE_OPENGL_RENDERER := true |
| 77 | |
| 78 | TARGET_USERIMAGES_USE_EXT4 := true |
Ying Wang | 111ba92 | 2014-12-10 09:56:06 -0800 | [diff] [blame] | 79 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 943718400 |
Colin Cross | d46c738 | 2014-04-02 09:16:37 -0700 | [diff] [blame] | 80 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 |
Ben Cheng | db4fc20 | 2013-10-04 16:02:59 -0700 | [diff] [blame] | 81 | BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 |
| 82 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 83 | BOARD_FLASH_BLOCK_SIZE := 512 |
| 84 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true |