-
Notifications
You must be signed in to change notification settings - Fork 3
/
BoardConfig.mk
67 lines (50 loc) · 2.47 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
#
# Copyright (C) 2016 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.
FORCE_32_BIT := true
TARGET_BOARD_PLATFORM := mt6735
DEVICE_PATH := device/lge/mm1v
MTK_PROJECT_CONFIG ?= $(DEVICE_PATH)/ProjectConfig.mk
include $(MTK_PROJECT_CONFIG)
#change if needed
include device/cyanogen/mt6735-common/BoardConfigCommon.mk
#what the hell is this do I need it?
MTK_INTERNAL_CDEFS := $(foreach t,$(AUTO_ADD_GLOBAL_DEFINE_BY_NAME),$(if $(filter-out no NO none NONE false FALSE,$($(t))),-D$(t)))
MTK_INTERNAL_CDEFS += $(foreach t,$(AUTO_ADD_GLOBAL_DEFINE_BY_VALUE),$(if $(filter-out no NO none NONE false FALSE,$($(t))),$(foreach v,$(shell echo $($(t)) | tr '[a-z]' '[A-Z]'),-D$(v))))
MTK_INTERNAL_CDEFS += $(foreach t,$(AUTO_ADD_GLOBAL_DEFINE_BY_NAME_VALUE),$(if $(filter-out no NO none NONE false FALSE,$($(t))),-D$(t)=\"$($(t))\"))
COMMON_GLOBAL_CFLAGS += $(MTK_INTERNAL_CDEFS)
COMMON_GLOBAL_CPPFLAGS += $(MTK_INTERNAL_CDEFS)
#not sure where is this, maybe need to be located created or something
#try something like this if it failscyanogenmod_mm1v_defconfig
TARGET_KERNEL_CONFIG := muse6735_m1v_m_defconfig
TARGET_BOOTLOADER_BOARD_NAME := MM1V
#promeniti kad skontam koliko je.. skontao :D
BOARD_SYSTEMIMAGE_PARTITION_SIZE:=2879565824
BOARD_CACHEIMAGE_PARTITION_SIZE:=318767104
BOARD_USERDATAIMAGE_PARTITION_SIZE:=3807903744
#don't know what is this, it will wait
TARGET_INIT_VENDOR_LIB := libinit_mm1v
#i don't know where is this on my phone now..
TARGET_TAP_TO_WAKE_NODE := /sys/devices/virtual/input/lge_touch/knock_on_type
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy
TARGET_TRANSPARENT_COMPRESSION_METHOD := lz4
#TWRP this breaks building use only if compiling with minimum twrp repo or omni
#RECOVERY_VARIANT := twrp
#TW_USE_TOOLBOX := true
#TW_THEME := portrait_hdpi
#TW_SCREEN_BLANK_ON_BOOT := true
#TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
#TW_INCLUDE_CRYPTO := true
#TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/twrp.fstab