forked from omerazo/android_device_huawei_hi3650
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeticulus.mk
More file actions
57 lines (47 loc) · 1.87 KB
/
meticulus.mk
File metadata and controls
57 lines (47 loc) · 1.87 KB
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
#
# Copyright (C) 2016 Jonathan Jason Dennis (theonejohnnyd@gmail.com)
#
# 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.
#
ifeq ($(I_AM_METICULUS), true)
# Use my custom build ninja that prints to screen sequentially
# so you can see whats going on.
# Resolve depenancy issue: sudo apt-get install libc++-dev
$(shell echo "Using Meticulus's Ninja" >&2)
$(shell cp -f $(LOCAL_PATH)/prebuilt/ninja prebuilts/ninja/linux-x86/ninja)
# Meticulus init rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/init.meticulus.rc:root/init.meticulus.rc
# Meticulus recovery init rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/init.recovery.meticulus.rc:root/init.recovery.meticulus.rc
# Meticulus recovery checks
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/stock-check.sh:install/bin/stock-check.sh \
$(LOCAL_PATH)/recovery/finalize.sh:install/bin/finalize.sh \
$(LOCAL_PATH)/recovery/data-formatter.sh:install/bin/data-formatter.sh
# Meticulus Settings Integration
PRODUCT_PACKAGES += \
CodinalteParts \
volumeinput
# Meticulus Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := device/huawei/hi6250
ifeq ($(TARGET_PRODUCT), omni_hi6250)
# TWRP EMUI4.X Support
TW_EMUI4_SUPPORT := true
# Meticulus Recovery Extras
$(call inherit-product, vendor/huawei/hi6250/meticulus_recovery.mk)
endif ## USER eq meticulus
else
$(shell cd prebuilts/build-tools && git checkout linux-x86/bin/ninja)
endif