summaryrefslogtreecommitdiff
path: root/p212/BoardConfig.mk (plain)
blob: 668e7b30cace038a0b3f3f928d614656c4f8faf6
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#
16ifeq ($(ANDROID_BUILD_TYPE), 32)
17TARGET_CPU_ABI := armeabi-v7a
18TARGET_CPU_ABI2 := armeabi
19TARGET_CPU_SMP := true
20TARGET_ARCH := arm
21TARGET_ARCH_VARIANT := armv7-a-neon
22TARGET_CPU_VARIANT := cortex-a9
23else
24TARGET_ARCH := arm64
25TARGET_ARCH_VARIANT := armv8-a
26TARGET_CPU_VARIANT := generic
27TARGET_CPU_ABI := arm64-v8a
28TARGET_CPU_SMP := true
29
30TARGET_2ND_ARCH := arm
31TARGET_2ND_ARCH_VARIANT := armv7-a-neon
32TARGET_2ND_CPU_VARIANT := cortex-a9
33TARGET_2ND_CPU_ABI := armeabi-v7a
34TARGET_2ND_CPU_ABI2 := armeabi
35
36TARGET_SUPPORTS_32_BIT_APPS := true
37TARGET_SUPPORTS_64_BIT_APPS := true
38endif
39
40TARGET_USES_64_BIT_BINDER := true
41
42TARGET_NO_BOOTLOADER := false
43TARGET_NO_KERNEL := false
44TARGET_NO_RADIOIMAGE := true
45
46TARGET_BOARD_PLATFORM := gxl
47TARGET_BOOTLOADER_BOARD_NAME := p212
48
49# Graphics & Display
50USE_OPENGL_RENDERER := true
51NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
52MAX_VIRTUAL_DISPLAY_DIMENSION := 1920
53TARGET_APP_LAYER_USE_CONTINUOUS_BUFFER := false
54TARGET_SUPPORT_SECURE_LAYER := false
55
56# Camera
57USE_CAMERA_STUB := false
58BOARD_HAVE_FRONT_CAM := false
59BOARD_HAVE_BACK_CAM := false
60BOARD_USE_USB_CAMERA := true
61IS_CAM_NONBLOCK := true
62BOARD_HAVE_FLASHLIGHT := false
63BOARD_HAVE_HW_JPEGENC := true
64
65TARGET_USERIMAGES_USE_EXT4 := true
66BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1946157056
67BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
68BOARD_FLASH_BLOCK_SIZE := 4096
69
70ifneq ($(BOARD_OLD_PARTITION),true)
71BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
72BOARD_VENDORIMAGE_PARTITION_SIZE := 268435456
73BOARD_USES_VENDORIMAGE := true
74TARGET_COPY_OUT_VENDOR := vendor
75
76BOARD_ROOT_EXTRA_FOLDERS := odm
77BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
78BOARD_ODMIMAGE_PARTITION_SIZE := 268435456
79BOARD_USES_ODMIMAGE := true
80endif
81
82
83TARGET_SUPPORT_USB_BURNING_V2 := true
84TARGET_AMLOGIC_RES_PACKAGE := device/amlogic/p212/logo_img_files
85
86#BOARD_HAL_STATIC_LIBRARIES := libhealthd.mboxdefault
87
88USE_E2FSPROGS := true
89
90BOARD_KERNEL_BASE := 0x0
91BOARD_KERNEL_OFFSET := 0x1080000
92
93BOARD_USES_GENERIC_AUDIO := false
94BOARD_USES_ALSA_AUDIO := true
95
96TARGET_RELEASETOOLS_EXTENSIONS := device/amlogic/common
97TARGET_USE_BLOCK_BASE_UPGRADE := true
98TARGET_OTA_UPDATE_DTB := true
99#TARGET_RECOVERY_DISABLE_ADB_SIDELOAD := true
100#TARGET_OTA_PARTITION_CHANGE := true
101
102ifneq ($(AB_OTA_UPDATER),true)
103TARGET_RECOVERY_UPDATER_LIBS := libinstall_amlogic
104endif
105
106include device/amlogic/common/sepolicy.mk
107include device/amlogic/common/gpu/mali450-user-$(TARGET_ARCH).mk
108#MALLOC_IMPL := dlmalloc
109
110WITH_DEXPREOPT := true
111TARGET_USES_HWC2ON1ADAPTER := true
112