/
device.mk
73 lines (53 loc) · 1.59 KB
/
device.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
LOCAL_PATH := device/oneplus/fajita
# Setting vendor SPL
VENDOR_SECURITY_PATCH = "2018-11-01"
# define hardware platform
PRODUCT_PLATFORM := sdm845
#TEST
# A/B support
PRODUCT_PACKAGES += \
otapreopt_script \
cppreopts.sh \
update_engine \
update_verifier
# Use Sdcardfs
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.sys.sdcardfs=1
PRODUCT_PACKAGES += \
bootctrl.sdm845
# Script that copies preloads directory from system_other to data partition
PRODUCT_COPY_FILES += \
device/oneplus/fajita/preloads_copy.sh:system/bin/preloads_copy.sh
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
boot \
system \
vendor \
vbmeta \
dtbo
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
# Enable update engine sideloading by including the static version of the
# boot_control HAL and its dependencies.
PRODUCT_STATIC_BOOT_CONTROL_HAL := \
bootctrl.sdm845 \
libgptutils \
libz \
libcutils
#PRODUCT_PACKAGES += \
# update_engine_sideload \
# sg_write_buffer
# The following modules are included in debuggable builds only.
#PRODUCT_PACKAGES_DEBUG += \
# bootctl \
# update_engine_client
# Boot control HAL
PRODUCT_PACKAGES += \
android.hardware.boot@1.0-impl \
android.hardware.boot@1.0-service \
PRODUCT_COPY_FILES += \
device/oneplus/fajita/fstab.hardware:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.$(PRODUCT_PLATFORM) \
device/oneplus/fajita/fstab.persist:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.persist