blob: 26235de7be7e67350ef51d904a67c7e9e0b1e733 [file] [log] [blame]
Dan Pasanen03447712016-12-19 11:22:55 -06001PRODUCT_BRAND ?= LineageOS
Ricardo Cerqueira6ed03ff2011-11-28 16:37:47 +00002
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +00003PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
4
Steve Kondik5a27f632013-11-06 13:55:11 -08005ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
6PRODUCT_PROPERTY_OVERRIDES += \
7 ro.com.google.clientidbase=android-google
8else
9PRODUCT_PROPERTY_OVERRIDES += \
10 ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
11endif
12
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000013PRODUCT_PROPERTY_OVERRIDES += \
Zhao Wei Liewa18b0572017-01-13 15:41:01 +080014 keyguard.no_require_sim=true
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000015
Ricardo Cerqueiraf3835632013-08-04 13:25:00 +010016PRODUCT_PROPERTY_OVERRIDES += \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +010017 ro.build.selinux=1
Ricardo Cerqueiraf3835632013-08-04 13:25:00 +010018
Arne Coucheron61536d42016-09-09 00:04:09 +020019# Default notification/alarm sounds
20PRODUCT_PROPERTY_OVERRIDES += \
21 ro.config.notification_sound=Argon.ogg \
Zhao Wei Liew805a7a22016-10-03 15:30:05 +080022 ro.config.alarm_alert=Hassium.ogg
Arne Coucheron61536d42016-09-09 00:04:09 +020023
Ricardo Cerqueiraed634842015-09-12 00:13:01 +010024ifneq ($(TARGET_BUILD_VARIANT),user)
Steve Kondike4f938c2014-02-04 22:59:01 -080025# Thank you, please drive thru!
26PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
Ricardo Cerqueiraed634842015-09-12 00:13:01 +010027endif
Steve Kondike4f938c2014-02-04 22:59:01 -080028
Chirayu Desai88401db2013-03-20 16:17:17 +053029ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai59df3632013-02-15 21:16:39 +053030# Enable ADB authentication
31ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
Chirayu Desai88401db2013-03-20 16:17:17 +053032endif
Chirayu Desai59df3632013-02-15 21:16:39 +053033
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000034# Copy over the changelog to the device
35PRODUCT_COPY_FILES += \
36 vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
37
Warren Togamib1637c82012-03-03 22:37:42 -100038# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000039PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080040 vendor/cm/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
41 vendor/cm/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
Ricardo Cerqueira129989b2012-12-19 01:11:21 +000042 vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
43 vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000044
Abhisek Devkotaf1c5ab82016-07-06 15:18:29 -070045# Backup Services whitelist
46PRODUCT_COPY_FILES += \
47 vendor/cm/config/permissions/backup.xml:system/etc/sysconfig/backup.xml
48
Ricardo Cerqueiraaff5e542014-05-09 22:24:12 +010049# Signature compatibility validation
50PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080051 vendor/cm/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
Ricardo Cerqueiraaff5e542014-05-09 22:24:12 +010052
Steve Kondik485527d2011-12-20 12:14:24 -080053# init.d support
54PRODUCT_COPY_FILES += \
55 vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
56 vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
57
Ricardo Cerqueirafd6bfe72015-03-16 12:22:11 +000058ifneq ($(TARGET_BUILD_VARIANT),user)
James Sullinseb7799c2012-04-05 20:18:18 -050059# userinit support
60PRODUCT_COPY_FILES += \
61 vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
Ricardo Cerqueirafd6bfe72015-03-16 12:22:11 +000062endif
James Sullinseb7799c2012-04-05 20:18:18 -050063
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +010064# CM-specific init file
65PRODUCT_COPY_FILES += \
66 vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc
67
herriojr5d2c9982015-10-01 11:20:26 -070068# Copy over added mimetype supported in libcore.net.MimeUtils
69PRODUCT_COPY_FILES += \
70 vendor/cm/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
71
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000072# Enable SIP+VoIP on all targets
73PRODUCT_COPY_FILES += \
Ricardo Cerqueira3ff9b6f2012-07-11 11:21:50 +010074 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000075
sleeplessninja918a7ea2013-01-30 14:45:20 -060076# Enable wireless Xbox 360 controller support
77PRODUCT_COPY_FILES += \
78 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
79
Steve Kondike0c12da2012-03-25 17:21:32 -070080# This is CM!
81PRODUCT_COPY_FILES += \
82 vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
83
Arne Coucheron61536d42016-09-09 00:04:09 +020084# Include CM audio files
85include vendor/cm/config/cm_audio.mk
86
Michael Bestasc37028d2015-11-03 21:39:04 +020087# Theme engine
Ricardo Cerqueira9f75d842012-05-04 10:15:56 +010088include vendor/cm/config/themes_common.mk
89
Luca Stefani25801972016-08-27 00:44:50 +020090ifneq ($(TARGET_DISABLE_CMSDK), true)
Adnan Begovicf3610f52016-03-15 14:17:47 -070091# CMSDK
92include vendor/cm/config/cmsdk_common.mk
Luca Stefani25801972016-08-27 00:44:50 +020093endif
Adnan Begovicf3610f52016-03-15 14:17:47 -070094
Michael Bestasbeb05c82017-07-18 19:57:26 +030095# TWRP
96ifeq ($(WITH_TWRP),true)
97include vendor/cm/config/twrp.mk
98endif
99
Dan Pasanen24a1cc92016-12-28 22:59:21 -0600100# Bootanimation
Asher Simondse035b9a2017-01-16 21:52:24 -0600101PRODUCT_PACKAGES += \
102 bootanimation.zip
Dan Pasanen24a1cc92016-12-28 22:59:21 -0600103
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000104# Required CM packages
105PRODUCT_PACKAGES += \
Steve Kondik4992d382016-08-29 18:23:03 -0700106 BluetoothExt \
Roman Birgcdb0ea62016-07-25 08:45:42 -0700107 CMAudioService \
Steve Kondik21e414a2016-09-03 05:28:29 -0700108 CMParts \
Steve Kondike0c297d2011-12-20 16:16:01 -0800109 Development \
d34d851457a2016-07-20 13:19:32 -0700110 Profiles \
Luis Vidal049d4c52016-08-13 01:32:58 -0700111 WeatherManagerService
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000112
113# Optional CM packages
114PRODUCT_PACKAGES += \
Ricardo Cerqueira117984f2015-01-04 01:55:24 +0000115 libemoji \
Arne Coucheron61536d42016-09-09 00:04:09 +0200116 LiveWallpapersPicker \
Steve Kondikdf96b442016-10-13 11:37:08 -0700117 PhotoTable \
118 Terminal
Koushik Dutta8387c322011-11-26 17:31:19 -0800119
Alexander Martinze7f40582016-12-01 18:57:48 +0100120# Include explicitly to work around GMS issues
Steve Kondikdac37852015-12-01 13:31:45 -0800121PRODUCT_PACKAGES += \
Alexander Martinze7f40582016-12-01 18:57:48 +0100122 libprotobuf-cpp-full \
Steve Kondikdac37852015-12-01 13:31:45 -0800123 librsjni
124
Steve Kondik04a49412011-12-14 14:02:19 -0800125# Custom CM packages
126PRODUCT_PACKAGES += \
Steve Kondikc4f6b972014-12-09 13:29:29 -0800127 AudioFX \
Arne Coucheron3ae1edd2015-11-05 02:35:12 +0100128 CMSettingsProvider \
Steve Kondikdf96b442016-10-13 11:37:08 -0700129 CMUpdater \
cretin457674e052017-02-11 11:39:59 -0800130 LineageSetupWizard \
Steve Kondikdf96b442016-10-13 11:37:08 -0700131 Eleven \
d34d2cf159c2016-03-08 09:12:04 -0800132 ExactCalculator \
Joey Rizzoli177ab032017-04-20 22:17:37 +0200133 Jelly \
Luis Vidal6d61d302016-03-21 10:18:29 -0700134 LiveLockScreenService \
Steve Kondikdf96b442016-10-13 11:37:08 -0700135 LockClock \
Steve Kondikdf96b442016-10-13 11:37:08 -0700136 Trebuchet \
137 WallpaperPicker \
138 WeatherProvider
Steve Kondik04a49412011-12-14 14:02:19 -0800139
Abhisek Devkotacf03e162016-03-14 12:45:43 -0800140# Exchange support
141PRODUCT_PACKAGES += \
142 Exchange2
143
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200144# Extra tools in CM
145PRODUCT_PACKAGES += \
Arne Coucheron61536d42016-09-09 00:04:09 +0200146 7z \
Arne Coucheron61536d42016-09-09 00:04:09 +0200147 bash \
148 bzip2 \
149 curl \
Steve Kondikdf96b442016-10-13 11:37:08 -0700150 fsck.ntfs \
151 gdbserver \
152 htop \
153 lib7z \
154 libsepol \
155 micro_bench \
156 mke2fs \
157 mkfs.ntfs \
158 mount.ntfs \
159 oprofiled \
160 pigz \
Arne Coucheron61536d42016-09-09 00:04:09 +0200161 powertop \
Steve Kondikdf96b442016-10-13 11:37:08 -0700162 sqlite3 \
163 strace \
164 tune2fs \
Arne Coucheron61536d42016-09-09 00:04:09 +0200165 unrar \
166 unzip \
167 vim \
168 wget \
169 zip
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200170
Steve Kondik75956202016-08-07 23:21:29 -0700171# Custom off-mode charger
172ifneq ($(WITH_CM_CHARGER),false)
173PRODUCT_PACKAGES += \
174 charger_res_images \
175 cm_charger_res_images \
176 font_log.png \
177 libhealthd.cm
178endif
179
180# ExFAT support
Scott Mertz2911a0e2015-11-09 11:35:41 -0800181WITH_EXFAT ?= true
182ifeq ($(WITH_EXFAT),true)
183TARGET_USES_EXFAT := true
184PRODUCT_PACKAGES += \
185 mount.exfat \
186 fsck.exfat \
187 mkfs.exfat
188endif
189
Chirayu Desai8636d672012-07-19 16:04:25 +0530190# Openssh
191PRODUCT_PACKAGES += \
192 scp \
193 sftp \
194 ssh \
195 sshd \
196 sshd_config \
197 ssh-keygen \
Chirayu Desai4bacf672012-08-19 17:30:04 +0530198 start-ssh
199
200# rsync
201PRODUCT_PACKAGES += \
202 rsync
Chirayu Desai8636d672012-07-19 16:04:25 +0530203
Michael Bestas7d5d16d2014-06-10 20:06:48 +0300204# Stagefright FFMPEG plugin
Steve Kondikb5ee3772016-09-06 03:06:35 -0700205PRODUCT_PACKAGES += \
206 libffmpeg_extractor \
207 libffmpeg_omx \
208 media_codecs_ffmpeg.xml
209
210PRODUCT_PROPERTY_OVERRIDES += \
211 media.sf.omx-plugin=libffmpeg_omx.so \
212 media.sf.extractor-plugin=libffmpeg_extractor.so
Steve Kondik7c968692015-07-08 09:53:12 -0700213
Joey Rizzoli73a39652016-11-23 21:19:00 +0100214# Storage manager
215PRODUCT_PROPERTY_OVERRIDES += \
216 ro.storage_manager.enabled=true
217
Zhao Wei Liewe6ba7452016-10-13 13:57:44 +0800218# Telephony
219PRODUCT_PACKAGES += \
220 telephony-ext
221
222PRODUCT_BOOT_JARS += \
223 telephony-ext
224
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100225# These packages are excluded from user builds
226ifneq ($(TARGET_BUILD_VARIANT),user)
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100227PRODUCT_PACKAGES += \
Steve Kondik275701b2013-11-06 12:41:34 -0800228 procmem \
Abhisek Devkota6af9acb2016-12-27 22:30:35 -0800229 procrank
230
231# Conditionally build in su
232ifeq ($(WITH_SU),true)
233PRODUCT_PACKAGES += \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100234 su
repo Shareef Ali4bcfc312014-12-29 17:52:04 -0600235endif
Abhisek Devkota6af9acb2016-12-27 22:30:35 -0800236endif
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100237
Ricardo Cerqueira15c9ef42016-03-11 14:09:52 +0000238DEVICE_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -0800239
Dan Pasanen69354102016-08-24 10:19:50 -0500240PRODUCT_VERSION_MAJOR = 14
Steve Kondik7d4f0f22016-10-25 20:35:15 -0700241PRODUCT_VERSION_MINOR = 1
Dan Pasanen69354102016-08-24 10:19:50 -0500242PRODUCT_VERSION_MAINTENANCE := 0
Adrian DC3e85bf72016-08-06 21:47:23 +0200243
Scott Mertza9950592016-08-05 12:24:19 -0700244ifeq ($(TARGET_VENDOR_SHOW_MAINTENANCE_VERSION),true)
Adrian DC3e85bf72016-08-06 21:47:23 +0200245 CM_VERSION_MAINTENANCE := $(PRODUCT_VERSION_MAINTENANCE)
Scott Mertza9950592016-08-05 12:24:19 -0700246else
Adrian DC3e85bf72016-08-06 21:47:23 +0200247 CM_VERSION_MAINTENANCE := 0
Scott Mertza9950592016-08-05 12:24:19 -0700248endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800249
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100250# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
251
252ifndef CM_BUILDTYPE
253 ifdef RELEASE_TYPE
254 # Starting with "CM_" is optional
255 RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
256 CM_BUILDTYPE := $(RELEASE_TYPE)
257 endif
Warren Togami2128e2f2012-05-06 19:49:33 -1000258endif
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100259
260# Filter out random types, so it'll reset to UNOFFICIAL
261ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
262 CM_BUILDTYPE :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000263endif
264
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100265ifdef CM_BUILDTYPE
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100266 ifneq ($(CM_BUILDTYPE), SNAPSHOT)
267 ifdef CM_EXTRAVERSION
268 # Force build type to EXPERIMENTAL
269 CM_BUILDTYPE := EXPERIMENTAL
270 # Remove leading dash from CM_EXTRAVERSION
271 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
272 # Add leading dash to CM_EXTRAVERSION
273 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
274 endif
275 else
276 ifndef CM_EXTRAVERSION
277 # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
278 CM_BUILDTYPE := EXPERIMENTAL
279 else
280 # Remove leading dash from CM_EXTRAVERSION
281 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
282 # Add leading dash to CM_EXTRAVERSION
283 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
284 endif
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100285 endif
286else
287 # If CM_BUILDTYPE is not defined, set to UNOFFICIAL
Warren Togami2128e2f2012-05-06 19:49:33 -1000288 CM_BUILDTYPE := UNOFFICIAL
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100289 CM_EXTRAVERSION :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000290endif
291
Matt Mowerf4168392013-12-13 11:04:14 -0600292ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
293 ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
Michael Bestas3bf9ba82013-12-18 00:22:58 +0200294 CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
Matt Mowerf4168392013-12-13 11:04:14 -0600295 endif
296endif
297
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100298ifeq ($(CM_BUILDTYPE), RELEASE)
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000299 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800300 LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000301 else
302 ifeq ($(TARGET_BUILD_VARIANT),user)
Adrian DC3e85bf72016-08-06 21:47:23 +0200303 ifeq ($(CM_VERSION_MAINTENANCE),0)
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800304 LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700305 else
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800306 LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700307 endif
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000308 else
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800309 LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000310 endif
311 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800312else
Adrian DC3e85bf72016-08-06 21:47:23 +0200313 ifeq ($(CM_VERSION_MAINTENANCE),0)
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800314 LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700315 else
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800316 LINEAGE_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 -0700317 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800318endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800319
320PRODUCT_PROPERTY_OVERRIDES += \
Zhao Wei Liew046484f2017-01-07 15:55:35 +0800321 ro.cm.version=$(LINEAGE_VERSION) \
322 ro.cm.releasetype=$(CM_BUILDTYPE) \
323 ro.modversion=$(LINEAGE_VERSION) \
324 ro.cmlegal.url=https://lineageos.org/legal
Ricardo Cerqueirad5422742012-11-13 10:42:11 +0000325
Tom Powelle4c8c822017-01-06 22:29:06 -0800326PRODUCT_EXTRA_RECOVERY_KEYS += \
Zhao Wei Liew046484f2017-01-07 15:55:35 +0800327 vendor/cm/build/target/product/security/lineage
Tom Powelle4c8c822017-01-06 22:29:06 -0800328
Ricardo Cerqueira178dbd62013-10-23 20:56:56 +0100329-include vendor/cm-priv/keys/keys.mk
330
Zhao Wei Liew321dde52017-01-01 15:24:38 +0800331CM_DISPLAY_VERSION := $(LINEAGE_VERSION)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000332
Brint E. Kriebelac948f52014-01-24 09:58:36 -0800333ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
334ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
Zhao Wei Liew046484f2017-01-07 15:55:35 +0800335 ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
336 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
337 ifneq ($(CM_EXTRAVERSION),)
338 # Remove leading dash from CM_EXTRAVERSION
339 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
340 TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
341 else
342 TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
343 endif
344 else
345 TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
346 endif
347 ifeq ($(CM_VERSION_MAINTENANCE),0)
348 CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
349 else
350 CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(CM_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
351 endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000352 endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000353endif
Ricardo Cerqueira74b4f9b2014-01-11 16:00:16 +0000354endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000355
356PRODUCT_PROPERTY_OVERRIDES += \
Zhao Wei Liew046484f2017-01-07 15:55:35 +0800357 ro.cm.display.version=$(CM_DISPLAY_VERSION)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000358
Brint E. Kriebela1e49122014-01-31 11:59:56 -0800359-include $(WORKSPACE)/build_env/image-auto-bits.mk
Steve Kondik960c4f42016-09-02 21:11:11 -0700360-include vendor/cm/config/partner_gms.mk
Koushik Dutta41fd0aa2013-12-07 22:04:17 -0800361-include vendor/cyngn/product.mk
Steve Kondikb9dd4002014-09-10 15:41:43 -0700362
Chris Sarbora39b9aa82014-12-17 14:41:28 -0800363$(call prepend-product-if-exists, vendor/extra/product.mk)