blob: 297ae1cf2f58948ea2dadb6cc8f01df380a90f15 [file] [log] [blame]
Ricardo Cerqueira6ed03ff2011-11-28 16:37:47 +00001PRODUCT_BRAND ?= cyanogenmod
2
Steve Kondikba1ca332012-08-21 02:18:40 -07003ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
Steve Kondikba1ca332012-08-21 02:18:40 -07004# 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 vendor/cm/prebuilt/common/bootanimation))
14bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
15
16# find the appropriate size and set
17define check_and_set_bootanimation
18$(eval TARGET_BOOTANIMATION_NAME := $(shell \
19 if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
20 if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
21 echo $(1); \
22 exit 0; \
23 fi;
24 fi;
25 echo $(TARGET_BOOTANIMATION_NAME); ))
26endef
27$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
28
Steven Luo367e6482014-01-30 12:51:04 -080029ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
30PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
31else
William Roberts4256e662013-08-21 13:43:54 -070032PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
Steve Kondika8945752012-03-14 00:10:33 -070033endif
Steven Luo367e6482014-01-30 12:51:04 -080034endif
Steve Kondika8945752012-03-14 00:10:33 -070035
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000036ifdef CM_NIGHTLY
37PRODUCT_PROPERTY_OVERRIDES += \
38 ro.rommanager.developerid=cyanogenmodnightly
39else
40PRODUCT_PROPERTY_OVERRIDES += \
41 ro.rommanager.developerid=cyanogenmod
42endif
43
44PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
45
Steve Kondik5a27f632013-11-06 13:55:11 -080046ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
47PRODUCT_PROPERTY_OVERRIDES += \
48 ro.com.google.clientidbase=android-google
49else
50PRODUCT_PROPERTY_OVERRIDES += \
51 ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
52endif
53
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000054PRODUCT_PROPERTY_OVERRIDES += \
55 keyguard.no_require_sim=true \
56 ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
57 ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000058 ro.com.android.wifi-watchlist=GoogleGuest \
59 ro.setupwizard.enterprise_mode=1 \
60 ro.com.android.dateformat=MM-dd-yyyy \
61 ro.com.android.dataroaming=false
62
Ricardo Cerqueiraf3835632013-08-04 13:25:00 +010063PRODUCT_PROPERTY_OVERRIDES += \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +010064 ro.build.selinux=1
Ricardo Cerqueiraf3835632013-08-04 13:25:00 +010065
Ricardo Cerqueiraed634842015-09-12 00:13:01 +010066ifneq ($(TARGET_BUILD_VARIANT),user)
Steve Kondike4f938c2014-02-04 22:59:01 -080067# Thank you, please drive thru!
68PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
Ricardo Cerqueiraed634842015-09-12 00:13:01 +010069endif
Steve Kondike4f938c2014-02-04 22:59:01 -080070
Chirayu Desai88401db2013-03-20 16:17:17 +053071ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai59df3632013-02-15 21:16:39 +053072# Enable ADB authentication
73ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
Chirayu Desai88401db2013-03-20 16:17:17 +053074endif
Chirayu Desai59df3632013-02-15 21:16:39 +053075
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000076# Copy over the changelog to the device
77PRODUCT_COPY_FILES += \
78 vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
79
Warren Togamib1637c82012-03-03 22:37:42 -100080# Backup Tool
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000081PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080082 vendor/cm/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
83 vendor/cm/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
Ricardo Cerqueira129989b2012-12-19 01:11:21 +000084 vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
85 vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000086
Abhisek Devkotaf1c5ab82016-07-06 15:18:29 -070087# Backup Services whitelist
88PRODUCT_COPY_FILES += \
89 vendor/cm/config/permissions/backup.xml:system/etc/sysconfig/backup.xml
90
Ricardo Cerqueiraaff5e542014-05-09 22:24:12 +010091# Signature compatibility validation
92PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080093 vendor/cm/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
Ricardo Cerqueiraaff5e542014-05-09 22:24:12 +010094
Steve Kondik485527d2011-12-20 12:14:24 -080095# init.d support
96PRODUCT_COPY_FILES += \
97 vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
98 vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
99
Ricardo Cerqueirafd6bfe72015-03-16 12:22:11 +0000100ifneq ($(TARGET_BUILD_VARIANT),user)
James Sullinseb7799c2012-04-05 20:18:18 -0500101# userinit support
102PRODUCT_COPY_FILES += \
103 vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
Ricardo Cerqueirafd6bfe72015-03-16 12:22:11 +0000104endif
James Sullinseb7799c2012-04-05 20:18:18 -0500105
Ricardo Cerqueira8f412cb2012-10-18 16:38:25 +0100106# CM-specific init file
107PRODUCT_COPY_FILES += \
108 vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc
109
herriojr5d2c9982015-10-01 11:20:26 -0700110# Copy over added mimetype supported in libcore.net.MimeUtils
111PRODUCT_COPY_FILES += \
112 vendor/cm/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
113
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000114# Enable SIP+VoIP on all targets
115PRODUCT_COPY_FILES += \
Ricardo Cerqueira3ff9b6f2012-07-11 11:21:50 +0100116 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000117
sleeplessninja918a7ea2013-01-30 14:45:20 -0600118# Enable wireless Xbox 360 controller support
119PRODUCT_COPY_FILES += \
120 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
121
Steve Kondike0c12da2012-03-25 17:21:32 -0700122# This is CM!
123PRODUCT_COPY_FILES += \
124 vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
125
Michael Bestasc37028d2015-11-03 21:39:04 +0200126# Theme engine
Ricardo Cerqueira9f75d842012-05-04 10:15:56 +0100127include vendor/cm/config/themes_common.mk
128
Adnan Begovicf3610f52016-03-15 14:17:47 -0700129# CMSDK
130include vendor/cm/config/cmsdk_common.mk
131
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000132# Required CM packages
133PRODUCT_PACKAGES += \
Roman Birgcdb0ea62016-07-25 08:45:42 -0700134 CMAudioService \
Steve Kondike0c297d2011-12-20 16:16:01 -0800135 Development \
Roman Birg52f92f02015-04-20 18:20:59 -0700136 BluetoothExt \
d34d851457a2016-07-20 13:19:32 -0700137 Profiles \
138 ThemeManagerService
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000139
140# Optional CM packages
141PRODUCT_PACKAGES += \
Ricardo Cerqueira117984f2015-01-04 01:55:24 +0000142 libemoji \
143 Terminal
Koushik Dutta8387c322011-11-26 17:31:19 -0800144
Steve Kondikdac37852015-12-01 13:31:45 -0800145# Include librsjni explicitly to workaround GMS issue
146PRODUCT_PACKAGES += \
147 librsjni
148
Steve Kondik04a49412011-12-14 14:02:19 -0800149# Custom CM packages
150PRODUCT_PACKAGES += \
Ricardo Cerqueira50dda4c2013-11-05 15:26:20 +0000151 Launcher3 \
Michael Bestas8deec442013-12-13 04:54:49 +0200152 Trebuchet \
Steve Kondikc4f6b972014-12-09 13:29:29 -0800153 AudioFX \
Ricardo Cerqueira3dc43542012-05-25 04:31:26 +0400154 CMWallpapers \
DvTonderf0074032012-12-30 13:37:40 -0500155 CMFileManager \
Steve Kondikfd3b0e52014-12-09 13:01:09 -0800156 Eleven \
Giulio Cerverab6f18ff2013-08-20 12:53:56 +0200157 LockClock \
Ricardo Cerqueira178ca722013-11-13 21:16:33 +0000158 CMUpdater \
Michael Bestas344e4482015-09-26 00:58:10 +0300159 CyanogenSetupWizard \
Arne Coucheron3ae1edd2015-11-05 02:35:12 +0100160 CMSettingsProvider \
d34d2cf159c2016-03-08 09:12:04 -0800161 ExactCalculator \
Luis Vidal6d61d302016-03-21 10:18:29 -0700162 LiveLockScreenService \
luca020400f9dccd72016-05-10 20:04:18 +0200163 WeatherProvider \
d34d7454cd92016-06-07 15:39:13 -0700164 DataUsageProvider \
165 WallpaperPicker
Steve Kondik04a49412011-12-14 14:02:19 -0800166
Abhisek Devkotacf03e162016-03-14 12:45:43 -0800167# Exchange support
168PRODUCT_PACKAGES += \
169 Exchange2
170
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200171# Extra tools in CM
172PRODUCT_PACKAGES += \
Tanguy Pruvotac602b42013-11-24 13:05:59 +0100173 libsepol \
Steve Kondik08980282012-07-05 01:20:47 -0700174 mke2fs \
Steve Kondik1949eb52012-09-20 17:09:07 -0700175 tune2fs \
Steve Kondik1949eb52012-09-20 17:09:07 -0700176 nano \
177 htop \
Steve Kondik49852a72015-11-10 15:05:18 +0100178 mkfs.ntfs \
179 fsck.ntfs \
180 mount.ntfs \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100181 gdbserver \
182 micro_bench \
183 oprofiled \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100184 sqlite3 \
Steve Kondik243e70b2015-11-14 21:04:48 +0100185 strace \
186 pigz
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200187
Scott Mertz2911a0e2015-11-09 11:35:41 -0800188WITH_EXFAT ?= true
189ifeq ($(WITH_EXFAT),true)
190TARGET_USES_EXFAT := true
191PRODUCT_PACKAGES += \
192 mount.exfat \
193 fsck.exfat \
194 mkfs.exfat
195endif
196
Chirayu Desai8636d672012-07-19 16:04:25 +0530197# Openssh
198PRODUCT_PACKAGES += \
199 scp \
200 sftp \
201 ssh \
202 sshd \
203 sshd_config \
204 ssh-keygen \
Chirayu Desai4bacf672012-08-19 17:30:04 +0530205 start-ssh
206
207# rsync
208PRODUCT_PACKAGES += \
209 rsync
Chirayu Desai8636d672012-07-19 16:04:25 +0530210
Michael Bestas7d5d16d2014-06-10 20:06:48 +0300211# Stagefright FFMPEG plugin
212PRODUCT_PACKAGES += \
Steve Kondik7c968692015-07-08 09:53:12 -0700213 libffmpeg_extractor \
214 libffmpeg_omx \
Steve Kondik59702502015-06-18 02:22:35 -0700215 media_codecs_ffmpeg.xml
Michael Bestas7d5d16d2014-06-10 20:06:48 +0300216
Steve Kondik7c968692015-07-08 09:53:12 -0700217PRODUCT_PROPERTY_OVERRIDES += \
218 media.sf.omx-plugin=libffmpeg_omx.so \
219 media.sf.extractor-plugin=libffmpeg_extractor.so
220
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100221# These packages are excluded from user builds
222ifneq ($(TARGET_BUILD_VARIANT),user)
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100223PRODUCT_PACKAGES += \
Steve Kondik275701b2013-11-06 12:41:34 -0800224 procmem \
225 procrank \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100226 su
repo Shareef Ali4bcfc312014-12-29 17:52:04 -0600227endif
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100228
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100229PRODUCT_PROPERTY_OVERRIDES += \
230 persist.sys.root_access=0
231
Ricardo Cerqueira15c9ef42016-03-11 14:09:52 +0000232DEVICE_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -0800233
Michael Bestaseb83dba2015-10-07 18:38:03 +0300234PRODUCT_VERSION_MAJOR = 13
235PRODUCT_VERSION_MINOR = 0
Scott Mertza9950592016-08-05 12:24:19 -0700236ifeq ($(TARGET_VENDOR_SHOW_MAINTENANCE_VERSION),true)
237 PRODUCT_VERSION_MAINTENANCE := 1
238else
239 # 0 is ignored
240 PRODUCT_VERSION_MAINTENANCE := 0
241endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800242
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100243# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
244
245ifndef CM_BUILDTYPE
246 ifdef RELEASE_TYPE
247 # Starting with "CM_" is optional
248 RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
249 CM_BUILDTYPE := $(RELEASE_TYPE)
250 endif
Warren Togami2128e2f2012-05-06 19:49:33 -1000251endif
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100252
253# Filter out random types, so it'll reset to UNOFFICIAL
254ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
255 CM_BUILDTYPE :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000256endif
257
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100258ifdef CM_BUILDTYPE
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100259 ifneq ($(CM_BUILDTYPE), SNAPSHOT)
260 ifdef CM_EXTRAVERSION
261 # Force build type to EXPERIMENTAL
262 CM_BUILDTYPE := EXPERIMENTAL
263 # Remove leading dash from CM_EXTRAVERSION
264 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
265 # Add leading dash to CM_EXTRAVERSION
266 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
267 endif
268 else
269 ifndef CM_EXTRAVERSION
270 # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
271 CM_BUILDTYPE := EXPERIMENTAL
272 else
273 # Remove leading dash from CM_EXTRAVERSION
274 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
275 # Add leading dash to CM_EXTRAVERSION
276 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
277 endif
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100278 endif
279else
280 # If CM_BUILDTYPE is not defined, set to UNOFFICIAL
Warren Togami2128e2f2012-05-06 19:49:33 -1000281 CM_BUILDTYPE := UNOFFICIAL
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100282 CM_EXTRAVERSION :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000283endif
284
Matt Mowerf4168392013-12-13 11:04:14 -0600285ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
286 ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
Michael Bestas3bf9ba82013-12-18 00:22:58 +0200287 CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
Matt Mowerf4168392013-12-13 11:04:14 -0600288 endif
289endif
290
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100291ifeq ($(CM_BUILDTYPE), RELEASE)
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000292 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
293 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
294 else
295 ifeq ($(TARGET_BUILD_VARIANT),user)
Jessica Wagantall79204e62016-07-14 15:42:08 -0700296 ifeq ($(PRODUCT_VERSION_MAINTENANCE),0)
297 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
298 else
299 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
300 endif
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000301 else
302 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
303 endif
304 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800305else
Jessica Wagantall79204e62016-07-14 15:42:08 -0700306 ifeq ($(PRODUCT_VERSION_MAINTENANCE),0)
307 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
308 else
309 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
310 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800311endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800312
313PRODUCT_PROPERTY_OVERRIDES += \
314 ro.cm.version=$(CM_VERSION) \
Brint E. Kriebelaf917582014-07-10 10:31:00 -0700315 ro.cm.releasetype=$(CM_BUILDTYPE) \
Abhisek Devkota381a3052013-12-10 04:35:08 -0800316 ro.modversion=$(CM_VERSION) \
NBruderman3b7f3d22015-03-04 12:08:33 +0200317 ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
Ricardo Cerqueirad5422742012-11-13 10:42:11 +0000318
Ricardo Cerqueira178dbd62013-10-23 20:56:56 +0100319-include vendor/cm-priv/keys/keys.mk
320
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000321CM_DISPLAY_VERSION := $(CM_VERSION)
322
Brint E. Kriebelac948f52014-01-24 09:58:36 -0800323ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
324ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000325 ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
326 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
327 ifneq ($(CM_EXTRAVERSION),)
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000328 # Remove leading dash from CM_EXTRAVERSION
329 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000330 TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
331 else
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000332 TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000333 endif
334 else
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000335 TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000336 endif
Jessica Wagantall79204e62016-07-14 15:42:08 -0700337 ifeq ($(PRODUCT_VERSION_MAINTENANCE),0)
338 CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
339 else
340 CM_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
341 endif
342endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000343endif
Ricardo Cerqueira74b4f9b2014-01-11 16:00:16 +0000344endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000345
346PRODUCT_PROPERTY_OVERRIDES += \
347 ro.cm.display.version=$(CM_DISPLAY_VERSION)
348
Brint E. Kriebela1e49122014-01-31 11:59:56 -0800349-include $(WORKSPACE)/build_env/image-auto-bits.mk
Koushik Dutta41fd0aa2013-12-07 22:04:17 -0800350
351-include vendor/cyngn/product.mk
Steve Kondikb9dd4002014-09-10 15:41:43 -0700352
Chris Sarbora39b9aa82014-12-17 14:41:28 -0800353$(call prepend-product-if-exists, vendor/extra/product.mk)