Ricardo Cerqueira | 6ed03ff | 2011-11-28 16:37:47 +0000 | [diff] [blame] | 1 | PRODUCT_BRAND ?= cyanogenmod |
| 2 | |
Koushik Dutta | 82d0fda | 2013-02-28 10:33:25 -0800 | [diff] [blame] | 3 | SUPERUSER_EMBEDDED := true |
Koushik Dutta | 9d15c7a | 2013-03-04 00:37:02 -0800 | [diff] [blame] | 4 | SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser |
Koushik Dutta | 82d0fda | 2013-02-28 10:33:25 -0800 | [diff] [blame] | 5 | |
Steve Kondik | ba1ca33 | 2012-08-21 02:18:40 -0700 | [diff] [blame] | 6 | ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) |
Steve Kondik | ba1ca33 | 2012-08-21 02:18:40 -0700 | [diff] [blame] | 7 | # determine the smaller dimension |
| 8 | TARGET_BOOTANIMATION_SIZE := $(shell \ |
| 9 | if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ |
| 10 | echo $(TARGET_SCREEN_WIDTH); \ |
| 11 | else \ |
| 12 | echo $(TARGET_SCREEN_HEIGHT); \ |
| 13 | fi ) |
| 14 | |
| 15 | # get a sorted list of the sizes |
| 16 | bootanimation_sizes := $(subst .zip,, $(shell ls vendor/cm/prebuilt/common/bootanimation)) |
| 17 | bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) |
| 18 | |
| 19 | # find the appropriate size and set |
| 20 | define check_and_set_bootanimation |
| 21 | $(eval TARGET_BOOTANIMATION_NAME := $(shell \ |
| 22 | if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then |
| 23 | if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ |
| 24 | echo $(1); \ |
| 25 | exit 0; \ |
| 26 | fi; |
| 27 | fi; |
| 28 | echo $(TARGET_BOOTANIMATION_NAME); )) |
| 29 | endef |
| 30 | $(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) |
| 31 | |
Steven Luo | 367e648 | 2014-01-30 12:51:04 -0800 | [diff] [blame] | 32 | ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true) |
| 33 | PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip |
| 34 | else |
William Roberts | 4256e66 | 2013-08-21 13:43:54 -0700 | [diff] [blame] | 35 | PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip |
Steve Kondik | a894575 | 2012-03-14 00:10:33 -0700 | [diff] [blame] | 36 | endif |
Steven Luo | 367e648 | 2014-01-30 12:51:04 -0800 | [diff] [blame] | 37 | endif |
Steve Kondik | a894575 | 2012-03-14 00:10:33 -0700 | [diff] [blame] | 38 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 39 | ifdef CM_NIGHTLY |
| 40 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 41 | ro.rommanager.developerid=cyanogenmodnightly |
| 42 | else |
| 43 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 44 | ro.rommanager.developerid=cyanogenmod |
| 45 | endif |
| 46 | |
| 47 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 48 | |
Steve Kondik | 5a27f63 | 2013-11-06 13:55:11 -0800 | [diff] [blame] | 49 | ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |
| 50 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 51 | ro.com.google.clientidbase=android-google |
| 52 | else |
| 53 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 54 | ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE) |
| 55 | endif |
| 56 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 57 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 58 | keyguard.no_require_sim=true \ |
| 59 | ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \ |
| 60 | ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \ |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 61 | ro.com.android.wifi-watchlist=GoogleGuest \ |
| 62 | ro.setupwizard.enterprise_mode=1 \ |
| 63 | ro.com.android.dateformat=MM-dd-yyyy \ |
| 64 | ro.com.android.dataroaming=false |
| 65 | |
Ricardo Cerqueira | f383563 | 2013-08-04 13:25:00 +0100 | [diff] [blame] | 66 | PRODUCT_PROPERTY_OVERRIDES += \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 67 | ro.build.selinux=1 |
Ricardo Cerqueira | f383563 | 2013-08-04 13:25:00 +0100 | [diff] [blame] | 68 | |
Steve Kondik | e4f938c | 2014-02-04 22:59:01 -0800 | [diff] [blame] | 69 | # Thank you, please drive thru! |
| 70 | PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0 |
| 71 | |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 72 | ifneq ($(TARGET_BUILD_VARIANT),eng) |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 73 | # Enable ADB authentication |
| 74 | ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Chirayu Desai | 88401db | 2013-03-20 16:17:17 +0530 | [diff] [blame] | 75 | endif |
Chirayu Desai | 59df363 | 2013-02-15 21:16:39 +0530 | [diff] [blame] | 76 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 77 | # Copy over the changelog to the device |
| 78 | PRODUCT_COPY_FILES += \ |
| 79 | vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt |
| 80 | |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 81 | # Backup Tool |
Steve Kondik | bc68cf2 | 2013-10-06 22:41:52 -0700 | [diff] [blame] | 82 | ifneq ($(WITH_GMS),true) |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 83 | PRODUCT_COPY_FILES += \ |
Warren Togami | b1637c8 | 2012-03-03 22:37:42 -1000 | [diff] [blame] | 84 | vendor/cm/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \ |
| 85 | vendor/cm/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions \ |
Ricardo Cerqueira | 129989b | 2012-12-19 01:11:21 +0000 | [diff] [blame] | 86 | vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \ |
| 87 | vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist |
Steve Kondik | bc68cf2 | 2013-10-06 22:41:52 -0700 | [diff] [blame] | 88 | endif |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 89 | |
Steve Kondik | 485527d | 2011-12-20 12:14:24 -0800 | [diff] [blame] | 90 | # init.d support |
| 91 | PRODUCT_COPY_FILES += \ |
| 92 | vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \ |
| 93 | vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit |
| 94 | |
James Sullins | eb7799c | 2012-04-05 20:18:18 -0500 | [diff] [blame] | 95 | # userinit support |
| 96 | PRODUCT_COPY_FILES += \ |
| 97 | vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit |
| 98 | |
Ricardo Cerqueira | 8f412cb | 2012-10-18 16:38:25 +0100 | [diff] [blame] | 99 | # CM-specific init file |
| 100 | PRODUCT_COPY_FILES += \ |
| 101 | vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc |
| 102 | |
Adam Farden | db2438b | 2012-03-07 14:34:38 +0100 | [diff] [blame] | 103 | # Bring in camera effects |
fitsnugly | 407b399 | 2012-01-14 18:50:25 -0500 | [diff] [blame] | 104 | PRODUCT_COPY_FILES += \ |
fitsnugly | c1c6ce2 | 2012-01-12 01:10:39 -0500 | [diff] [blame] | 105 | vendor/cm/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \ |
| 106 | vendor/cm/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 107 | |
| 108 | # Enable SIP+VoIP on all targets |
| 109 | PRODUCT_COPY_FILES += \ |
Ricardo Cerqueira | 3ff9b6f | 2012-07-11 11:21:50 +0100 | [diff] [blame] | 110 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 111 | |
sleeplessninja | 918a7ea | 2013-01-30 14:45:20 -0600 | [diff] [blame] | 112 | # Enable wireless Xbox 360 controller support |
| 113 | PRODUCT_COPY_FILES += \ |
| 114 | frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl |
| 115 | |
Steve Kondik | e0c12da | 2012-03-25 17:21:32 -0700 | [diff] [blame] | 116 | # This is CM! |
| 117 | PRODUCT_COPY_FILES += \ |
| 118 | vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml |
| 119 | |
Ricardo Cerqueira | 9f75d84 | 2012-05-04 10:15:56 +0100 | [diff] [blame] | 120 | # T-Mobile theme engine |
| 121 | include vendor/cm/config/themes_common.mk |
| 122 | |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 123 | # Required CM packages |
| 124 | PRODUCT_PACKAGES += \ |
Steve Kondik | e0c297d | 2011-12-20 16:16:01 -0800 | [diff] [blame] | 125 | Development \ |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 126 | LatinIME \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 127 | BluetoothExt |
Ricardo Cerqueira | e1f3738 | 2011-11-27 19:56:54 +0000 | [diff] [blame] | 128 | |
| 129 | # Optional CM packages |
| 130 | PRODUCT_PACKAGES += \ |
Koushik Dutta | 8475d72 | 2013-07-21 09:34:19 -0700 | [diff] [blame] | 131 | VoicePlus \ |
David Ferguson | f474b12 | 2013-11-10 19:39:36 -0500 | [diff] [blame] | 132 | Basic \ |
| 133 | libemoji |
Koushik Dutta | 8387c32 | 2011-11-26 17:31:19 -0800 | [diff] [blame] | 134 | |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 135 | # Custom CM packages |
| 136 | PRODUCT_PACKAGES += \ |
Ricardo Cerqueira | 50dda4c | 2013-11-05 15:26:20 +0000 | [diff] [blame] | 137 | Launcher3 \ |
Michael Bestas | 8deec44 | 2013-12-13 04:54:49 +0200 | [diff] [blame] | 138 | Trebuchet \ |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 139 | DSPManager \ |
Steve Kondik | a25e4e0 | 2011-12-14 22:27:07 -0800 | [diff] [blame] | 140 | libcyanogen-dsp \ |
Steve Kondik | fcc1610 | 2012-05-05 16:23:24 -0700 | [diff] [blame] | 141 | audio_effects.conf \ |
Ricardo Cerqueira | 3dc4354 | 2012-05-25 04:31:26 +0400 | [diff] [blame] | 142 | CMWallpapers \ |
Ricardo Cerqueira | 2526fef | 2012-09-29 17:17:45 +0100 | [diff] [blame] | 143 | Apollo \ |
DvTonder | f007403 | 2012-12-30 13:37:40 -0500 | [diff] [blame] | 144 | CMFileManager \ |
Giulio Cervera | b6f18ff | 2013-08-20 12:53:56 +0200 | [diff] [blame] | 145 | LockClock \ |
Ricardo Cerqueira | 178ca72 | 2013-11-13 21:16:33 +0000 | [diff] [blame] | 146 | CMUpdater \ |
| 147 | CMFota \ |
Pawit Pornkitprasan | a082e90 | 2013-12-13 18:17:08 +0700 | [diff] [blame] | 148 | CMAccount |
Steve Kondik | 04a4941 | 2011-12-14 14:02:19 -0800 | [diff] [blame] | 149 | |
Ricardo Cerqueira | 1780956 | 2013-08-08 00:49:44 +0100 | [diff] [blame] | 150 | # CM Hardware Abstraction Framework |
| 151 | PRODUCT_PACKAGES += \ |
| 152 | org.cyanogenmod.hardware \ |
| 153 | org.cyanogenmod.hardware.xml |
| 154 | |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 155 | # Extra tools in CM |
| 156 | PRODUCT_PACKAGES += \ |
Tanguy Pruvot | ac602b4 | 2013-11-24 13:05:59 +0100 | [diff] [blame] | 157 | libsepol \ |
Steve Kondik | 0898028 | 2012-07-05 01:20:47 -0700 | [diff] [blame] | 158 | openvpn \ |
| 159 | e2fsck \ |
| 160 | mke2fs \ |
Steve Kondik | 1949eb5 | 2012-09-20 17:09:07 -0700 | [diff] [blame] | 161 | tune2fs \ |
| 162 | bash \ |
Steve Kondik | 1949eb5 | 2012-09-20 17:09:07 -0700 | [diff] [blame] | 163 | nano \ |
| 164 | htop \ |
| 165 | powertop \ |
Steve Kondik | 2978e20 | 2013-07-06 04:07:56 -0700 | [diff] [blame] | 166 | lsof \ |
| 167 | mount.exfat \ |
| 168 | fsck.exfat \ |
| 169 | mkfs.exfat \ |
| 170 | ntfsfix \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 171 | ntfs-3g \ |
| 172 | gdbserver \ |
| 173 | micro_bench \ |
| 174 | oprofiled \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 175 | sqlite3 \ |
| 176 | strace |
Sebastian Schmidt | 7d5de0c | 2012-04-15 11:39:25 +0200 | [diff] [blame] | 177 | |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 178 | # Openssh |
| 179 | PRODUCT_PACKAGES += \ |
| 180 | scp \ |
| 181 | sftp \ |
| 182 | ssh \ |
| 183 | sshd \ |
| 184 | sshd_config \ |
| 185 | ssh-keygen \ |
Chirayu Desai | 4bacf67 | 2012-08-19 17:30:04 +0530 | [diff] [blame] | 186 | start-ssh |
| 187 | |
| 188 | # rsync |
| 189 | PRODUCT_PACKAGES += \ |
| 190 | rsync |
Chirayu Desai | 8636d67 | 2012-07-19 16:04:25 +0530 | [diff] [blame] | 191 | |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 192 | # These packages are excluded from user builds |
| 193 | ifneq ($(TARGET_BUILD_VARIANT),user) |
| 194 | |
| 195 | PRODUCT_PACKAGES += \ |
Steve Kondik | 275701b | 2013-11-06 12:41:34 -0800 | [diff] [blame] | 196 | procmem \ |
| 197 | procrank \ |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 198 | Superuser \ |
| 199 | su |
| 200 | |
| 201 | # Terminal Emulator |
| 202 | PRODUCT_COPY_FILES += \ |
| 203 | vendor/cm/proprietary/Term.apk:system/app/Term.apk \ |
| 204 | vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so:system/lib/libjackpal-androidterm4.so |
| 205 | |
| 206 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 207 | persist.sys.root_access=1 |
| 208 | else |
| 209 | |
Ricardo Cerqueira | a21887e | 2013-09-25 17:13:25 +0100 | [diff] [blame] | 210 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 211 | persist.sys.root_access=0 |
| 212 | |
| 213 | endif |
| 214 | |
Koushik Dutta | 45e6598 | 2013-08-12 15:41:14 -0700 | [diff] [blame] | 215 | # easy way to extend to add more packages |
| 216 | -include vendor/extra/product.mk |
| 217 | |
Steve Kondik | 254db26 | 2011-12-20 15:02:07 -0800 | [diff] [blame] | 218 | PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 219 | |
Ricardo Cerqueira | 50dda4c | 2013-11-05 15:26:20 +0000 | [diff] [blame] | 220 | PRODUCT_VERSION_MAJOR = 11 |
| 221 | PRODUCT_VERSION_MINOR = 0 |
Ricardo Cerqueira | 154d029 | 2013-07-25 01:12:16 +0100 | [diff] [blame] | 222 | PRODUCT_VERSION_MAINTENANCE = 0-RC0 |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 223 | |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 224 | # Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat |
| 225 | |
| 226 | ifndef CM_BUILDTYPE |
| 227 | ifdef RELEASE_TYPE |
| 228 | # Starting with "CM_" is optional |
| 229 | RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g') |
| 230 | CM_BUILDTYPE := $(RELEASE_TYPE) |
| 231 | endif |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 232 | endif |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 233 | |
| 234 | # Filter out random types, so it'll reset to UNOFFICIAL |
| 235 | ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),) |
| 236 | CM_BUILDTYPE := |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 237 | endif |
| 238 | |
Ricardo Cerqueira | d8e7666 | 2012-06-08 11:08:15 +0100 | [diff] [blame] | 239 | ifdef CM_BUILDTYPE |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 240 | ifneq ($(CM_BUILDTYPE), SNAPSHOT) |
| 241 | ifdef CM_EXTRAVERSION |
| 242 | # Force build type to EXPERIMENTAL |
| 243 | CM_BUILDTYPE := EXPERIMENTAL |
| 244 | # Remove leading dash from CM_EXTRAVERSION |
| 245 | CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//') |
| 246 | # Add leading dash to CM_EXTRAVERSION |
| 247 | CM_EXTRAVERSION := -$(CM_EXTRAVERSION) |
| 248 | endif |
| 249 | else |
| 250 | ifndef CM_EXTRAVERSION |
| 251 | # Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag |
| 252 | CM_BUILDTYPE := EXPERIMENTAL |
| 253 | else |
| 254 | # Remove leading dash from CM_EXTRAVERSION |
| 255 | CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//') |
| 256 | # Add leading dash to CM_EXTRAVERSION |
| 257 | CM_EXTRAVERSION := -$(CM_EXTRAVERSION) |
| 258 | endif |
Ricardo Cerqueira | d8e7666 | 2012-06-08 11:08:15 +0100 | [diff] [blame] | 259 | endif |
| 260 | else |
| 261 | # If CM_BUILDTYPE is not defined, set to UNOFFICIAL |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 262 | CM_BUILDTYPE := UNOFFICIAL |
Ricardo Cerqueira | d8e7666 | 2012-06-08 11:08:15 +0100 | [diff] [blame] | 263 | CM_EXTRAVERSION := |
Warren Togami | 2128e2f | 2012-05-06 19:49:33 -1000 | [diff] [blame] | 264 | endif |
| 265 | |
Matt Mower | f416839 | 2013-12-13 11:04:14 -0600 | [diff] [blame] | 266 | ifeq ($(CM_BUILDTYPE), UNOFFICIAL) |
| 267 | ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),) |
Michael Bestas | 3bf9ba8 | 2013-12-18 00:22:58 +0200 | [diff] [blame] | 268 | CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID) |
Matt Mower | f416839 | 2013-12-13 11:04:14 -0600 | [diff] [blame] | 269 | endif |
| 270 | endif |
| 271 | |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 272 | ifeq ($(CM_BUILDTYPE), RELEASE) |
Ricardo Cerqueira | ae71f04 | 2013-11-11 00:55:51 +0000 | [diff] [blame] | 273 | ifndef TARGET_VENDOR_RELEASE_BUILD_ID |
| 274 | CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD) |
| 275 | else |
| 276 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 277 | CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD) |
| 278 | else |
| 279 | CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD) |
| 280 | endif |
| 281 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 282 | else |
Chirayu Desai | e6e6163 | 2012-12-04 19:16:48 +0530 | [diff] [blame] | 283 | ifeq ($(PRODUCT_VERSION_MINOR),0) |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 284 | CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD) |
Chirayu Desai | e6e6163 | 2012-12-04 19:16:48 +0530 | [diff] [blame] | 285 | else |
Ricardo Cerqueira | 554f370 | 2013-09-24 17:58:56 +0100 | [diff] [blame] | 286 | CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD) |
Chirayu Desai | e6e6163 | 2012-12-04 19:16:48 +0530 | [diff] [blame] | 287 | endif |
Koushik Dutta | c6f7a49 | 2011-11-28 07:44:23 -0800 | [diff] [blame] | 288 | endif |
Koushik Dutta | d69b292 | 2012-02-23 14:07:44 -0800 | [diff] [blame] | 289 | |
| 290 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 291 | ro.cm.version=$(CM_VERSION) \ |
Abhisek Devkota | 381a305 | 2013-12-10 04:35:08 -0800 | [diff] [blame] | 292 | ro.modversion=$(CM_VERSION) \ |
| 293 | ro.cmlegal.url=http://www.cyanogenmod.org/docs/privacy |
Ricardo Cerqueira | d542274 | 2012-11-13 10:42:11 +0000 | [diff] [blame] | 294 | |
Ricardo Cerqueira | 178dbd6 | 2013-10-23 20:56:56 +0100 | [diff] [blame] | 295 | -include vendor/cm-priv/keys/keys.mk |
| 296 | |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 297 | CM_DISPLAY_VERSION := $(CM_VERSION) |
| 298 | |
Brint E. Kriebel | ac948f5 | 2014-01-24 09:58:36 -0800 | [diff] [blame] | 299 | ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),) |
| 300 | ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 301 | ifneq ($(CM_BUILDTYPE), UNOFFICIAL) |
| 302 | ifndef TARGET_VENDOR_RELEASE_BUILD_ID |
| 303 | ifneq ($(CM_EXTRAVERSION),) |
Ricardo Cerqueira | 17b2587 | 2014-02-16 17:15:07 +0000 | [diff] [blame] | 304 | # Remove leading dash from CM_EXTRAVERSION |
| 305 | CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//') |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 306 | TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION) |
| 307 | else |
Ricardo Cerqueira | 17b2587 | 2014-02-16 17:15:07 +0000 | [diff] [blame] | 308 | TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 309 | endif |
| 310 | else |
Ricardo Cerqueira | 17b2587 | 2014-02-16 17:15:07 +0000 | [diff] [blame] | 311 | TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 312 | endif |
Ricardo Cerqueira | 17b2587 | 2014-02-16 17:15:07 +0000 | [diff] [blame] | 313 | CM_DISPLAY_VERSION=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID) |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 314 | endif |
| 315 | endif |
Ricardo Cerqueira | 74b4f9b | 2014-01-11 16:00:16 +0000 | [diff] [blame] | 316 | endif |
Ricardo Cerqueira | 4616137 | 2014-01-09 10:25:31 +0000 | [diff] [blame] | 317 | |
| 318 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 319 | ro.cm.display.version=$(CM_DISPLAY_VERSION) |
| 320 | |
Brint E. Kriebel | a1e4912 | 2014-01-31 11:59:56 -0800 | [diff] [blame] | 321 | -include $(WORKSPACE)/build_env/image-auto-bits.mk |
Koushik Dutta | 41fd0aa | 2013-12-07 22:04:17 -0800 | [diff] [blame] | 322 | |
| 323 | -include vendor/cyngn/product.mk |