-
Notifications
You must be signed in to change notification settings - Fork 2
/
BoardConfigCommon.mk
147 lines (121 loc) · 4.36 KB
/
BoardConfigCommon.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#
# Copyright (C) 2009 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.
# BoardConfig.mk
#
# Product-specific compile-time definitions.
#
LOCAL_PATH := $(call my-dir)
# Camera
USE_CAMERA_STUB := true
BOARD_CAMERA_NO_UNWANTED_MSG := true
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT
# Target Chipset/Platform
TARGET_BOARD_PLATFORM := msm7k
TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v6j
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := arm11
TARGET_ARCH_VARIANT := armv6j
TARGET_ARCH_VARIANT_CPU := arm1136j-s
TARGET_SPECIFIC_HEADER_PATH := device/huawei/msm7x25-common/include
# Target Information
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := false
TARGET_NO_RADIOIMAGE := true
TARGET_NO_RECOVERY := false
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
# GPS
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 1240
# Browser
JS_ENGINE := v8
HTTP := chrome
WITH_JIT := true
ENABLE_JSC_JIT := true
TARGET_WEBKIT_USE_MORE_MEMORY := true
TARGET_FORCE_CPU_UPLOAD := true
# USB Mass Storage
BOARD_UMS_LUNFILE := /sys/devices/platform/msm_hsusb/gadget/lun0/file
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/msm_hsusb/gadget/lun0/file"
# Sensors
TARGET_USES_OLD_LIBSENSORS_HAL := true
# Boot Animation
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
#TARGET_BOOTANIMATION_USE_RGB565 := true ## Inexistent on ICS
# Input
BOARD_USE_LEGACY_TOUCHSCREEN := true
BOARD_USE_LEGACY_TRACKPAD := true
# Audio
BOARD_PROVIDES_LIBAUDIO := true
# RIL
BOARD_PROVIDES_LIBRIL := true
# Graphics
USE_OPENGL_RENDERER := false
BOARD_EGL_CFG := device/huawei/msm7x25-common/prebuilt/lib/egl/egl.cfg
BOARD_NO_RGBX_8888 := true
COMMON_GLOBAL_CFLAGS += -DNO_RGBX_8888
COMMON_GLOBAL_CFLAGS += -DMISSING_EGL_EXTERNAL_IMAGE
COMMON_GLOBAL_CFLAGS += -DMISSING_EGL_PIXEL_FORMAT_YV12
COMMON_GLOBAL_CFLAGS += -DMISSING_GRALLOC_BUFFERS
COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60
COMMON_GLOBAL_CFLAGS += -DFORCE_EGL_CONFIG=0x0
#COMMON_GLOBAL_CFLAGS += -DTARGET_MSM7x27 ## Useless, maybe GB Related
TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true ## Needed for pseudo hw-accel
BOARD_USE_NASTY_PTHREAD_CREATE_HACK := true ## Needs a patch on ICS
BOARD_USE_SKIA_LCDTEXT := true # testing
#COMMON_GLOBAL_CFLAGS += -DQCOM_ICS_COMPAT ## GB Related, Inexistent on ICS
#COMMON_GLOBAL_CFLAGS += -DUNABLE_TO_DEQUEUE ## GB Related, Inexistent on ICS
# SQLite Hack
COMMON_GLOBAL_CFLAGS += -DSQLITE_NO_SYNC ## Performance Test
# Media
#BOARD_USES_QCOM_OMXCORE := true ## Test on MSM7x25
#BOARD_USES_QCOM7x25_HARDWARE := true ## Test on MSM7x25
#COMMON_GLOBAL_CFLAGS += -DUSES_QCOM7x25_HARDWARE ## Test on MSM7x25
#COMMON_GLOBAL_CFLAGS += -DQCOM_LEGACY_OMX ## Test on MSM7x25
#COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK ## GB Related, Inexistent on ICS
# Minimal fonts
SMALLER_FONT_FOOTPRINT := true
#MINIMAL_FONT_FOOTPRINT := true ## Inexistent on ICS
# Recovery
TARGET_RECOVERY_FSTAB := device/huawei/msm7x25-common/recovery/recovery.fstab
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/huawei/msm7x25-common/recovery/recovery_keys.c
BOARD_USE_CUSTOM_RECOVERY_FONT := "<font_7x16.h>"
TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565"
BOARD_LDPI_RECOVERY := true
BOARD_HAS_NO_SELECT_BUTTON := true
# Kernel
BOARD_KERNEL_BASE := 0x00200000
BOARD_KERNEL_PAGESIZE := 4096
# (BOARD_KERNEL_PAGESIZE * 64)
BOARD_FLASH_BLOCK_SIZE := 262144
# Init
TARGET_NO_INITLOGO := true
# ~ # cat /proc/mtd
# dev: size erasesize name
# mtd0: 00500000 00020000 "boot"
# mtd1: 00500000 00020000 "recovery"
# mtd2: 00140000 00020000 "misc"
# mtd3: 00060000 00020000 "splash"
# mtd4: 0e600000 00020000 "system"
# mtd5: 01900000 00020000 "cache"
# mtd6: 0c2a0000 00020000 "userdata"
# Partitions Size
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00500000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00500000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x0e600000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0c2a0000