/
BoardConfig.mk
132 lines (111 loc) · 4.02 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
# Copyright (C) 2007 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.
# Call this directory in order to use files
LOCAL_PATH:= $(call my-dir)
#Some configs
USE_CAMERA_STUB:= true
COPYBIT_MSM7K := true
# Bootloader/Radio
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
#Test
TARGET_NO_INITLOGO := true
# CPU
TARGET_BOARD_PLATFORM := msm7k
TARGET_ARCH_VARIANT := armv6-vfp
TARGET_CPU_ABI := armeabi-v6l
TARGET_CPU_ABI2 := armeabi
# GPU
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
BOARD_AVOID_DRAW_TEXTURE_EXTENSION := true
BOARD_EGL_CFG := device/samsung/cooper/prebuilt/system/lib/egl/egl.cfg
TARGET_LIBAGL_USE_GRALLOC_COPYBITS := true
# OTA infos
TARGET_BOOTLOADER_BOARD_NAME := cooper
TARGET_OTA_ASSERT_DEVICE := cooper,GT-S5830
# Video/audio
TARGET_OVERLAY_ALWAYS_DETERMINES_FORMAT := true
TARGET_USE_SOFTWARE_AUDIO_AAC := true
TARGET_PROVIDES_LIBAUDIO := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_FORCE_STATIC_A2DP := true
HAS_BCM20780 := true
BOARD_GLOBAL_CFLAGS += -DHAS_BCM20780
# Wifi
BOARD_WPA_SUPPLICANT_DRIVER := AWEXT
BOARD_WLAN_DEVICE := ar6000
WIFI_DRIVER_MODULE_PATH := /system/wifi/ar6000.ko
WIFI_DRIVER_MODULE_ARG := ""
WIFI_DRIVER_MODULE_NAME := ar6000
# JIT/JS
WITH_JIT := true
ENABLE_JSC_JIT := true
JS_ENGINE := v8
BOARD_USE_SCREENCAP:= true
#Old string ->TARGET_KERNEL_SOURCE := kernel/samsung/msm7x27
#BOARD_MOBILEDATA_INTERFACE_NAME:= "pdp0"
BOARD_MOBILEDATA_INTERFACE_NAME = "pdp0"
# FM
BOARD_HAVE_FM_RADIO := true
BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO
BOARD_FM_DEVICE := bcm4325
HAS_BCM20780 := true
BOARD_GLOBAL_CFLAGS += -DHAS_BCM20780
# Kernel infos
BOARD_NAND_PAGE_SIZE := 4096 -s 128
BOARD_KERNEL_CMDLINE :=
BOARD_KERNEL_BASE := 0x13600000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_PAGE_SIZE := 0x00001000
#TARGET_KERNEL_SOURCE := kernel/samsung/msm7x27
#TARGET_KERNEL_CONFIG := cyanogenmod_cooper_defconfig
# Partitions info
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00480000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00780000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648
BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_BML_BOOT := "/dev/block/bml8"
BOARD_BML_RECOVERY := "/dev/block/bml9"
BOARD_RECOVERY_HANDLES_MOUNT := true
BOARD_HAS_DOWNLOAD_MODE := true
# Some recovery/system prebuilts
TARGET_PREBUILT_KERNEL := device/samsung/cooper/prebuilt/kernel
TARGET_RECOVERY_INITRC := device/samsung/cooper/prebuilt/recovery.rc
TARGET_PREBUILT_RECOVERY_KERNEL := device/samsung/cooper/prebuilt/recovery_kernel
# Files needed for correct recovery config
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/cooper/recovery/recovery_ui.c
BOARD_CUSTOM_GRAPHICS := ../../../device/samsung/cooper/recovery/graphics.c
# USB Mass Storage
BOARD_USE_USB_MASS_STORAGE_SWITCH := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/usb_mass_storage/gadget/lun"
BOARD_UMS_LUNFILE := "/sys/devices/platform/usb_mass_storage/lun0/file"
# Qualcomm stuff
BOARD_GPS_LIBRARIES := libloc_api
BOARD_USES_QCOM_HARDWARE := true
BOARD_USES_QCOM_LIBS := true
BOARD_USES_QCOM_GPS := true
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := cooper
BOARD_VENDOR_QCOM_GPS_LOC_API_AMSS_VERSION := 50000
BOARD_GPS_NEEDS_XTRA := true
# TWRP
DEVICE_RESOLUTION := 320x480
TW_NO_REBOOT_BOOTLOADER := true
TW_FLASH_FROM_STORAGE := true
BOARD_USES_BML_OVER_MTD := true
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
RECOVERY_GRAPHICS_USE_LINELENGTH := true