-
Notifications
You must be signed in to change notification settings - Fork 5
/
common.mk
222 lines (176 loc) · 6.5 KB
/
common.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
PRODUCT_MANUFACTURER := intel
override PRODUCT_BRAND := intel
include $(COMMON_PATH)/memory/memory-spectrum.mk
# These goals don't need to collect and include Android.mks/CleanSpec.mks
# in the source tree.
intel_dont_bother_goals := build_kernel-nodeps \
menuconfig xconfig gconfig \
TAGS tags gtags cscope
ifneq ($(filter $(intel_dont_bother_goals), $(MAKECMDGOALS)),)
dont_bother := true
endif
#Add Power HAL Package
PRODUCT_PACKAGES += \
power.$(PRODUCT_DEVICE)
#Add capped freq release app
PRODUCT_PACKAGES += \
bcu_cpufreqrel
#Add SensorCal App
PRODUCT_PACKAGES += \
SensorCal
#Add update_recovery binary for OTA
PRODUCT_PACKAGES += \
update_recovery
#Add make_ext4fs tool for JB's encryption app feature
PRODUCT_PACKAGES += \
make_ext4fs
#for burst capture
PRODUCT_PACKAGES += \
fast_click.pcm
# SpeechRecorder for eng build variant
PRODUCT_PACKAGES_ENG += \
SpeechRecorder
#Tcpdump for debug buid variant
PRODUCT_PACKAGES_DEBUG += \
tcpdump
PRODUCT_PACKAGES += \
thermald
#ituxd for intel thermal management
ENABLE_ITUXD := true
PRODUCT_PACKAGES += \
ituxd
#AESNI for bouncycastle
PRODUCT_PACKAGES += \
libaesni
# copy boot animation resources
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/bootanimation.zip:system/media/bootanimation.zip
# Copy sar manager resources
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/sarconfig.xml:system/etc/sarconfig.xml
# Target image build tools.
# These are defined in libintelprov/Android.mk
# Note: some of these have ".py" (python) suffixes. The suffix must
# not be specified in PRODUCT_PACKAGES... it gets stripped by the
# core/multi_prebuilt.mk auto-prebuilt-boilerplate rule.
PRODUCT_PACKAGES += \
releasetools \
ota_from_target_files \
check_target_files_signatures \
common \
edify_generator \
lfstk_wrapper \
mfld_osimage \
product_name_mapping \
sign_target_files_apks
# Houdini prebuilt
$(call inherit-product-if-exists, vendor/intel/houdini/houdini.mk)
#GMS package
$(call inherit-product-if-exists, vendor/google/PRIVATE/gms/products/gms_gpe.mk)
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-intel
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/atproxy_usbreset:system/bin/atproxy_usbreset
endif
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/init.rc:root/init.rc \
system/core/rootdir/init.rc:root/init.aosp.rc \
$(COMMON_PATH)/props.rc:root/props.rc \
$(COMMON_PATH)/ueventd.modules.blacklist:root/ueventd.modules.blacklist
PERMISSIONS_PATH := frameworks/native/data/etc
PRODUCT_COPY_FILES += \
$(PERMISSIONS_PATH)/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
$(PERMISSIONS_PATH)/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
$(PERMISSIONS_PATH)/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
$(PERMISSIONS_PATH)/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml
# Valgrind for eng build variant
PRODUCT_PACKAGES_ENG += \
valgrind_pack
# Power Debug Tools
-include vendor/intel/hardware/PRIVATE/platform_test/power-debug/power-debug.mk
ifneq (,$(filter $(TARGET_BUILD_VARIANT),eng userdebug))
# memmonitor (not for user builds)
-include vendor/intel/tools/PRIVATE/log_infra/monitor/memmonitor/memmonitor.mk
# thermal debug tools/scripts (not for user builds)
-include vendor/intel/tools/PRIVATE/debug_internal_tools/thermal/thermal.mk
ifneq ($(NO_MPM),true)
# MPM (formely Kratos) (not for user builds)
-include vendor/intel/apps/PRIVATE/Kratos/products/MPM.mk
endif
# vTunes binaires (not for user builds)
-include vendor/intel/tools/PRIVATE/debug_internal_tools/sepdk/bin/sepbin.mk
# SocPerf binaires (not for user builds)
-include vendor/intel/tools/PRIVATE/debug_internal_tools/socperfdk/bin/socperfbin.mk
endif
# Crashinfo
-include vendor/intel/tools/PRIVATE/log_infra/crashinfo/crashinfo.mk
#crash report
PRODUCT_COPY_FILES += \
vendor/intel/tools/log_capture/crashlog/monitor_crashenv:system/bin/monitor_crashenv \
vendor/intel/tools/log_capture/crashlog/del_hist.sh:system/bin/del_hist.sh \
vendor/intel/tools/log_capture/crashlog/del_log.sh:system/bin/del_log.sh \
vendor/intel/tools/log_capture/crashlog/dumpstate_dropbox.sh:system/bin/dumpstate_dropbox.sh
#Bring in camera media effects
$(call inherit-product-if-exists, frameworks/base/data/videos/VideoPackage2.mk)
# PSI Recorder (not for user builds)
PRODUCT_PACKAGES_DEBUG += \
PSI_Recorder
# Autocall (not for user builds)
PRODUCT_PACKAGES_DEBUG += \
Autocall
# AudioToolBox (for eng builds)
PRODUCT_PACKAGES_ENG += \
AudioToolBox
# network (wifi, bt) data dump (tcpdump is present only in eng. builds)
ifneq (,$(filter $(TARGET_BUILD_VARIANT),eng userdebug))
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/init.dump.rc:root/init.dump.rc
endif
ifneq ($(BOARD_HAVE_MODEM), false)
# AMTL unified configuration
-include vendor/intel/tools/log_capture/amtl/src/com/intel/amtl/config_catalog/amtl.mk
endif
ifeq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.adb.secure=1
endif
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/init.common.rc:root/init.common.rc
# Arkham
PRODUCT_PACKAGES += \
init.intel.features.rc \
com.intel.config \
com.intel.config.xml \
com.intel.arkham.services \
com.intel.arkham.services.xml \
ContainerDeviceAdmin \
ContainerLauncher
PRODUCT_PACKAGES_ENG += \
cm
# Android Security Framework
PRODUCT_PACKAGES += \
init.intel.feature.asf.rc \
com.intel.asf \
com.intel.asf.xml \
securityfileservice \
securitydeviceservice \
SecurityManagerService
# Intel Security Assist
PRODUCT_PACKAGES += \
IntelSecurityAssist
PRODUCT_PACKAGES_ENG += \
IntelSecurityAssistTest
# This library is required for Intel's implementation of Dalvik
# libpcgdvmjit is a part of Dalvik JIT compiler
PRODUCT_PACKAGES += libpcgdvmjit
# This library is required for Intel's implementation of Dalvik
# libcrash is a library which provides recorded state of an applications
# which crashed while running on Dalvik VM
PRODUCT_PACKAGES += libcrash
# This is needed to enable silver art optimizer.
# This will build the plugins/libart-extension.so library, which is dynamically loaded by
# AOSP and contains Intel optimizations to the compiler.
PRODUCT_PACKAGES += libart-extension
# include test suite for eng and userdebug builds
include $(COMMON_PATH)/test_suites.mk