blob: 5917425d89918e2bf9c0d4b7af75442555b5ecb5 [file] [log] [blame]
Ben Chengdb4fc202013-10-04 16:02:59 -07001# 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
Colin Cross4f0eb7d2014-01-21 19:35:38 -080019TARGET_ARCH := arm64
Ben Chengdb4fc202013-10-04 16:02:59 -070020TARGET_ARCH_VARIANT := armv8-a
21TARGET_CPU_VARIANT := generic
Colin Cross4f0eb7d2014-01-21 19:35:38 -080022TARGET_CPU_ABI := arm64-v8a
Ben Chengdb4fc202013-10-04 16:02:59 -070023
Colin Cross930b5fb2014-01-28 14:35:16 -080024TARGET_2ND_ARCH := arm
Narayan Kamath24b78402014-08-19 13:03:01 +010025TARGET_2ND_CPU_ABI := armeabi-v7a
26TARGET_2ND_CPU_ABI2 := armeabi
Narayan Kamath8dc227f2014-08-18 19:20:07 +010027
Ying Wangb6f60d52014-10-21 21:20:41 -070028ifneq ($(TARGET_BUILD_APPS)$(filter cts,$(MAKECMDGOALS)),)
Narayan Kamath8dc227f2014-08-18 19:20:07 +010029# 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 Wangb6f60d52014-10-21 21:20:41 -070034# to build an unbundled application or cts for all supported 32 and 64 bit
Narayan Kamath8dc227f2014-08-18 19:20:07 +010035# 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 Kamath3930fbd2014-08-08 18:26:44 +010046TARGET_2ND_ARCH_VARIANT := armv7-a
Narayan Kamath8dc227f2014-08-18 19:20:07 +010047# DO NOT USE
48# DO NOT USE
Narayan Kamath3930fbd2014-08-08 18:26:44 +010049TARGET_2ND_CPU_VARIANT := generic
Narayan Kamath8dc227f2014-08-18 19:20:07 +010050# DO NOT USE
51# DO NOT USE
52else
53TARGET_2ND_ARCH_VARIANT := armv7-a-neon
54TARGET_2ND_CPU_VARIANT := cortex-a15
55endif
Colin Cross930b5fb2014-01-28 14:35:16 -080056
Narayan Kamath24b78402014-08-19 13:03:01 +010057
Colin Cross930b5fb2014-01-28 14:35:16 -080058TARGET_USES_64_BIT_BINDER := true
59
Ben Chengdb4fc202013-10-04 16:02:59 -070060# no hardware camera
61USE_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
65ifeq ($(HOST_OS),linux)
66 ifeq ($(WITH_DEXPREOPT),)
67 WITH_DEXPREOPT := true
Nikola Veljkovicdcef8d32016-08-31 15:48:18 +020068 WITH_DEXPREOPT_BOOT_IMG_ONLY := false
Ben Chengdb4fc202013-10-04 16:02:59 -070069 endif
70endif
71
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070072TARGET_USES_HWC2 := true
Lingfeng Yanga70b40f2017-05-09 15:33:26 -070073NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
Lingfeng Yang450cd0b2017-03-17 10:47:19 -070074
Ben Chengdb4fc202013-10-04 16:02:59 -070075# Build OpenGLES emulation host and guest libraries
76BUILD_EMULATOR_OPENGL := true
77
Ben Chengdb4fc202013-10-04 16:02:59 -070078# Build and enable the OpenGL ES View renderer. When running on the emulator,
79# the GLES renderer disables itself if host GL acceleration isn't available.
80USE_OPENGL_RENDERER := true
81
82TARGET_USERIMAGES_USE_EXT4 := true
Yahan Zhouad9bf7b2016-11-04 09:40:34 -070083BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 # 2.5 GB
Colin Crossd46c7382014-04-02 09:16:37 -070084BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
Ben Chengdb4fc202013-10-04 16:02:59 -070085BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
86BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
87BOARD_FLASH_BLOCK_SIZE := 512
88TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
Stephen Smalley901d7922015-04-29 09:55:08 -040089
90BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy