2011-11-28 17:37:47 +01:00
|
|
|
PRODUCT_BRAND ?= cyanogenmod
|
|
|
|
|
2012-08-21 11:18:40 +02:00
|
|
|
ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space))
|
|
|
|
# determine the smaller dimension
|
|
|
|
TARGET_BOOTANIMATION_SIZE := $(shell \
|
|
|
|
if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \
|
|
|
|
echo $(TARGET_SCREEN_WIDTH); \
|
|
|
|
else \
|
|
|
|
echo $(TARGET_SCREEN_HEIGHT); \
|
|
|
|
fi )
|
|
|
|
|
|
|
|
# get a sorted list of the sizes
|
|
|
|
bootanimation_sizes := $(subst .zip,, $(shell ls vendor/cm/prebuilt/common/bootanimation))
|
|
|
|
bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn)
|
|
|
|
|
|
|
|
# find the appropriate size and set
|
|
|
|
define check_and_set_bootanimation
|
|
|
|
$(eval TARGET_BOOTANIMATION_NAME := $(shell \
|
|
|
|
if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then
|
|
|
|
if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \
|
|
|
|
echo $(1); \
|
|
|
|
exit 0; \
|
|
|
|
fi;
|
|
|
|
fi;
|
|
|
|
echo $(TARGET_BOOTANIMATION_NAME); ))
|
|
|
|
endef
|
|
|
|
$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size)))
|
|
|
|
|
2014-01-30 21:51:04 +01:00
|
|
|
ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true)
|
|
|
|
PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip
|
|
|
|
else
|
2013-08-21 22:43:54 +02:00
|
|
|
PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip
|
2012-03-14 08:10:33 +01:00
|
|
|
endif
|
2014-01-30 21:51:04 +01:00
|
|
|
endif
|
2012-03-14 08:10:33 +01:00
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
ifdef CM_NIGHTLY
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.rommanager.developerid=cyanogenmodnightly
|
|
|
|
else
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.rommanager.developerid=cyanogenmod
|
|
|
|
endif
|
|
|
|
|
|
|
|
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
|
|
|
|
|
2013-11-06 22:55:11 +01:00
|
|
|
ifeq ($(PRODUCT_GMS_CLIENTID_BASE),)
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.com.google.clientidbase=android-google
|
|
|
|
else
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.com.google.clientidbase=$(PRODUCT_GMS_CLIENTID_BASE)
|
|
|
|
endif
|
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
keyguard.no_require_sim=true \
|
|
|
|
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
|
|
|
|
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
|
|
|
|
ro.com.android.wifi-watchlist=GoogleGuest \
|
|
|
|
ro.setupwizard.enterprise_mode=1 \
|
|
|
|
ro.com.android.dateformat=MM-dd-yyyy \
|
|
|
|
ro.com.android.dataroaming=false
|
|
|
|
|
2013-08-04 14:25:00 +02:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
2013-09-25 18:13:25 +02:00
|
|
|
ro.build.selinux=1
|
2013-08-04 14:25:00 +02:00
|
|
|
|
2015-09-12 01:13:01 +02:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
2014-02-05 07:59:01 +01:00
|
|
|
# Thank you, please drive thru!
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
|
2015-09-12 01:13:01 +02:00
|
|
|
endif
|
2014-02-05 07:59:01 +01:00
|
|
|
|
2013-03-20 11:47:17 +01:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
2013-02-15 16:46:39 +01:00
|
|
|
# Enable ADB authentication
|
|
|
|
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
|
2013-03-20 11:47:17 +01:00
|
|
|
endif
|
2013-02-15 16:46:39 +01:00
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
# Copy over the changelog to the device
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
|
|
|
|
|
2012-03-04 09:37:42 +01:00
|
|
|
# Backup Tool
|
2013-10-07 07:41:52 +02:00
|
|
|
ifneq ($(WITH_GMS),true)
|
2011-11-27 20:56:54 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
2014-12-12 20:56:04 +01:00
|
|
|
vendor/cm/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
|
|
|
|
vendor/cm/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
|
2012-12-19 02:11:21 +01:00
|
|
|
vendor/cm/prebuilt/common/bin/50-cm.sh:system/addon.d/50-cm.sh \
|
|
|
|
vendor/cm/prebuilt/common/bin/blacklist:system/addon.d/blacklist
|
2013-10-07 07:41:52 +02:00
|
|
|
endif
|
2011-11-27 20:56:54 +01:00
|
|
|
|
2014-05-09 23:24:12 +02:00
|
|
|
# Signature compatibility validation
|
|
|
|
PRODUCT_COPY_FILES += \
|
2014-12-12 20:56:04 +01:00
|
|
|
vendor/cm/prebuilt/common/bin/otasigcheck.sh:install/bin/otasigcheck.sh
|
2014-05-09 23:24:12 +02:00
|
|
|
|
2011-12-20 21:14:24 +01:00
|
|
|
# init.d support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
|
|
|
|
vendor/cm/prebuilt/common/bin/sysinit:system/bin/sysinit
|
|
|
|
|
2015-03-16 13:22:11 +01:00
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
2012-04-06 03:18:18 +02:00
|
|
|
# userinit support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
|
2015-03-16 13:22:11 +01:00
|
|
|
endif
|
2012-04-06 03:18:18 +02:00
|
|
|
|
2012-10-18 17:38:25 +02:00
|
|
|
# CM-specific init file
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/etc/init.local.rc:root/init.cm.rc
|
|
|
|
|
2015-10-01 20:20:26 +02:00
|
|
|
# Copy over added mimetype supported in libcore.net.MimeUtils
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/prebuilt/common/lib/content-types.properties:system/lib/content-types.properties
|
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
# Enable SIP+VoIP on all targets
|
|
|
|
PRODUCT_COPY_FILES += \
|
2012-07-11 12:21:50 +02:00
|
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
|
2011-11-27 20:56:54 +01:00
|
|
|
|
2013-01-30 21:45:20 +01:00
|
|
|
# Enable wireless Xbox 360 controller support
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
|
|
|
|
|
2012-03-26 02:21:32 +02:00
|
|
|
# This is CM!
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
vendor/cm/config/permissions/com.cyanogenmod.android.xml:system/etc/permissions/com.cyanogenmod.android.xml
|
|
|
|
|
2015-11-03 20:39:04 +01:00
|
|
|
# Theme engine
|
2012-05-04 11:15:56 +02:00
|
|
|
include vendor/cm/config/themes_common.mk
|
|
|
|
|
2011-11-27 20:56:54 +01:00
|
|
|
# Required CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2011-12-21 01:16:01 +01:00
|
|
|
Development \
|
2015-04-21 03:20:59 +02:00
|
|
|
BluetoothExt \
|
|
|
|
Profiles
|
2011-11-27 20:56:54 +01:00
|
|
|
|
|
|
|
# Optional CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-01-04 02:55:24 +01:00
|
|
|
libemoji \
|
|
|
|
Terminal
|
2011-11-27 02:31:19 +01:00
|
|
|
|
2011-12-14 23:02:19 +01:00
|
|
|
# Custom CM packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2013-11-05 16:26:20 +01:00
|
|
|
Launcher3 \
|
2013-12-13 03:54:49 +01:00
|
|
|
Trebuchet \
|
2014-12-09 22:29:29 +01:00
|
|
|
AudioFX \
|
2012-05-25 02:31:26 +02:00
|
|
|
CMWallpapers \
|
2012-12-30 19:37:40 +01:00
|
|
|
CMFileManager \
|
2014-12-09 22:01:09 +01:00
|
|
|
Eleven \
|
2013-08-20 12:53:56 +02:00
|
|
|
LockClock \
|
2013-11-13 22:16:33 +01:00
|
|
|
CMUpdater \
|
2014-06-17 04:03:23 +02:00
|
|
|
CMAccount \
|
2015-09-25 23:58:10 +02:00
|
|
|
CyanogenSetupWizard \
|
2015-11-05 02:35:12 +01:00
|
|
|
CMSettingsProvider \
|
|
|
|
ExactCalculator
|
2011-12-14 23:02:19 +01:00
|
|
|
|
2015-04-28 01:29:56 +02:00
|
|
|
# CM Platform Library
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-05-06 03:29:29 +02:00
|
|
|
org.cyanogenmod.platform-res \
|
2015-04-28 01:29:56 +02:00
|
|
|
org.cyanogenmod.platform \
|
|
|
|
org.cyanogenmod.platform.xml
|
|
|
|
|
2013-08-08 01:49:44 +02:00
|
|
|
# CM Hardware Abstraction Framework
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
org.cyanogenmod.hardware \
|
|
|
|
org.cyanogenmod.hardware.xml
|
|
|
|
|
2012-04-15 11:39:25 +02:00
|
|
|
# Extra tools in CM
|
|
|
|
PRODUCT_PACKAGES += \
|
2013-11-24 13:05:59 +01:00
|
|
|
libsepol \
|
2012-07-05 10:20:47 +02:00
|
|
|
e2fsck \
|
|
|
|
mke2fs \
|
2012-09-21 02:09:07 +02:00
|
|
|
tune2fs \
|
|
|
|
bash \
|
|
|
|
nano \
|
|
|
|
htop \
|
|
|
|
powertop \
|
2013-07-06 13:07:56 +02:00
|
|
|
lsof \
|
2014-07-21 06:34:19 +02:00
|
|
|
mkfs.f2fs \
|
|
|
|
fsck.f2fs \
|
|
|
|
fibmap.f2fs \
|
2015-11-10 15:05:18 +01:00
|
|
|
mkfs.ntfs \
|
|
|
|
fsck.ntfs \
|
|
|
|
mount.ntfs \
|
2013-09-25 18:13:25 +02:00
|
|
|
gdbserver \
|
|
|
|
micro_bench \
|
|
|
|
oprofiled \
|
|
|
|
sqlite3 \
|
|
|
|
strace
|
2012-04-15 11:39:25 +02:00
|
|
|
|
2015-11-09 20:35:41 +01:00
|
|
|
WITH_EXFAT ?= true
|
|
|
|
ifeq ($(WITH_EXFAT),true)
|
|
|
|
TARGET_USES_EXFAT := true
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
mount.exfat \
|
|
|
|
fsck.exfat \
|
|
|
|
mkfs.exfat
|
|
|
|
endif
|
|
|
|
|
2012-07-19 12:34:25 +02:00
|
|
|
# Openssh
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
scp \
|
|
|
|
sftp \
|
|
|
|
ssh \
|
|
|
|
sshd \
|
|
|
|
sshd_config \
|
|
|
|
ssh-keygen \
|
2012-08-19 14:00:04 +02:00
|
|
|
start-ssh
|
|
|
|
|
|
|
|
# rsync
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
rsync
|
2012-07-19 12:34:25 +02:00
|
|
|
|
2014-06-10 19:06:48 +02:00
|
|
|
# Stagefright FFMPEG plugin
|
|
|
|
PRODUCT_PACKAGES += \
|
2015-07-08 18:53:12 +02:00
|
|
|
libffmpeg_extractor \
|
|
|
|
libffmpeg_omx \
|
2015-06-18 11:22:35 +02:00
|
|
|
media_codecs_ffmpeg.xml
|
2014-06-10 19:06:48 +02:00
|
|
|
|
2015-07-08 18:53:12 +02:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
media.sf.omx-plugin=libffmpeg_omx.so \
|
|
|
|
media.sf.extractor-plugin=libffmpeg_extractor.so
|
|
|
|
|
2013-09-25 18:13:25 +02:00
|
|
|
# These packages are excluded from user builds
|
|
|
|
ifneq ($(TARGET_BUILD_VARIANT),user)
|
|
|
|
PRODUCT_PACKAGES += \
|
2013-11-06 21:41:34 +01:00
|
|
|
procmem \
|
|
|
|
procrank \
|
2013-09-25 18:13:25 +02:00
|
|
|
su
|
2014-12-30 00:52:04 +01:00
|
|
|
endif
|
2013-09-25 18:13:25 +02:00
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
persist.sys.root_access=0
|
|
|
|
|
2011-12-21 00:02:07 +01:00
|
|
|
PRODUCT_PACKAGE_OVERLAYS += vendor/cm/overlay/common
|
2011-11-28 16:44:23 +01:00
|
|
|
|
2015-10-07 17:38:03 +02:00
|
|
|
PRODUCT_VERSION_MAJOR = 13
|
|
|
|
PRODUCT_VERSION_MINOR = 0
|
2013-07-25 02:12:16 +02:00
|
|
|
PRODUCT_VERSION_MAINTENANCE = 0-RC0
|
2011-11-28 16:44:23 +01:00
|
|
|
|
2013-09-24 18:58:56 +02:00
|
|
|
# Set CM_BUILDTYPE from the env RELEASE_TYPE, for jenkins compat
|
|
|
|
|
|
|
|
ifndef CM_BUILDTYPE
|
|
|
|
ifdef RELEASE_TYPE
|
|
|
|
# Starting with "CM_" is optional
|
|
|
|
RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^CM_||g')
|
|
|
|
CM_BUILDTYPE := $(RELEASE_TYPE)
|
|
|
|
endif
|
2012-05-07 07:49:33 +02:00
|
|
|
endif
|
2013-09-24 18:58:56 +02:00
|
|
|
|
|
|
|
# Filter out random types, so it'll reset to UNOFFICIAL
|
|
|
|
ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(CM_BUILDTYPE)),)
|
|
|
|
CM_BUILDTYPE :=
|
2012-05-07 07:49:33 +02:00
|
|
|
endif
|
|
|
|
|
2012-06-08 12:08:15 +02:00
|
|
|
ifdef CM_BUILDTYPE
|
2013-09-24 18:58:56 +02:00
|
|
|
ifneq ($(CM_BUILDTYPE), SNAPSHOT)
|
|
|
|
ifdef CM_EXTRAVERSION
|
|
|
|
# Force build type to EXPERIMENTAL
|
|
|
|
CM_BUILDTYPE := EXPERIMENTAL
|
|
|
|
# Remove leading dash from CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
|
|
|
|
# Add leading dash to CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
ifndef CM_EXTRAVERSION
|
|
|
|
# Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
|
|
|
|
CM_BUILDTYPE := EXPERIMENTAL
|
|
|
|
else
|
|
|
|
# Remove leading dash from CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
|
|
|
|
# Add leading dash to CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := -$(CM_EXTRAVERSION)
|
|
|
|
endif
|
2012-06-08 12:08:15 +02:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
# If CM_BUILDTYPE is not defined, set to UNOFFICIAL
|
2012-05-07 07:49:33 +02:00
|
|
|
CM_BUILDTYPE := UNOFFICIAL
|
2012-06-08 12:08:15 +02:00
|
|
|
CM_EXTRAVERSION :=
|
2012-05-07 07:49:33 +02:00
|
|
|
endif
|
|
|
|
|
2013-12-13 18:04:14 +01:00
|
|
|
ifeq ($(CM_BUILDTYPE), UNOFFICIAL)
|
|
|
|
ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
|
2013-12-17 23:22:58 +01:00
|
|
|
CM_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
|
2013-12-13 18:04:14 +01:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-09-24 18:58:56 +02:00
|
|
|
ifeq ($(CM_BUILDTYPE), RELEASE)
|
2013-11-11 01:55:51 +01:00
|
|
|
ifndef TARGET_VENDOR_RELEASE_BUILD_ID
|
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
|
|
|
|
else
|
|
|
|
ifeq ($(TARGET_BUILD_VARIANT),user)
|
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(CM_BUILD)
|
|
|
|
else
|
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
|
|
|
|
endif
|
|
|
|
endif
|
2011-11-28 16:44:23 +01:00
|
|
|
else
|
2015-11-04 21:48:08 +01:00
|
|
|
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)$(CM_EXTRAVERSION)-$(CM_BUILD)
|
2011-11-28 16:44:23 +01:00
|
|
|
endif
|
2012-02-23 23:07:44 +01:00
|
|
|
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.cm.version=$(CM_VERSION) \
|
2014-07-10 19:31:00 +02:00
|
|
|
ro.cm.releasetype=$(CM_BUILDTYPE) \
|
2013-12-10 13:35:08 +01:00
|
|
|
ro.modversion=$(CM_VERSION) \
|
2015-03-04 11:08:33 +01:00
|
|
|
ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
|
2012-11-13 11:42:11 +01:00
|
|
|
|
2013-10-23 21:56:56 +02:00
|
|
|
-include vendor/cm-priv/keys/keys.mk
|
|
|
|
|
2014-01-09 11:25:31 +01:00
|
|
|
CM_DISPLAY_VERSION := $(CM_VERSION)
|
|
|
|
|
2014-01-24 18:58:36 +01:00
|
|
|
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
|
|
|
|
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
|
2014-01-09 11:25:31 +01:00
|
|
|
ifneq ($(CM_BUILDTYPE), UNOFFICIAL)
|
|
|
|
ifndef TARGET_VENDOR_RELEASE_BUILD_ID
|
|
|
|
ifneq ($(CM_EXTRAVERSION),)
|
2014-02-16 18:15:07 +01:00
|
|
|
# Remove leading dash from CM_EXTRAVERSION
|
|
|
|
CM_EXTRAVERSION := $(shell echo $(CM_EXTRAVERSION) | sed 's/-//')
|
2014-01-09 11:25:31 +01:00
|
|
|
TARGET_VENDOR_RELEASE_BUILD_ID := $(CM_EXTRAVERSION)
|
|
|
|
else
|
2014-02-16 18:15:07 +01:00
|
|
|
TARGET_VENDOR_RELEASE_BUILD_ID := $(shell date -u +%Y%m%d)
|
2014-01-09 11:25:31 +01:00
|
|
|
endif
|
|
|
|
else
|
2014-02-16 18:15:07 +01:00
|
|
|
TARGET_VENDOR_RELEASE_BUILD_ID := $(TARGET_VENDOR_RELEASE_BUILD_ID)
|
2014-01-09 11:25:31 +01:00
|
|
|
endif
|
2014-02-16 18:15:07 +01:00
|
|
|
CM_DISPLAY_VERSION=$(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)
|
2014-01-09 11:25:31 +01:00
|
|
|
endif
|
|
|
|
endif
|
2014-01-11 17:00:16 +01:00
|
|
|
endif
|
2014-01-09 11:25:31 +01:00
|
|
|
|
2014-05-22 08:37:52 +02:00
|
|
|
# by default, do not update the recovery with system updates
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
|
|
|
|
|
2015-06-05 04:23:35 +02:00
|
|
|
ifndef CM_PLATFORM_SDK_VERSION
|
|
|
|
# This is the canonical definition of the SDK version, which defines
|
|
|
|
# the set of APIs and functionality available in the platform. It
|
|
|
|
# is a single integer that increases monotonically as updates to
|
|
|
|
# the SDK are released. It should only be incremented when the APIs for
|
|
|
|
# the new release are frozen (so that developers don't write apps against
|
|
|
|
# intermediate builds).
|
2015-10-07 17:38:03 +02:00
|
|
|
CM_PLATFORM_SDK_VERSION := 4
|
2015-06-05 04:23:35 +02:00
|
|
|
endif
|
|
|
|
|
2015-08-12 00:51:54 +02:00
|
|
|
ifndef CM_PLATFORM_REV
|
|
|
|
# For internal SDK revisions that are hotfixed/patched
|
|
|
|
# Reset after each CM_PLATFORM_SDK_VERSION release
|
|
|
|
# If you are doing a release and this is NOT 0, you are almost certainly doing it wrong
|
|
|
|
CM_PLATFORM_REV := 0
|
|
|
|
endif
|
|
|
|
|
2014-01-09 11:25:31 +01:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.cm.display.version=$(CM_DISPLAY_VERSION)
|
|
|
|
|
2015-06-05 04:23:35 +02:00
|
|
|
# CyanogenMod Platform SDK Version
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.cm.build.version.plat.sdk=$(CM_PLATFORM_SDK_VERSION)
|
|
|
|
|
2015-08-12 00:51:54 +02:00
|
|
|
# CyanogenMod Platform Internal
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.cm.build.version.plat.rev=$(CM_PLATFORM_REV)
|
|
|
|
|
2014-01-31 20:59:56 +01:00
|
|
|
-include $(WORKSPACE)/build_env/image-auto-bits.mk
|
2013-12-08 07:04:17 +01:00
|
|
|
|
|
|
|
-include vendor/cyngn/product.mk
|
2014-09-11 00:41:43 +02:00
|
|
|
|
2014-12-17 23:41:28 +01:00
|
|
|
$(call prepend-product-if-exists, vendor/extra/product.mk)
|