forked from arbazkhan444/ctr_device_micromax_a106
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_a106.mk
70 lines (55 loc) · 2.09 KB
/
device_a106.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
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/micromax/a106/a106-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/micromax/a106/overlay
LOCAL_PATH := device/micromax/a106
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(LOCAL_PATH)/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
#rootfs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/fstab:root/fstab \
$(LOCAL_PATH)/recovery/fstab.mt6582:root/fstab.mt6582 \
$(LOCAL_PATH)/root/ueventd.mt6582.rc:root/ueventd.mt6582.rc \
$(LOCAL_PATH)/root/init.mt6582.rc:root/init.mt6582.rc \
$(LOCAL_PATH)/root/init.modem.rc:root/init.modem.rc \
$(LOCAL_PATH)/root/init.protect.rc:root/init.protect.rc \
$(LOCAL_PATH)/root/init.mt6582.usb.rc:/root/init.mt6582.usb.rc
#SELinux
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/file_contexts:root/file_contexts \
$(LOCAL_PATH)/recovery/seapp_contexts:root/seapp_contexts \
$(LOCAL_PATH)/recovery/property_contexts:root/property_contexts
#twrp
#PRODUCT_COPY_FILES += $(LOCAL_PATH)/recovery/twrp.fstab:recovery/root/etc/twrp.fstab
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := cm_a106
PRODUCT_DEVICE := a106
# wifi
PRODUCT_PACKAGES += \
lib_driver_cmd_mtk \
gralloc.mt6582
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_COPY_FILES_OVERRIDES += \
root/fstab.goldfish \
root/init.goldfish.rc \
recovery/root/fstab.goldfish \
root/ueventd.goldfish.rc
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0 \
ro.allow.mock.location=1 \
persist.mtk.aee.aed=on \
ro.debuggable=1 \
persist.service.acm.enable=0 \
persist.sys.usb.config=mass_storage \
ro.bootloader.mode=download \
ro.mount.fs=EXT4 \
ro.persist.partition.support=no
$(call inherit-product, build/target/product/full.mk)
# Hack for build
$(shell mkdir -p $(OUT)/obj/SHARED_LIBRARIES/libminui_intermediates)
$(shell touch $(OUT)/obj/SHARED_LIBRARIES/libminui_intermediates/export_includes)