-
Notifications
You must be signed in to change notification settings - Fork 1
/
BoardConfig.mk
106 lines (83 loc) · 3.45 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
# Copyright (C) 2013 The CyanogenMod 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
# thorughout 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).
#
# inherit from common msm8930
-include device/samsung/msm8930-common/BoardConfigCommon.mk
TARGET_SPECIFIC_HEADER_PATH := device/samsung/serrano/include
# For backwards compatibility with camera blobs
COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS
# Kernel
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.selinux=permissive user_debug=31 zcache
BOARD_KERNEL_BASE := 0x80200000
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000
BOARD_KERNEL_PAGESIZE := 2048
TARGET_KERNEL_SOURCE := kernel/samsung/msm8930-common
TARGET_KERNEL_CONFIG := cyanogen_serrano_defconfig
TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig
TARGET_BOOTLOADER_BOARD_NAME := MSM8960
# Recovery
BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/serrano/recovery/recovery_keys.c
BOARD_USES_MMCUTILS := true
BOARD_HAS_NO_MISC_PARTITION := true
TARGET_RECOVERY_FSTAB := device/samsung/serrano/rootdir/fstab.qcom
TARGET_RECOVERY_INITRC := device/samsung/serrano/rootdir/init.recovery.rc
TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/lcd/panel/backlight\"
COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485760
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1572864000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 5821676544
BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200
BOARD_FLASH_BLOCK_SIZE := 131072
# Vendor Init
TARGET_UNIFIED_DEVICE := true
TARGET_INIT_VENDOR_LIB := libinit_msm
TARGET_LIBINIT_DEFINES_FILE := device/samsung/serrano/init/init_serrano.c
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/serrano/bluetooth
# NFC
BOARD_NFC_HAL_SUFFIX := msm8960
# Disable initlogo, Samsungs framebuffer is weird
TARGET_NO_INITLOGO := true
# Use seperate speakerphone device
BOARD_USES_SEPERATED_VOICE_SPEAKER := true
# Use seperate devices for VOIP
BOARD_USES_SEPERATED_VOIP := true
# Use USB Dock Audio
BOARD_HAVE_DOCK_USBAUDIO := true
# Allow suspend in charge mode
BOARD_CHARGER_ENABLE_SUSPEND := true
# Enable QCOM FM feature
QCOM_FM_ENABLED := true
BOARD_USES_SEPERATED_FM := true
# Camera
TARGET_NEED_CAMERA_ZSL := true
TARGET_NEED_FFC_PICTURE_FIXUP := true
# We have new GPS
BOARD_HAVE_NEW_QC_GPS := true
# Time services
BOARD_USES_QC_TIME_SERVICES := true
# Assert
TARGET_OTA_ASSERT_DEVICE := serrano3g,serrano3gxx,i9190,GT-I9190,serranoltespr,serranoltespr,L520,SPH-L520,serranolte,serranoltexx,i9195,GT-I9195
# Kernel
TARGET_KERNEL_CONFIG := msm8930_serrano_eur_lte_defconfig
# Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := device/samsung/serrano/releasetools