BoardConfig.mk 6.25 KB
Newer Older
陈辉's avatar
陈辉 committed
1
#
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# Copyright 2014 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Use the non-open-source parts, if they're present
18
-include vendor/rockchip/common/BoardConfigVendor.mk
cw's avatar
cw committed
19

20
TARGET_NO_KERNEL ?= false
mmk's avatar
mmk committed
21
TARGET_PREBUILT_KERNEL ?= kernel/arch/arm/boot/zImage
22 23 24
ifneq ($(TARGET_PRODUCT),rk3188)
 TARGET_PREBUILT_RESOURCE ?= kernel/resource.img
endif
25

26
TARGET_BOARD_PLATFORM ?= rk3288
27
TARGET_BOARD_HARDWARE ?= rk30board
28 29

# CPU feature configration
30
ifeq ($(strip $(TARGET_BOARD_HARDWARE)), rk30board)
31 32 33 34 35 36
TARGET_ARCH ?= arm
TARGET_ARCH_VARIANT ?= armv7-a-neon
ARCH_ARM_HAVE_TLS_REGISTER ?= true
TARGET_CPU_ABI ?= armeabi-v7a
TARGET_CPU_ABI2 ?= armeabi
TARGET_CPU_VARIANT ?= cortex-a9
37
TARGET_CPU_SMP ?= true
38 39 40 41
else
TARGET_ARCH ?= x86
TARGET_ARCH_VARIANT ?= silvermont
TARGET_CPU_ABI ?= x86
42
TARGET_CPU_ABI2 ?= 
43 44
TARGET_CPU_SMP ?= true
endif
45

46

47
# GPU configration
48
TARGET_BOARD_PLATFORM_GPU ?= mali-t760
49
BOARD_USE_LCDC_COMPOSER ?= false
50
GRAPHIC_MEMORY_PROVIDER ?= ump
51
USE_OPENGL_RENDERER ?= true
52 53
TARGET_DISABLE_TRIPLE_BUFFERING ?= false
TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK ?= false
陈辉's avatar
陈辉 committed
54

55 56
DEVICE_HAVE_LIBRKVPU ?= true

57
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), mali400)
58
BOARD_EGL_CFG := vendor/rockchip/common/gpu/Mali400/lib/arm/egl.cfg
59 60
endif

61 62 63 64
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), mali450)
BOARD_EGL_CFG := vendor/rockchip/common/gpu/Mali450/lib/x86/egl.cfg
endif

65
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), mali-t760)
66
BOARD_EGL_CFG := vendor/rockchip/common/gpu/MaliT760/etc/egl.cfg
Cody Xie's avatar
Cody Xie committed
67 68
endif

69
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), PVR540)
70
BOARD_EGL_CFG ?= vendor/rockchip/common/gpu/PVR540/egl.cfg
黄涛's avatar
黄涛 committed
71
endif
陈辉's avatar
陈辉 committed
72

73 74 75
TARGET_BOOTLOADER_BOARD_NAME ?= rk30sdk
TARGET_NO_BOOTLOADER ?= true
BOARD_USE_LOW_MEM ?= false
76 77
DEVICE_PACKAGE_OVERLAYS += device/rockchip/common/overlay
TARGET_RELEASETOOLS_EXTENSIONS := device/rockchip/common
78
TARGET_PROVIDES_INIT_RC ?= false
79
BOARD_HAL_STATIC_LIBRARIES ?= libdumpstate.$(TARGET_PRODUCT) libhealthd.$(TARGET_PRODUCT)
80

81 82 83 84
//MAX-SIZE=512M, for generate out/.../system.img
BOARD_SYSTEMIMAGE_PARTITION_SIZE ?= 1073741824
BOARD_FLASH_BLOCK_SIZE ?= 131072

85 86
# Enable dex-preoptimization to speed up first boot sequence
ifeq ($(HOST_OS),linux)
cw's avatar
cw committed
87
  ifeq ($(TARGET_BUILD_VARIANT), user)
88
    ifeq ($(WITH_DEXPREOPT),)
89
      WITH_DEXPREOPT ?= true
cw's avatar
cw committed
90
      WITH_DEXPREOPT_PIC := true
91 92 93 94
    endif
  endif
endif

95
ART_USE_HSPACE_COMPACT ?= true
96

97 98
TARGET_USES_LOGD ?= true

99
# Sepolicy
100
BOARD_SEPOLICY_DIRS ?= device/rockchip/common/sepolicy
101 102

# Recovery
103 104
TARGET_NO_RECOVERY ?= false
TARGET_ROCHCHIP_RECOVERY ?= true
yxj's avatar
yxj committed
105

cw's avatar
cw committed
106 107 108
#for boot and shutdown animation ringing
BOOT_SHUTDOWN_ANIMATION_RINGING := false

yxj's avatar
yxj committed
109
# to flip screen in recovery 
110
BOARD_HAS_FLIPPED_SCREEN ?= false
111

Hans Yang's avatar
Hans Yang committed
112 113 114 115 116 117 118 119 120 121 122 123
#rotate screen to 0, 90, 180, 270
#0:   rotate_0
#90:  rotate_90
#180: rotate_180
#270: rotate_270
ROTATE_SCREEN := rotate_0

#Screen to Double, Single
#YES: Screen to Double
#NO: Screen to single
DOUBLE_SCREEN := NO

124 125 126
# Auto update package from USB
RECOVERY_AUTO_USB_UPDATE ?= false

