-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBoardConfig.mk
99 lines (86 loc) · 2.88 KB
/
BoardConfig.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
# Copyright (C) 2012 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.
#
# This file sets variables that control the way modules are built
# throughout the system. It should not be used to conditionally
# disable makefiles (the proper mechanism to control what gets
# included in a build is to use PRODUCT_PACKAGES in a product
# definition file).
#
# WARNING: This line must come *before* including the proprietary
# variant, so that it gets overwritten by the parent (which goes
# against the traditional rules of inheritance).
# Info
TARGET_BOOTLOADER_BOARD_NAME := G800
TARGET_OTA_ASSERT_DEVICE := CUBOT ONE,G800
PRODUCT_BUILD_PROP_OVERRIDES += TARGET_BOOTLOADER_BOARD_NAME= CUBOT ONE
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a7
TARGET_BOARD_PLATFORM := MT6589
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_CPU_SMP := true
TARGET_NO_FACTORYIMAGE := true
TARGET_KMODULES := true
USE_CAMERA_STUB := true
WITH_DEXPREOPT := false
# eMMC support
ifeq ($(MTK_EMMC_SUPPORT),yes)
TARGET_USERIMAGES_USE_EXT4:=true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
endif
# for migrate build system
# temporarily open this two options
#HAVE_HTC_AUDIO_DRIVER := true
BOARD_USES_GENERIC_AUDIO := true
BOARD_USES_MTK_AUDIO := true
BOARD_EGL_CFG := $(BOARD_CONFIG_DIR)/egl.cfg
BOARD_MTK_LIBSENSORS_NAME :=
BOARD_MTK_LIB_SENSOR :=
USE_OPENGL_RENDERER := true
TARGET_PROVIDES_LIBAUDIO := true
TARGET_PROVIDES_LIBLIGHT := true
BOARD_PROVIDES_LIBRIL := true
#BOARD_HAVE_BLUETOOTH := true
#BOARD_HAVE_BLUETOOTH_BCM := false
# GPS
ifeq ($(MTK_AGPS_APP), yes)
BOARD_AGPS_SUPL_LIBRARIES := true
else
BOARD_AGPS_SUPL_LIBRARIES := false
endif
ifeq ($(MTK_GPS_SUPPORT), yes)
BOARD_GPS_LIBRARIES := true
else
BOARD_GPS_LIBRARIES := false
endif
# Wifi
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
BOARD_P2P_SUPPLICANT_DRIVER := NL80211
HAVE_CUSTOM_WIFI_DRIVER_2 := true
HAVE_INTERNAL_WPA_SUPPLICANT_CONF := true
HAVE_CUSTOM_WIFI_HAL := mediatek
WPA_SUPPLICANT_VERSION := VER_0_6_X
P2P_SUPPLICANT_VERSION := VER_0_8_X
endif
# Kernel
BOARD_CUSTOM_BOOTIMG_MK := device/cubot/one/boot.mk
TARGET_PREBUILT_KERNEL := device/cubot/one/kernel
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/gadget/lun%d/file
ifeq ($(strip $(MTK_NAND_PAGE_SIZE)), 4K)
BOARD_NAND_PAGE_SIZE := 4096 -s 128
else
BOARD_NAND_PAGE_SIZE := 2048 -s 64 # default 2K
endif