1 # Copyright (C) 2016 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 # Configuration for generic_x86 + arm libraries needed by binary translation. 17 18 # The generic product target doesn't have any hardware-specific pieces. 19 TARGET_NO_BOOTLOADER := true 20 TARGET_NO_KERNEL := true 21 TARGET_CPU_ABI := x86 22 TARGET_ARCH := x86 23 TARGET_ARCH_VARIANT := x86 24 25 TARGET_2ND_ARCH := arm 26 TARGET_2ND_CPU_ABI := armeabi-v7a 27 TARGET_2ND_CPU_ABI2 := armeabi 28 TARGET_2ND_ARCH_VARIANT := armv7-a 29 TARGET_2ND_CPU_VARIANT := generic 30 31 # Tell the build system this isn't a typical 64bit+32bit multilib configuration. 32 TARGET_TRANSLATE_2ND_ARCH := true 33 34 # no hardware camera 35 USE_CAMERA_STUB := true 36 37 # Enable dex-preoptimization to speed up the first boot sequence 38 # of an SDK AVD. Note that this operation only works on Linux for now 39 ifeq ($(HOST_OS),linux) 40 ifeq ($(WITH_DEXPREOPT),) 41 WITH_DEXPREOPT := true 42 WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false 43 endif 44 endif 45 46 TARGET_USES_HWC2 := true 47 NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 48 49 # Build OpenGLES emulation host and guest libraries 50 BUILD_EMULATOR_OPENGL := true 51 52 # Build and enable the OpenGL ES View renderer. When running on the emulator, 53 # the GLES renderer disables itself if host GL acceleration isn't available. 54 USE_OPENGL_RENDERER := true 55 56 TARGET_USERIMAGES_USE_EXT4 := true 57 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1879048192 # 1.75 GB 58 BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 59 BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 60 BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 61 BOARD_FLASH_BLOCK_SIZE := 512 62 TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true 63 64 BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy 65