-
Notifications
You must be signed in to change notification settings - Fork 6
/
device.mk
executable file
·181 lines (147 loc) · 5.26 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS 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 is the build configuration for a full Android
# build for grouper hardware. This cleanly combines a set of
# device-specific aspects (drivers) with a device-agnostic
# product configuration (apps).
#
PRODUCT_PACKAGES += com.android.apex.cts.shim.v1_prebuilt
TARGET_FLATTEN_APEX := false
# Prebuilt
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/motorola/racer/prebuilt/product,product) \
$(call find-copy-subdir-files,*,device/motorola/racer/prebuilt/root,recovery/root) \
$(call find-copy-subdir-files,*,device/motorola/racer/prebuilt/permissions,product/etc/permissions) \
$(call find-copy-subdir-files,*,device/motorola/racer/prebuilt/system,system) \
$(call find-copy-subdir-files,*,device/motorola/racer/prebuilt/permissions,system/etc/permissions)
PRODUCT_PACKAGES += fstab.qcom
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.build.version.all_codenames=$(PLATFORM_VERSION_ALL_CODENAMES) \
ro.build.version.codename=$(PLATFORM_VERSION_CODENAME) \
ro.build.version.release=$(PLATFORM_VERSION) \
ro.build.version.sdk=$(PLATFORM_SDK_VERSION)
AB_OTA_PARTITIONS += \
boot \
dtbo \
system \
vbmeta \
product
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
PRODUCT_PACKAGES += \
otapreopt_script \
update_engine \
update_engine_sideload \
update_verifier
PRODUCT_HOST_PACKAGES += \
brillo_update_payload
# Boot control
PRODUCT_PACKAGES_DEBUG += \
bootctl
# Boot control
PRODUCT_PACKAGES += \
bootctrl.lito.recovery \
fastbootd
PRODUCT_PACKAGES_DEBUG += \
update_engine_client
PRODUCT_PACKAGES += \
omni_charger_res_images \
animation.txt \
font_charger.png
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.verified_boot.xml
PRODUCT_AAPT_CONFIG := xxxhdpi
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
PRODUCT_CHARACTERISTICS := nosdcard
# Camera
PRODUCT_PACKAGES += \
SnapdragonCamera2
# QMI
PRODUCT_PACKAGES += \
libjson
PRODUCT_PACKAGES += \
ims-ext-common \
ims_ext_common.xml \
qti-telephony-hidl-wrapper \
qti_telephony_hidl_wrapper.xml \
qti-telephony-utils \
qti_telephony_utils.xml \
tcmiface
# Netutils
PRODUCT_PACKAGES += \
netutils-wrapper-1.0 \
libandroid_net
PRODUCT_PACKAGES += \
MotoActions
PRODUCT_PACKAGES += \
vndk_package
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libdisplayconfig \
libqdMetaData.system \
libqdMetaData
#Nfc
PRODUCT_PACKAGES += \
# Display
PRODUCT_PACKAGES += \
libion \
libtinyxml2
PRODUCT_PACKAGES += \
libtinyalsa
# TODO(b/78308559): includes vr_hwc into GSI before vr_hwc move to vendor
PRODUCT_PACKAGES += \
vr_hwc
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_codecs_google_video.xml
PRODUCT_PACKAGES += \
# Video seccomp policy files
PRODUCT_COPY_FILES += \
device/motorola/racer/seccomp/codec2.software.ext.policy:$(TARGET_COPY_OUT)/etc/seccomp_policy/codec2.software.ext.policy
# Temporary handling
#
# Include config.fs get only if legacy device/qcom/<target>/android_filesystem_config.h
# does not exist as they are mutually exclusive. Once all target's android_filesystem_config.h
# have been removed, TARGET_FS_CONFIG_GEN should be made unconditional.
DEVICE_CONFIG_DIR := $(dir $(firstword $(subst ]],, $(word 2, $(subst [[, ,$(_node_import_context))))))
ifeq ($(wildcard device/motorola/racer/android_filesystem_config.h),)
TARGET_FS_CONFIG_GEN := device/motorola/racer/config.fs
else
$(warning **********)
$(warning TODO: Need to replace legacy $(DEVICE_CONFIG_DIR)android_filesystem_config.h with config.fs)
$(warning **********)
endif
$(call inherit-product, build/make/target/product/gsi_keys.mk)