blob: 8422d5bdadf9bb6eceb71d99b7c1772c977d402b [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
Steve Kondike4f938c2014-02-04 22:59:01 -080066# Thank you, please drive thru!
67PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
68
Chirayu Desai88401db2013-03-20 16:17:17 +053069ifneq ($(TARGET_BUILD_VARIANT),eng)
Chirayu Desai59df3632013-02-15 21:16:39 +053070# Enable ADB authentication
71ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
Chirayu Desai88401db2013-03-20 16:17:17 +053072endif
Chirayu Desai59df3632013-02-15 21:16:39 +053073
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000074# Copy over the changelog to the device
75PRODUCT_COPY_FILES += \
76 vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
77
Warren Togamib1637c82012-03-03 22:37:42 -100078# Backup Tool
Steve Kondikbc68cf22013-10-06 22:41:52 -070079ifneq ($(WITH_GMS),true)
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000080PRODUCT_COPY_FILES += \
Tom Marshall65aff662014-12-12 11:56:04 -080081 vendor/cm/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
82 vendor/cm/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
Ricardo Cerqueira129989b2012-12-19 01:11:21 +000083 vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
84 vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist
Steve Kondikbc68cf22013-10-06 22:41:52 -070085endif
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +000086
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
Adam Fardendb2438b2012-03-07 14:34:38 +0100106# Bring in camera effects
fitsnugly407b3992012-01-14 18:50:25 -0500107PRODUCT_COPY_FILES += \
fitsnuglyc1c6ce22012-01-12 01:10:39 -0500108 vendor/cm/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
109 vendor/cm/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000110
111# Enable SIP+VoIP on all targets
112PRODUCT_COPY_FILES += \
Ricardo Cerqueira3ff9b6f2012-07-11 11:21:50 +0100113 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000114
sleeplessninja918a7ea2013-01-30 14:45:20 -0600115# Enable wireless Xbox 360 controller support
116PRODUCT_COPY_FILES += \
117 frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
118
Steve Kondike0c12da2012-03-25 17:21:32 -0700119# This is CM!
120PRODUCT_COPY_FILES += \
121 vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
122
Ricardo Cerqueira9f75d842012-05-04 10:15:56 +0100123# T-Mobile theme engine
124include vendor/cm/config/themes_common.mk
125
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000126# Required CM packages
127PRODUCT_PACKAGES += \
Steve Kondike0c297d2011-12-20 16:16:01 -0800128 Development \
Roman Birg52f92f02015-04-20 18:20:59 -0700129 BluetoothExt \
130 Profiles
Ricardo Cerqueirae1f37382011-11-27 19:56:54 +0000131
132# Optional CM packages
133PRODUCT_PACKAGES += \
Koushik Dutta8475d722013-07-21 09:34:19 -0700134 VoicePlus \
David Fergusonf474b122013-11-10 19:39:36 -0500135 Basic \
Ricardo Cerqueira117984f2015-01-04 01:55:24 +0000136 libemoji \
137 Terminal
Koushik Dutta8387c322011-11-26 17:31:19 -0800138
Steve Kondik04a49412011-12-14 14:02:19 -0800139# Custom CM packages
140PRODUCT_PACKAGES += \
Ricardo Cerqueira50dda4c2013-11-05 15:26:20 +0000141 Launcher3 \
Michael Bestas8deec442013-12-13 04:54:49 +0200142 Trebuchet \
Steve Kondikc4f6b972014-12-09 13:29:29 -0800143 AudioFX \
Ricardo Cerqueira3dc43542012-05-25 04:31:26 +0400144 CMWallpapers \
DvTonderf0074032012-12-30 13:37:40 -0500145 CMFileManager \
Steve Kondikfd3b0e52014-12-09 13:01:09 -0800146 Eleven \
Giulio Cerverab6f18ff2013-08-20 12:53:56 +0200147 LockClock \
Ricardo Cerqueira178ca722013-11-13 21:16:33 +0000148 CMUpdater \
Matt Garnese7b6b8c2014-06-16 19:03:23 -0700149 CMAccount \
cretin4559259752015-01-23 21:24:20 -0800150 CMHome \
cretin45694a1112015-01-24 08:54:42 -0800151 CyanogenSetupWizard
Steve Kondik04a49412011-12-14 14:02:19 -0800152
Adnan Begovicb53c5032015-04-27 16:29:56 -0700153# CM Platform Library
154PRODUCT_PACKAGES += \
Adnan Begovicaaac1322015-05-05 18:29:29 -0700155 org.cyanogenmod.platform-res \
Adnan Begovicb53c5032015-04-27 16:29:56 -0700156 org.cyanogenmod.platform \
157 org.cyanogenmod.platform.xml
Adnan Begovicb53c5032015-04-27 16:29:56 -0700158
Ricardo Cerqueira17809562013-08-08 00:49:44 +0100159# CM Hardware Abstraction Framework
160PRODUCT_PACKAGES += \
161 org.cyanogenmod.hardware \
162 org.cyanogenmod.hardware.xml
163
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200164# Extra tools in CM
165PRODUCT_PACKAGES += \
Tanguy Pruvotac602b42013-11-24 13:05:59 +0100166 libsepol \
Steve Kondik08980282012-07-05 01:20:47 -0700167 e2fsck \
168 mke2fs \
Steve Kondik1949eb52012-09-20 17:09:07 -0700169 tune2fs \
170 bash \
Steve Kondik1949eb52012-09-20 17:09:07 -0700171 nano \
172 htop \
173 powertop \
Steve Kondik2978e202013-07-06 04:07:56 -0700174 lsof \
175 mount.exfat \
176 fsck.exfat \
177 mkfs.exfat \
Dan Pasanenc1e852e2014-07-20 23:34:19 -0500178 mkfs.f2fs \
179 fsck.f2fs \
180 fibmap.f2fs \
Steve Kondik2978e202013-07-06 04:07:56 -0700181 ntfsfix \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100182 ntfs-3g \
183 gdbserver \
184 micro_bench \
185 oprofiled \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100186 sqlite3 \
187 strace
Sebastian Schmidt7d5de0c2012-04-15 11:39:25 +0200188
Chirayu Desai8636d672012-07-19 16:04:25 +0530189# Openssh
190PRODUCT_PACKAGES += \
191 scp \
192 sftp \
193 ssh \
194 sshd \
195 sshd_config \
196 ssh-keygen \
Chirayu Desai4bacf672012-08-19 17:30:04 +0530197 start-ssh
198
199# rsync
200PRODUCT_PACKAGES += \
201 rsync
Chirayu Desai8636d672012-07-19 16:04:25 +0530202
Michael Bestas7d5d16d2014-06-10 20:06:48 +0300203# Stagefright FFMPEG plugin
204PRODUCT_PACKAGES += \
Steve Kondik7c968692015-07-08 09:53:12 -0700205 libffmpeg_extractor \
206 libffmpeg_omx \
Steve Kondik59702502015-06-18 02:22:35 -0700207 media_codecs_ffmpeg.xml
Michael Bestas7d5d16d2014-06-10 20:06:48 +0300208
Steve Kondik7c968692015-07-08 09:53:12 -0700209PRODUCT_PROPERTY_OVERRIDES += \
210 media.sf.omx-plugin=libffmpeg_omx.so \
211 media.sf.extractor-plugin=libffmpeg_extractor.so
212
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100213# These packages are excluded from user builds
214ifneq ($(TARGET_BUILD_VARIANT),user)
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100215PRODUCT_PACKAGES += \
Steve Kondik275701b2013-11-06 12:41:34 -0800216 procmem \
217 procrank \
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100218 su
repo Shareef Ali4bcfc312014-12-29 17:52:04 -0600219endif
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100220
Ricardo Cerqueiraa21887e2013-09-25 17:13:25 +0100221PRODUCT_PROPERTY_OVERRIDES += \
222 persist.sys.root_access=0
223
Steve Kondik254db262011-12-20 15:02:07 -0800224PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common
Koushik Duttac6f7a492011-11-28 07:44:23 -0800225
Ricardo Cerqueira49a30e72014-11-05 18:22:50 +0000226PRODUCT_VERSION_MAJOR = 12
Steve Kondikb3be4f92015-03-23 12:11:18 -0700227PRODUCT_VERSION_MINOR = 1
Ricardo Cerqueira154d0292013-07-25 01:12:16 +0100228PRODUCT_VERSION_MAINTENANCE = 0-RC0
Koushik Duttac6f7a492011-11-28 07:44:23 -0800229
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100230# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
231
232ifndef CM_BUILDTYPE
233 ifdef RELEASE_TYPE
234 # Starting with "CM_" is optional
235 RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
236 CM_BUILDTYPE := $(RELEASE_TYPE)
237 endif
Warren Togami2128e2f2012-05-06 19:49:33 -1000238endif
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100239
240# Filter out random types, so it'll reset to UNOFFICIAL
241ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
242 CM_BUILDTYPE :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000243endif
244
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100245ifdef CM_BUILDTYPE
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100246 ifneq ($(CM_BUILDTYPE), SNAPSHOT)
247 ifdef CM_EXTRAVERSION
248 # Force build type to EXPERIMENTAL
249 CM_BUILDTYPE := EXPERIMENTAL
250 # Remove leading dash from CM_EXTRAVERSION
251 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
252 # Add leading dash to CM_EXTRAVERSION
253 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
254 endif
255 else
256 ifndef CM_EXTRAVERSION
257 # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
258 CM_BUILDTYPE := EXPERIMENTAL
259 else
260 # Remove leading dash from CM_EXTRAVERSION
261 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
262 # Add leading dash to CM_EXTRAVERSION
263 CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
264 endif
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100265 endif
266else
267 # If CM_BUILDTYPE is not defined, set to UNOFFICIAL
Warren Togami2128e2f2012-05-06 19:49:33 -1000268 CM_BUILDTYPE := UNOFFICIAL
Ricardo Cerqueirad8e76662012-06-08 11:08:15 +0100269 CM_EXTRAVERSION :=
Warren Togami2128e2f2012-05-06 19:49:33 -1000270endif
271
Matt Mowerf4168392013-12-13 11:04:14 -0600272ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
273 ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
Michael Bestas3bf9ba82013-12-18 00:22:58 +0200274 CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
Matt Mowerf4168392013-12-13 11:04:14 -0600275 endif
276endif
277
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100278ifeq ($(CM_BUILDTYPE), RELEASE)
Ricardo Cerqueiraae71f042013-11-11 00:55:51 +0000279 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
280 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
281 else
282 ifeq ($(TARGET_BUILD_VARIANT),user)
283 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
284 else
285 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
286 endif
287 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800288else
Chirayu Desaie6e61632012-12-04 19:16:48 +0530289 ifeq ($(PRODUCT_VERSION_MINOR),0)
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100290 CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
Chirayu Desaie6e61632012-12-04 19:16:48 +0530291 else
Ricardo Cerqueira554f3702013-09-24 17:58:56 +0100292 CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
Chirayu Desaie6e61632012-12-04 19:16:48 +0530293 endif
Koushik Duttac6f7a492011-11-28 07:44:23 -0800294endif
Koushik Duttad69b2922012-02-23 14:07:44 -0800295
296PRODUCT_PROPERTY_OVERRIDES += \
297 ro.cm.version=$(CM_VERSION) \
Brint E. Kriebelaf917582014-07-10 10:31:00 -0700298 ro.cm.releasetype=$(CM_BUILDTYPE) \
Abhisek Devkota381a3052013-12-10 04:35:08 -0800299 ro.modversion=$(CM_VERSION) \
NBruderman3b7f3d22015-03-04 12:08:33 +0200300 ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
Ricardo Cerqueirad5422742012-11-13 10:42:11 +0000301
Ricardo Cerqueira178dbd62013-10-23 20:56:56 +0100302-include vendor/cm-priv/keys/keys.mk
303
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000304CM_DISPLAY_VERSION := $(CM_VERSION)
305
Brint E. Kriebelac948f52014-01-24 09:58:36 -0800306ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
307ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000308 ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
309 ifndef TARGET_VENDOR_RELEASE_BUILD_ID
310 ifneq ($(CM_EXTRAVERSION),)
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000311 # Remove leading dash from CM_EXTRAVERSION
312 CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000313 TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
314 else
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000315 TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000316 endif
317 else
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000318 TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000319 endif
Ricardo Cerqueira17b25872014-02-16 17:15:07 +0000320 CM_DISPLAY_VERSION=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000321 endif
322endif
Ricardo Cerqueira74b4f9b2014-01-11 16:00:16 +0000323endif
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000324
Brint E. Kriebele0e8c272014-05-21 23:37:52 -0700325# by default, do not update the recovery with system updates
326PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
327
Adnan Begovicb2bd3212015-06-04 19:23:35 -0700328ifndef CM_PLATFORM_SDK_VERSION
329 # This is the canonical definition of the SDK version, which defines
330 # the set of APIs and functionality available in the platform. It
331 # is a single integer that increases monotonically as updates to
332 # the SDK are released. It should only be incremented when the APIs for
333 # the new release are frozen (so that developers don't write apps against
334 # intermediate builds).
Adnan Begovicbcb6d982015-07-13 16:16:55 -0700335 CM_PLATFORM_SDK_VERSION := 2
Adnan Begovicb2bd3212015-06-04 19:23:35 -0700336endif
337
Ricardo Cerqueira46161372014-01-09 10:25:31 +0000338PRODUCT_PROPERTY_OVERRIDES += \
339 ro.cm.display.version=$(CM_DISPLAY_VERSION)
340
Adnan Begovicb2bd3212015-06-04 19:23:35 -0700341# CyanogenMod Platform SDK Version
342PRODUCT_PROPERTY_OVERRIDES += \
343 ro.cm.build.version.plat.sdk=$(CM_PLATFORM_SDK_VERSION)
344
Brint E. Kriebela1e49122014-01-31 11:59:56 -0800345-include $(WORKSPACE)/build_env/image-auto-bits.mk
Koushik Dutta41fd0aa2013-12-07 22:04:17 -0800346
347-include vendor/cyngn/product.mk
Steve Kondikb9dd4002014-09-10 15:41:43 -0700348
Chris Sarbora39b9aa82014-12-17 14:41:28 -0800349$(call prepend-product-if-exists, vendor/extra/product.mk)