forked from luckasfb/device_wiko_s8073-1
/
BoardConfig.mk
149 lines (115 loc) · 4.24 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
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
148
# Copyright (C) 2011 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 variable is set first, so it can be overridden
# by BoardConfigVendor.mk
USE_CAMERA_STUB := true
# inherit from the proprietary version
-include vendor/wiko/s8073/BoardConfigVendor.mk
-include device/wiko/common/BoardCommonConfig.mk
LOCAL_FOLDER := device/wiko/s8073
COMMON_FOLDER := device/wiko/common
PREBUILT_FOLDER := $(LOCAL_FOLDER)/prebuilt
#Some issues with prebuilt, and modules will not be create
#TARGET_PREBUILT_KERNEL := $(PREBUILT_FOLDER)/zImage
#We should use the current kernel until we can provide some more information when build
TARGET_PREBUILT_KERNEL := $(PREBUILT_FOLDER)/kernel
TARGET_KERNEL_SOURCE := kernel/wiko/s8073/kernel
TARGET_KERNEL_CONFIG := mediatek-configs
TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-linux-androideabi-4.4.x
TARGET_KERNEL_CUSTOM_TOOLCHAIN_BIN := arm-linux-androideabi-
TARGET_KERNEL_PROVIDES_BUILD_COMMANDS := kernel/wiko/s8073/s8073.mk
TARGET_KERNEL_MTK_HEADER := $(LOCAL_FOLDER)/emmctools/header
NEEDS_KERNEL_COPY := true
KERNEL_MAKE_PARAMETERS := TARGET_PRODUCT=s8073 MTK_ROOT_CUSTOM=$(TARGET_KERNEL_SOURCE)/mediatek/custom
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_FOLDER)/include
TARGET_BOARD_PLATFORM := mt6577
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
ARCH_ARM_HAVE_NEON := true
#STUFF I KNOW
#We need to use mediatek RIL libs
#We will have to provide a wrapper around the default mtril
BOARD_PROVIDES_LIBRIL := true
BOARD_PROVIDES_RILD := true
BOARD_NO_REFERENCE_RIL := true
BOARD_NO_MOCK_RIL := true
#STUFF NOT SURE AT ALL
ARCH_ARM_HAVE_VFP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
BOARD_USES_GENERIC_AUDIO := false
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM_GPU := POWERVR_SGX531
TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
BOARD_CONFIG_DIR := $(LOCAL_FOLDER)/config
#Graphics
BOARD_EGL_CFG := $(BOARD_CONFIG_DIR)/egl.cfg
USE_OPENGL_RENDERER := true
# TARGET_BOARD_PLATFORM := unknown
TARGET_BOOTLOADER_BOARD_NAME := s8073
BOARD_DISABLE_FMRADIO_TRANSMITTER_TEST := true
### TODO AND TO CHECK
BOARD_KERNEL_CMDLINE :=
BOARD_KERNEL_PAGESIZE := 2048
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_FLASH_BLOCK_SIZE := 2048
#This is provided by the wiko sources (partition_define.h). Some info are not used in CM9 real definitions
#define KB(1024)
#6144*KB
BOARD_BOOTIMAGE_PARTITION_SIZE := 6291456
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 6291456
BOARD_SECROIMAGE_PARTITION_SIZE:=6291456
#525312*KB
BOARD_SYSTEMIMAGE_PARTITION_SIZE:=537919488
BOARD_CACHEIMAGE_PARTITION_SIZE:=537919488
#1573888*KB
BOARD_USERDATAIMAGE_PARTITION_SIZE:=1611661312
BOARD_FATIMAGE_PARTITION_SIZE:=0
BOARD_CUSTOM_BOOTIMG_MK := $(COMMON_FOLDER)/custom_bootimg.mk
#TODO CHECK
TARGET_USE_SCORPION_BIONIC_OPTIMIZATION := true
ARCH_ARM_HAVE_ARMV7A_BUG := true
#WIFI STUFF
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
#define board stuff
#BOARD_NAND_PAGE_SIZE := 4096 -s 128
BOARD_NAND_PAGE_SIZE := 4096 -s 128+64
#SOME OTHER STUFF TO ADD
# Sensors
#SOMC_CFG_DASH_INCLUDED := yes
SENSORS_COMPASS_AK8973 := true
SENSORS_ACCEL_BMA150_INPUT := true
SENSORS_ACCEL_BMA250_INPUT := false
SENSORS_PROXIMITY_APDS9120 := true
SENSORS_PRESSURE_BMP180 := false
#Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_CUSTOM_HCIATTACH := true
#Legacy stuff
BOARD_USES_LEGACY_OVERLAY := true
BOARD_USES_LEGACY_RIL := true
BORAD_USES_LEGACY_CAMERA := true
#Webkit
ENABLE_WEBGL := true
TARGET_FORCE_CPU_UPLOAD := true