Cody Xie's avatar
Cody Xie committed
127
# To use bmp as kernel logo, uncomment the line below to use bgra 8888 in recovery
mao.mingkang's avatar
mao.mingkang committed
128
#TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
Mark Stevens's avatar
Mark Stevens committed
129
#TARGET_ROCKCHIP_PCBATEST ?= false
cw's avatar
cw committed
130
#TARGET_RECOVERY_UI_LIB ?= librecovery_ui_$(TARGET_PRODUCT)
131
TARGET_USERIMAGES_USE_EXT4 ?= true
132 133
TARGET_USERIMAGES_USE_F2FS ?= false
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE ?= ext4
cw's avatar
cw committed
134
#RECOVERY_UPDATEIMG_RSA_CHECK ?= false
135

136
RECOVERY_BOARD_ID ?= false
137 138
# RECOVERY_BOARD_ID ?= true

139 140
# for widevine drm
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
141

142 143
# for drmservice
BUILD_WITH_DRMSERVICE :=true
hwg's avatar
hwg committed
144

145 146
# for tablet encryption
BUILD_WITH_CRYPTO := false
陈辉's avatar
陈辉 committed
147

148 149 150 151
# Audio
BOARD_USES_GENERIC_AUDIO ?= true

# Wifi&Bluetooth
152 153
BOARD_HAVE_BLUETOOTH ?= true
BLUETOOTH_USE_BPLUS ?= false
154
BOARD_HAVE_BLUETOOTH_BCM ?= false
155
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR ?= device/rockchip/$(TARGET_PRODUCT)/bluetooth
huweiguo's avatar
huweiguo committed
156
#-include device/rockchip/$(TARGET_PRODUCT)/wifi_bt.mk
157
include device/rockchip/common/wifi_bt_common.mk
陈辉's avatar
陈辉 committed
158

陈辉's avatar
陈辉 committed
159
# google apps
160
BUILD_WITH_GOOGLE_MARKET ?= false
161
BUILD_WITH_GOOGLE_MARKET_ALL ?= false
陈辉's avatar
陈辉 committed
162 163

# face lock
heyun's avatar
heyun committed
164
BUILD_WITH_FACELOCK ?= false
陈辉's avatar
陈辉 committed
165 166

# ebook
167
BUILD_WITH_RK_EBOOK ?= false
陈辉's avatar
陈辉 committed
168

169
# Sensors
170
BOARD_SENSOR_ST ?= true
171
# if use akm8963
172
#BOARD_SENSOR_COMPASS_AK8963 ?= true
173
# if need calculation angle between two gsensors
174
#BOARD_SENSOR_ANGLE ?= true
175
# if need calibration
176
#BOARD_SENSOR_CALIBRATION ?= true
177
# if use mpu
178 179
#BOARD_SENSOR_MPU ?= true
#BOARD_USES_GENERIC_INVENSENSE ?= false
180 181

# readahead files to improve boot time
182
# BOARD_BOOT_READAHEAD ?= true
183

184
BOARD_BP_AUTO ?= true
zwp's avatar
zwp committed
185

186
# phone pad codec list
187 188 189 190 191 192 193
BOARD_CODEC_WM8994 ?= false
BOARD_CODEC_RT5625_SPK_FROM_SPKOUT ?= false
BOARD_CODEC_RT5625_SPK_FROM_HPOUT ?= false
BOARD_CODEC_RT3261 ?= false
BOARD_CODEC_RT3224 ?= true
BOARD_CODEC_RT5631 ?= false
BOARD_CODEC_RK616 ?= false
194

195 196
# Vold configrations
# if set to true m-user would be disabled and UMS enabled, if set to disable UMS would be disabled and m-user enabled
197
BUILD_WITH_UMS ?= false
198
# if set to true BUILD_WITH_UMS must be false.
199
BUILD_WITH_CDROM ?= false
200
BUILD_WITH_CDROM_PATH ?= /system/etc/cd.iso
201
# multi usb partitions
202
BUILD_WITH_MULTI_USB_PARTITIONS ?= false
203
# define tablet support NTFS
204
BOARD_IS_SUPPORT_NTFS ?= true
lly's avatar
lly committed
205

206
# product has GPS or not
207
BOARD_HAS_GPS ?= false
208 209

# ethernet
210
BOARD_HS_ETHERNET ?= true
211

212
# manifest
yhx's avatar
yhx committed
213
SYSTEM_WITH_MANIFEST ?= true 
zhanghao's avatar
zhanghao committed
214

215
# no battery
216
BUILD_WITHOUT_BATTERY ?= false
heyun's avatar
heyun committed
217 218 219 220 221

BOARD_CHARGER_ENABLE_SUSPEND ?= true
CHARGER_ENABLE_SUSPEND ?= true
CHARGER_DISABLE_INIT_BLANK ?= true
BOARD_CHARGER_DISABLE_INIT_BLANK ?= true
dzy's avatar
dzy committed
222 223 224

#stress test
BOARD_HAS_STRESSTEST_APP ?= true
225 226 227

#remotecontrol by phone apk
BOARD_HAS_REMOTECONTROL ?= false
shen zhi cheng's avatar
shen zhi cheng committed
228 229 230

#Board use IOMMU
BOARD_WITH_IOMMU ?= true
cw's avatar
cw committed
231 232 233

#boot optimization
BOARD_WITH_BOOT_BOOST ?= false
234 235 236

#optimise mem
BOARD_WITH_MEM_OPTIMISE ?= false
237 238

#force app can see udisk
239
BOARD_FORCE_UDISK_VISIBLE ?= true
240

241 242
# disable safe mode to speed up boot time
BOARD_DISABLE_SAFE_MODE ?= true
cw's avatar
cw committed
243 244 245

#for boot and shutdown animation ringing
BOOT_SHUTDOWN_ANIMATION_RINGING ?= false