blob: ab5432711c166779ac502458183fcdd1db4bfa1d [file] [log] [blame]
Ricardo Cerqueira6ed03ff2011-11-28 16:37:47 +00001PRODUCT_BRAND ?= cyanogenmod
2
Zhao Wei Liewe2ec4c62016-12-03 09:55:11 +08003ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
4# determine the smaller dimension
5TARGET_BOOTANIMATION_SIZE := $(shell \
6 if [ "$(TARGET_SCREEN_WIDTH)" -lt "$(TARGET_SCREEN_HEIGHT)" ]; then \
7 echo $(TARGET_SCREEN_WIDTH); \
8 else \
9 echo $(TARGET_SCREEN_HEIGHT); \
10 fi )
11
12# get a sorted list of the sizes
13bootanimation_sizes := $(subst .zip,,$(shell ls -1 vendor/cm/prebuilt/common/bootanimation | sort -rn))
14
15# find the appropriate size and set
16define check_and_set_bootanimation
17$(eval TARGET_BOOTANIMATION_NAME := $(shell \
18 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then \
19 if [ "$(1)" -le "$(TARGET_BOOTANIMATION_SIZE)" ]; then \
20 echo $(1); \
21 exit 0; \
22 fi;
23 fi;
24 echo $(TARGET_BOOTANIMATION_NAME); ))
25endef
26$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
27
28ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
29PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
30else
31PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
32endif
33endif
34
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000035PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
36
Steve Kondik5a27f632013-11-06 13:55:11 -080037ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
38PRODUCT_PROPERTY_OVERRIDES += \
39 ro.com.google.clientidbase=android-google
40else
41PRODUCT_PROPERTY_OVERRIDES += \
42 ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
43endif
44
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000045PRODUCT_PROPERTY_OVERRIDES += \
46 keyguard.no_require_sim=true \
47 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
48 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000049 ro.com.android.wifi-watchlist=GoogleGuest \
50 ro.setupwizard.enterprise_mode=1 \
51 ro.com.android.dateformat=MM-dd-yyyy \
52 ro.com.android.dataroaming=false
53
Ricardo Cerqueiraf3835632013-08-04 13:25:00 +010054PRODUCT_PROPERTY_OVERRIDES += \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +010055 ro.build.selinux=1
Ricardo Cerqueiraf3835632013-08-04 13:25:00 +010056
Arne Coucheron61536d42016-09-09 00:04:09 +020057# Default notification/alarm sounds
58PRODUCT_PROPERTY_OVERRIDES += \
59 ro.config.notification_sound=Argon.ogg \
Zhao Wei Liew805a7a22016-10-03 15:30:05 +080060 ro.config.alarm_alert=Hassium.ogg
Arne Coucheron61536d42016-09-09 00:04:09 +020061
Ricardo Cerqueiraed634842015-09-12 00:13:01 +010062ifneq ($(TARGET_BUILD_VARIANT),user)
Steve Kondike4f938c2014-02-04 22:59:01 -080063# Thank you, please drive thru!
64PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
Ricardo Cerqueiraed634842015-09-12 00:13:01 +010065endif
Steve Kondike4f938c2014-02-04 22:59:01 -080066
Chirayu Desai88401db2013-03-20 16:17:17 +053067ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai59df3632013-02-15 21:16:39 +053068# Enable ADB authentication
69ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
Chirayu Desai88401db2013-03-20 16:17:17 +053070endif
Chirayu Desai59df3632013-02-15 21:16:39 +053071
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000072# Copy over the changelog to the device
73PRODUCT_COPY_FILES += \
74 vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
75
Warren Togamib1637c82012-03-03 22:37:42 -100076# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000077PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080078 vendor/cm/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
79 vendor/cm/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
Ricardo Cerqueira129989b2012-12-19 01:11:21 +000080 vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
81 vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000082
Abhisek Devkotaf1c5ab82016-07-06 15:18:29 -070083# Backup Services whitelist
84PRODUCT_COPY_FILES += \
85 vendor/cm/config/permissions/backup.xml:system/etc/sysconfig/backup.xml
86
Ricardo Cerqueiraaff5e542014-05-09 22:24:12 +010087# Signature compatibility validation
88PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080089 vendor/cm/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
Ricardo Cerqueiraaff5e542014-05-09 22:24:12 +010090
Steve Kondik485527d2011-12-20 12:14:24 -080091# init.d support
92PRODUCT_COPY_FILES += \
93 vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
94 vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
95
Ricardo Cerqueirafd6bfe72015-03-16 12:22:11 +000096ifneq ($(TARGET_BUILD_VARIANT),user)
James Sullinseb7799c2012-04-05 20:18:18 -050097# userinit support
98PRODUCT_COPY_FILES += \
99 vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
Ricardo Cerqueirafd6bfe72015-03-16 12:22:11 +0000100endif
James Sullinseb7799c2012-04-05 20:18:18 -0500101
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +0100102# CM-specific init file
103PRODUCT_COPY_FILES += \
104 vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc
105
herriojr5d2c9982015-10-01 11:20:26 -0700106# Copy over added mimetype supported in libcore.net.MimeUtils
107PRODUCT_COPY_FILES += \
108 vendor/cm/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
109
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000110# Enable SIP+VoIP on all targets
111PRODUCT_COPY_FILES += \
Ricardo Cerqueira3ff9b6f2012-07-11 11:21:50 +0100112 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000113
sleeplessninja918a7ea2013-01-30 14:45:20 -0600114# Enable wireless Xbox 360 controller support
115PRODUCT_COPY_FILES += \
116 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
117
Steve Kondike0c12da2012-03-25 17:21:32 -0700118# This is CM!
119PRODUCT_COPY_FILES += \
120 vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
121
Arne Coucheron61536d42016-09-09 00:04:09 +0200122# Include CM audio files
123include vendor/cm/config/cm_audio.mk
124
Michael Bestasc37028d2015-11-03 21:39:04 +0200125# Theme engine
Ricardo Cerqueira9f75d842012-05-04 10:15:56 +0100126include vendor/cm/config/themes_common.mk
127
Luca Stefani25801972016-08-27 00:44:50 +0200128ifneq ($(TARGET_DISABLE_CMSDK), true)
Adnan Begovicf3610f52016-03-15 14:17:47 -0700129# CMSDK
130include vendor/cm/config/cmsdk_common.mk
Luca Stefani25801972016-08-27 00:44:50 +0200131endif
Adnan Begovicf3610f52016-03-15 14:17:47 -0700132
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000133# Required CM packages
134PRODUCT_PACKAGES += \
Steve Kondik4992d382016-08-29 18:23:03 -0700135 BluetoothExt \
Roman Birgcdb0ea62016-07-25 08:45:42 -0700136 CMAudioService \
Steve Kondik21e414a2016-09-03 05:28:29 -0700137 CMParts \
Steve Kondike0c297d2011-12-20 16:16:01 -0800138 Development \
d34d851457a2016-07-20 13:19:32 -0700139 Profiles \
Luis Vidal049d4c52016-08-13 01:32:58 -0700140 WeatherManagerService
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000141
142# Optional CM packages
143PRODUCT_PACKAGES += \
Ricardo Cerqueira117984f2015-01-04 01:55:24 +0000144 libemoji \
Arne Coucheron61536d42016-09-09 00:04:09 +0200145 LiveWallpapersPicker \
Steve Kondikdf96b442016-10-13 11:37:08 -0700146 PhotoTable \
147 Terminal
Koushik Dutta8387c322011-11-26 17:31:19 -0800148
Alexander Martinze7f40582016-12-01 18:57:48 +0100149# Include explicitly to work around GMS issues
Steve Kondikdac37852015-12-01 13:31:45 -0800150PRODUCT_PACKAGES += \
Alexander Martinze7f40582016-12-01 18:57:48 +0100151 libprotobuf-cpp-full \
Steve Kondikdac37852015-12-01 13:31:45 -0800152 librsjni
153
Steve Kondik04a49412011-12-14 14:02:19 -0800154# Custom CM packages
155PRODUCT_PACKAGES += \
Steve Kondikc4f6b972014-12-09 13:29:29 -0800156 AudioFX \
DvTonderf0074032012-12-30 13:37:40 -0500157 CMFileManager \
Arne Coucheron3ae1edd2015-11-05 02:35:12 +0100158 CMSettingsProvider \
Steve Kondikdf96b442016-10-13 11:37:08 -0700159 CMUpdater \
160 CMWallpapers \
161 CyanogenSetupWizard \
162 Eleven \
d34d2cf159c2016-03-08 09:12:04 -0800163 ExactCalculator \
Steve Kondikdf96b442016-10-13 11:37:08 -0700164 Launcher3 \
Luis Vidal6d61d302016-03-21 10:18:29 -0700165 LiveLockScreenService \
Steve Kondikdf96b442016-10-13 11:37:08 -0700166 LockClock \
167 Screencast \
Arne Coucheron61536d42016-09-09 00:04:09 +0200168 SoundRecorder \
Steve Kondikdf96b442016-10-13 11:37:08 -0700169 Trebuchet \
170 WallpaperPicker \
171 WeatherProvider
Steve Kondik04a49412011-12-14 14:02:19 -0800172
Abhisek Devkotacf03e162016-03-14 12:45:43 -0800173# Exchange support
174PRODUCT_PACKAGES += \
175 Exchange2
176
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200177# Extra tools in CM
178PRODUCT_PACKAGES += \
Arne Coucheron61536d42016-09-09 00:04:09 +0200179 7z \
Arne Coucheron61536d42016-09-09 00:04:09 +0200180 bash \
181 bzip2 \
182 curl \
Steve Kondikdf96b442016-10-13 11:37:08 -0700183 fsck.ntfs \
184 gdbserver \
185 htop \
186 lib7z \
187 libsepol \
188 micro_bench \
189 mke2fs \
190 mkfs.ntfs \
191 mount.ntfs \
192 oprofiled \
193 pigz \
Arne Coucheron61536d42016-09-09 00:04:09 +0200194 powertop \
Steve Kondikdf96b442016-10-13 11:37:08 -0700195 sqlite3 \
196 strace \
197 tune2fs \
Arne Coucheron61536d42016-09-09 00:04:09 +0200198 unrar \
199 unzip \
200 vim \
201 wget \
202 zip
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200203
Steve Kondik75956202016-08-07 23:21:29 -0700204# Custom off-mode charger
205ifneq ($(WITH_CM_CHARGER),false)
206PRODUCT_PACKAGES += \
207 charger_res_images \
208 cm_charger_res_images \
209 font_log.png \
210 libhealthd.cm
211endif
212
213# ExFAT support
Scott Mertz2911a0e2015-11-09 11:35:41 -0800214WITH_EXFAT ?= true
215ifeq ($(WITH_EXFAT),true)
216TARGET_USES_EXFAT := true
217PRODUCT_PACKAGES += \
218 mount.exfat \
219 fsck.exfat \
220 mkfs.exfat
221endif
222
Chirayu Desai8636d672012-07-19 16:04:25 +0530223# Openssh
224PRODUCT_PACKAGES += \
225 scp \
226 sftp \
227 ssh \
228 sshd \
229 sshd_config \
230 ssh-keygen \
Chirayu Desai4bacf672012-08-19 17:30:04 +0530231 start-ssh
232
233# rsync
234PRODUCT_PACKAGES += \
235 rsync
Chirayu Desai8636d672012-07-19 16:04:25 +0530236
Michael Bestas7d5d16d2014-06-10 20:06:48 +0300237# Stagefright FFMPEG plugin
Steve Kondikb5ee3772016-09-06 03:06:35 -0700238PRODUCT_PACKAGES += \
239 libffmpeg_extractor \
240 libffmpeg_omx \
241 media_codecs_ffmpeg.xml
242
243PRODUCT_PROPERTY_OVERRIDES += \
244 media.sf.omx-plugin=libffmpeg_omx.so \
245 media.sf.extractor-plugin=libffmpeg_extractor.so
Steve Kondik7c968692015-07-08 09:53:12 -0700246
Joey Rizzoli73a39652016-11-23 21:19:00 +0100247# Storage manager
248PRODUCT_PROPERTY_OVERRIDES += \
249 ro.storage_manager.enabled=true
250
Zhao Wei Liewe6ba7452016-10-13 13:57:44 +0800251# Telephony
252PRODUCT_PACKAGES += \
253 telephony-ext
254
255PRODUCT_BOOT_JARS += \
256 telephony-ext
257
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100258# These packages are excluded from user builds
259ifneq ($(TARGET_BUILD_VARIANT),user)
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100260PRODUCT_PACKAGES += \
Steve Kondik275701b2013-11-06 12:41:34 -0800261 procmem \
262 procrank \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100263 su
repo Shareef Ali4bcfc312014-12-29 17:52:04 -0600264endif
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100265
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100266PRODUCT_PROPERTY_OVERRIDES += \
267 persist.sys.root_access=0
268
Ricardo Cerqueira15c9ef42016-03-11 14:09:52 +0000269DEVICE_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -0800270
Dan Pasanen69354102016-08-24 10:19:50 -0500271PRODUCT_VERSION_MAJOR = 14
Steve Kondik7d4f0f22016-10-25 20:35:15 -0700272PRODUCT_VERSION_MINOR = 1
Dan Pasanen69354102016-08-24 10:19:50 -0500273PRODUCT_VERSION_MAINTENANCE := 0
Adrian DC3e85bf72016-08-06 21:47:23 +0200274
Scott Mertza9950592016-08-05 12:24:19 -0700275ifeq ($(TARGET_VENDOR_SHOW_MAINTENANCE_VERSION),true)
Adrian DC3e85bf72016-08-06 21:47:23 +0200276 CM_VERSION_MAINTENANCE := $(PRODUCT_VERSION_MAINTENANCE)
Scott Mertza9950592016-08-05 12:24:19 -0700277else
Adrian DC3e85bf72016-08-06 21:47:23 +0200278 CM_VERSION_MAINTENANCE := 0
Scott Mertza9950592016-08-05 12:24:19 -0700279endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800280
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100281# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
282
283ifndef CM_BUILDTYPE
284 ifdef RELEASE_TYPE
285 # Starting with "CM_" is optional
286 RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
287 CM_BUILDTYPE := $(RELEASE_TYPE)
288 endif
Warren Togami2128e2f2012-05-06 19:49:33 -1000289endif
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100290
291# Filter out random types, so it'll reset to UNOFFICIAL
292ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
293 CM_BUILDTYPE :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000294endif
295
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100296ifdef CM_BUILDTYPE
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100297 ifneq ($(CM_BUILDTYPE), SNAPSHOT)
298 ifdef CM_EXTRAVERSION
299 # Force build type to EXPERIMENTAL
300 CM_BUILDTYPE := EXPERIMENTAL
301 # Remove leading dash from CM_EXTRAVERSION
302 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
303 # Add leading dash to CM_EXTRAVERSION
304 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
305 endif
306 else
307 ifndef CM_EXTRAVERSION
308 # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
309 CM_BUILDTYPE := EXPERIMENTAL
310 else
311 # Remove leading dash from CM_EXTRAVERSION
312 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
313 # Add leading dash to CM_EXTRAVERSION
314 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
315 endif
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100316 endif
317else
318 # If CM_BUILDTYPE is not defined, set to UNOFFICIAL
Warren Togami2128e2f2012-05-06 19:49:33 -1000319 CM_BUILDTYPE := UNOFFICIAL
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100320 CM_EXTRAVERSION :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000321endif
322
Matt Mowerf4168392013-12-13 11:04:14 -0600323ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
324 ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
Michael Bestas3bf9ba82013-12-18 00:22:58 +0200325 CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
Matt Mowerf4168392013-12-13 11:04:14 -0600326 endif
327endif
328
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100329ifeq ($(CM_BUILDTYPE), RELEASE)
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000330 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
331 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
332 else
333 ifeq ($(TARGET_BUILD_VARIANT),user)
Adrian DC3e85bf72016-08-06 21:47:23 +0200334 ifeq ($(CM_VERSION_MAINTENANCE),0)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700335 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
336 else
Adrian DC3e85bf72016-08-06 21:47:23 +0200337 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700338 endif
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000339 else
340 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
341 endif
342 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800343else
Adrian DC3e85bf72016-08-06 21:47:23 +0200344 ifeq ($(CM_VERSION_MAINTENANCE),0)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700345 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
346 else
Adrian DC3e85bf72016-08-06 21:47:23 +0200347 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700348 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800349endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800350
351PRODUCT_PROPERTY_OVERRIDES += \
352 ro.cm.version=$(CM_VERSION) \
Brint E. Kriebelaf917582014-07-10 10:31:00 -0700353 ro.cm.releasetype=$(CM_BUILDTYPE) \
Abhisek Devkota381a3052013-12-10 04:35:08 -0800354 ro.modversion=$(CM_VERSION) \
NBruderman3b7f3d22015-03-04 12:08:33 +0200355 ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
Ricardo Cerqueirad5422742012-11-13 10:42:11 +0000356
Michael Bestas3952f6c2016-08-26 01:12:08 +0300357ifeq ($(OTA_PACKAGE_SIGNING_KEY),)
358 PRODUCT_EXTRA_RECOVERY_KEYS += \
359 vendor/cm/build/target/product/security/cm \
360 vendor/cm/build/target/product/security/cm-devkey
361endif
362
Ricardo Cerqueira178dbd62013-10-23 20:56:56 +0100363-include vendor/cm-priv/keys/keys.mk
364
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000365CM_DISPLAY_VERSION := $(CM_VERSION)
366
Brint E. Kriebelac948f52014-01-24 09:58:36 -0800367ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
368ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000369 ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
370 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
371 ifneq ($(CM_EXTRAVERSION),)
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000372 # Remove leading dash from CM_EXTRAVERSION
373 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000374 TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
375 else
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000376 TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000377 endif
378 else
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000379 TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000380 endif
Adrian DC3e85bf72016-08-06 21:47:23 +0200381 ifeq ($(CM_VERSION_MAINTENANCE),0)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700382 CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
383 else
Adrian DC3e85bf72016-08-06 21:47:23 +0200384 CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700385 endif
386endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000387endif
Ricardo Cerqueira74b4f9b2014-01-11 16:00:16 +0000388endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000389
390PRODUCT_PROPERTY_OVERRIDES += \
391 ro.cm.display.version=$(CM_DISPLAY_VERSION)
392
Brint E. Kriebela1e49122014-01-31 11:59:56 -0800393-include $(WORKSPACE)/build_env/image-auto-bits.mk
Steve Kondik960c4f42016-09-02 21:11:11 -0700394-include vendor/cm/config/partner_gms.mk
Koushik Dutta41fd0aa2013-12-07 22:04:17 -0800395-include vendor/cyngn/product.mk
Steve Kondikb9dd4002014-09-10 15:41:43 -0700396
Chris Sarbora39b9aa82014-12-17 14:41:28 -0800397$(call prepend-product-if-exists, vendor/extra/product.mk)